I'm trying to get a basic c++ dll written for use with a VB app but i'm stuck on what to put in the header. I don't want to use a def file and i think you have to use stdcall if calling it from VB. Any ideas ?
For example here's a function for the cpp file,
Code:
extern "C" __declspec(dllexport) long __stdcall FuncC( int JobNo )
{
MessageBox(NULL, "_FuncC@4", "FuncC", MB_OK);
return 0;
}
So what do i add to the header to export this ?
btw : i'm using devc++ which is probably a slightly different case from VC++.