jhattingh
asked on
MFC DLL Primer
Having created an (shared) MFC DLL Project using MSVC++ app wizard, I now want to implement a function that takes a string argument.
This dll will be called from a VB app, so I am also unsure as to whether the function declaration should be using VARIANTS...
This dll will be called from a VB app, so I am also unsure as to whether the function declaration should be using VARIANTS...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hi !!!
Yes inpras is right.
If u want to export the class itself then u can make it member function of App class and export the class itself or just export the required function.
Yes inpras is right.
If u want to export the class itself then u can make it member function of App class and export the class itself or just export the required function.
Hi
Make it a member function no problem
like
CDllStaticTextApp::Exporte dFunction( LPSTR str)
{
}
in .h file declaration
__declspec(dllexport) ExportedFunction(LPSTR str);
Hope this helps
Regards
Make it a member function no problem
like
CDllStaticTextApp::Exporte
{
}
in .h file declaration
__declspec(dllexport) ExportedFunction(LPSTR str);
Hope this helps
Regards
ASKER