Sorry for double :
I tried :
std::ofstream file;
file.open("ADRIAN2.EXE");
file.write( (const char*)nosize, nosize_size);
file.close();
But .... if i open with notepad the original file ( from that i obtined that .h ) and the outputed file .. they are the same.
But if i open the outputed file it is closing when i start it :|
If i make an .bat, write ADRIAN2.exe then pause ...
The console outputs :
''
C:\Users\Adrian\Documents\Visual Studio 2010\Projects\ZekProject\Release>ADRIAN2
This program cannot be run in DOS mode.
C:\Users\Adrian\DOCUME~1\VISUAL~1\Projects\ZEKPRO~1\Release>pause 1>null
''