I'd like to write a DLL in C++ which does text file IO. I plan to be
using the VS .Net Dev environment, but I want the DLL to work without
.Net runtime on the machine.
If I understand this right, that means I want my DLL to be compiled as
"unmanaged" code.
I would really appreciate a simple example or any tips on how to do
this, the correct IO classes to use, etc.
three methods,
CreateFile ->WriteFile ->CloseHandle
std::ofstream
CFile
> I'd like to write a DLL in C++ which does text file IO. I plan to be
> using the VS .Net Dev environment, but I want the DLL to work without
[quoted text clipped - 5 lines]
> I would really appreciate a simple example or any tips on how to do
> this, the correct IO classes to use, etc.
Jonathan Wilson - 16 Sep 2004 05:29 GMT
> three methods,
>
[quoted text clipped - 3 lines]
>
> CFile
You can also use stdio.h, fopen, fread, fwrite, fprintf, fclose etc.