Hi
i need to change a variables' type from String to Int in managed c++ but dunno how to. Do any1 know how i can do this?
Regards
Tom
User Profile
Collapse
-
how to change variable's type? MC++
-
hmm kinda works now but still showing an error when i tried to use the length.Whats the right way of assigning this length to my variable? and what type to use?
haha nvm i solve this part -
I got this error when i tried that method.
error C2664: 'System::IO::Fi leInfo::FileInf o(System::Strin g ^)' : cannot convert parameter 1 from 'System::IO::Fi leInfo ^' to 'System::String ^'
No user-defined-conversion operator available, or
Types pointed to are unrelated; conversion requires reinterpret_cas t, C-style cast or function-style cast
Any idea how to solve this? or whats causing...Leave a comment:
-
-
Thx for the reply
i saw the length part of fileinfo but i do not know how to use it, can you show me?
i came upon this filestream which seems to be able to readbyte and writebyte.. is it possible for me to read up a byte at a time and while its not EOF (\0) the program shall continue writing a random byte to it?
regards
TomLeave a comment:
-
How to get length of a file? MC++
Hi
im running into alot of issues with mc++ and one of the problems is that i cannot get the length of the file. My objective is to erase a file so that it cannot be recovered by data recovery methods. So basically opens a file,get file length and overwrites all the bytes in file and repeatedly do this till user is happy.
The project is created in CLR's windows form application.
Btw, can any1 tell me what CLR and C++/CLI... -
.net cryptography and visual c++
Hi guys
i need to know if its possible to use visual c++ and make use of .net cryptography to encrypt files using the cryptography algorithms .net has to offer. cuz i have been searching around and only seem to managed to find c# cryptography material. Btw what cryptography algorithms does .net have?
Thx in advance for any help
regards
Tom -
Hi im new to c++ and i need some help understanding
As above, i need to make a program out of c++ with encryption and file erasing function(preven ts recovery) as my FYP. But the course never taught us c++ before so having alot of problems, hope that you can help.
Im incharged of the file erasure part and so im trying to understand this
Code:bool WipeFile (string * inFilePath, int nWipes ) { bool status = false; FileStream * sw; Byte
No activity results to display
Show More
Leave a comment: