Reading files without MFC
-
I am having a problem with the read function. I hava to read a pcx(binary) file into a struct . how can i do this?
-
I am having a problem with the read function. I hava to read a pcx(binary) file into a struct . how can i do this?
You can open the file with
fopen
, and then usefread
Also you can useOpenFile
andReadFile
Regards.... Carlos Antollini. Sonork ID 100.10529 cantollini -
I am having a problem with the read function. I hava to read a pcx(binary) file into a struct . how can i do this?
You can also use C++'s ifstream to read files. For more help see MSDN. Kind regards Mustafa Demirhan http://www.macroangel.com Sonork ID 100.9935:zoltrix
-
I am having a problem with the read function. I hava to read a pcx(binary) file into a struct . how can i do this?
...maybe the problem is your structure... Use the following pragma's around your definition:
#pragma pack(push, 1)
...
#pragma pack(pop)have fun... jk :cool: