How to export dll function for VB
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,
So what do i add to the header to export this ?
extern "C" __declspec(dllexport) long __stdcall FuncC( int JobNo )
MessageBox(NULL, "_FuncC@4", "FuncC", MB_OK);
btw : i'm using devc++ which is probably a slightly different case from VC++.