I'm now working with Visual C++ 4.0 under NT4.0 sp4
I want to make a DLL but it would be nice to be system independant and make portable code for (why not) UNIX.
Suppose I've the following class :
void firstfunction(some parameters)
param *secondfunction(some parameters)
1- how to generate DLL ? (I've choosen new project / DLL (not appwizard DLL) but I suppose that there is a .def file to write and some settings to change...
2- in order to have portable code, would it be better to redefine all basic types switching on OS, I mean something like :
#define my_int unsigned __int32
or to use only independent system types like __intx (x = 8 / 16 /32 /64)
3- when choosing DLL as new project Platform checkbox was checked, should I let it as is ?
4- now how to use my DLL in a simple project (declaration, etc...) ?