How to code text file IO in DLL, unmanaged

P

Progster

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.
 
J

Jonathan Wilson

www.fruitfruit.com said:
three methods,

CreateFile ->WriteFile ->CloseHandle

std::blush:fstream

CFile
You can also use stdio.h, fopen, fread, fwrite, fprintf, fclose etc.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top