Board index » Visual Studio » Another neophite question
|
kkl
|
|
kkl
|
Another neophite question
Visual Studio299
I have created a MFC dll project with 5 functions. How do I make those function away in my MFC dialog project? If I add the project to my workspace how do I make that class exposed so that my dialog can call those function defined in that class? Spanker - |
| AliR
Registered User |
Fri Mar 17 10:15:51 CST 2006
Re:Another neophite question
Make sure that the functions are being exported in the dll
http://msdn.microsoft.com/library/default.asp?url" rel="nofollow" target="_blank">msdn.microsoft.com/library/default.asp=/library/en-us/vccore/html/_core_export_from_a_dll_using___declspec.28.dllexport.29.asp Next include the header file of the dll in you dialog box cpp and call the functions. AliR. "Spanker" <spanker@nichware.com>wrote in message QuoteI have created a MFC dll project with 5 functions. How do I make those - |
| Ajay
Registered User |
Fri Mar 17 10:41:51 CST 2006
Re:Another neophite question
Following AliR suggestion, make sure you export these methods.
Typically you will have a class which is exported. In addition, in MFC there two types of DLL that you typically deal with: Regular and MFC Extension. If clients of your DLL are MFC modules, go with MFC Extension DLL. -------- Ajay Kalra ajaykalra@yahoo.com - |
