BlueKarana
asked on
Visual Studio 2010 MFC ActiveX: How to declare and call a function in a DLL
I've created an MFC ActiveX Control in VS 2010 using the MFC ActiveX Wizard.
I need to call a function in an existing DLL. How do I declare it? Where would the declaration go?
All I know about the function is the declaration given to me (see code snippet)
BTW, I'm a complete nube in VS and C++ so the more detail the better :)
I need to call a function in an existing DLL. How do I declare it? Where would the declaration go?
All I know about the function is the declaration given to me (see code snippet)
BTW, I'm a complete nube in VS and C++ so the more detail the better :)
Int TheFunction (
HDC hdc, // handle to the device context
Int nEscape,
Int cbParameter,
LPCSTR lpszParameter, //use char* ?
Int cbResult,
LPSTR lpszResult //use char* ?
);
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
The second snippet looks like what I need.
Thanks!
Thanks!
ASKER
found code at: http://goffconcepts.com/techarticles/development/cpp/calldll.html
Haven't tested it yet, though.
Open in new window