General information
Category:
Coding, syntax & commands
This will start you off the right direction.
Make it simple to start so you can learn. Use the app wizard to generate a regular dll and watch what it does. Construct the dll app object.
Write your function in the generated dll code to look like this ( this is MFC code ):
// declare the dll function ret
extern "C" __declspec(dllexport) int ret(int i)
{
AFX_MANAGE_STATE(AfxGetStaticModuleState());
TRACE( "Entering Return value \n");
return i;
}
Link and compile with your calling program.
This will return whatever you send it from you calling program.
This is the code you add to the generated code along with the constructor code for the app class. You can get this to work and then build on it by adding a diaog box for input etc...
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only