I have written a code in my Exe as follows,

FILE *fp;




The above code is working properly and i have displaying the image in image.jpg.

The same code in DLL is not working properly. There is image.jpg file creating only not displaying the image.

What is the reason

Re: Visual C++ General File writing in VC++6.0

Ramkrishna Pawar

Are you sure that the data you passed to fwrite was correct image data

Verify if the data in written file is same as what you wanted to write, you can open the image as binary file in editor like utraedit (VC++ will do too).