K
Kat
Ok so I finally fixed most of the problems in this program but I've
come up with even more. My program(if you saw earlier) is a program
for secure file deletion as part of a project. I'm using Visual Studio
6.0(my school refuses to upgrade, I don't know why nor can I persuade
them otherwise) Visual C++.
Here's a snippet of the code I'm having problems with.
//Begin Code\\
long size;
infile.seekg(0,ifstream::end);
size = infile.tellg();
infile.seekg(0);
infile.close();
ofstream outfile (fileloc,ofstream::binary);
outfile.write (zero,size);
//End Code\\
Bellow is the error given by the compiler.
//Begin Error\\
Z:\SecureIO.cpp(172) : error C2664: 'write' : cannot convert parameter
1 from 'const int *' to 'const char *'
Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
//End Error\\
How do I fix this problem?
come up with even more. My program(if you saw earlier) is a program
for secure file deletion as part of a project. I'm using Visual Studio
6.0(my school refuses to upgrade, I don't know why nor can I persuade
them otherwise) Visual C++.
Here's a snippet of the code I'm having problems with.
//Begin Code\\
long size;
infile.seekg(0,ifstream::end);
size = infile.tellg();
infile.seekg(0);
infile.close();
ofstream outfile (fileloc,ofstream::binary);
outfile.write (zero,size);
//End Code\\
Bellow is the error given by the compiler.
//Begin Error\\
Z:\SecureIO.cpp(172) : error C2664: 'write' : cannot convert parameter
1 from 'const int *' to 'const char *'
Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
//End Error\\
How do I fix this problem?