Click here to Skip to main content
15,897,891 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: vc++ 4.0 and dll Pin
_Theo_19-Mar-03 21:55
_Theo_19-Mar-03 21:55 
GeneralDebug Issue Pin
wavewave18-Mar-03 17:47
wavewave18-Mar-03 17:47 
GeneralRe: Debug Issue Pin
Dave Bryant18-Mar-03 17:54
Dave Bryant18-Mar-03 17:54 
GeneralRe: Debug Issue Pin
wavewave18-Mar-03 22:30
wavewave18-Mar-03 22:30 
GeneralRe: Debug Issue Pin
wavewave18-Mar-03 22:33
wavewave18-Mar-03 22:33 
GeneralDisplaying a dialog from a DLL Pin
Squatch618-Mar-03 17:06
Squatch618-Mar-03 17:06 
GeneralRe: Displaying a dialog from a DLL Pin
Abbas_Riazi18-Mar-03 19:08
professionalAbbas_Riazi18-Mar-03 19:08 
GeneralRe: Displaying a dialog from a DLL Pin
Squatch619-Mar-03 9:15
Squatch619-Mar-03 9:15 
I am basically doing what you've suggested, with two important differences that I can see:

1) The function headers are not 'extern "C"' I just use the regular C++ definitions. I don't think that affects my project, since everything uses C++.

2) The function headers used by the app are not declared __declspec(dllimport). Would this prevent the dialog resources from showing? I doubt it, since the functions I call work just fine.

I can call all the functions I export no problem, without 'extern "C"' or __declspec(dllimport). Yes, the lib is imported into my project (so the dll is loaded implicitly). Basically, my code looks very similar to yours:

In the app:
OnSomeCommand()
{
   CallSomeDllFunc();
}

in the dll:
void __declspec(dllexport) CallSomeDllFunc()
{
   CMyDlg myDlg(AfxGetMainWnd());
   myDlg.DoModal();
}


Any ideas? Thanks again.

-Aaron
GeneralRe: Displaying a dialog from a DLL Pin
Abbas_Riazi19-Mar-03 20:39
professionalAbbas_Riazi19-Mar-03 20:39 
GeneralRe: Displaying a dialog from a DLL Pin
Squatch619-Mar-03 20:50
Squatch619-Mar-03 20:50 
GeneralICON Pin
Anthony988718-Mar-03 16:19
Anthony988718-Mar-03 16:19 
GeneralRe: ICON Pin
Dave Bryant18-Mar-03 16:26
Dave Bryant18-Mar-03 16:26 
GeneralAttention Graphics Programmers. Pin
73Zeppelin18-Mar-03 16:18
73Zeppelin18-Mar-03 16:18 
GeneralQuestions about VS as an IDE Pin
Jack Handy18-Mar-03 12:34
Jack Handy18-Mar-03 12:34 
GeneralRe: Questions about VS as an IDE Pin
73Zeppelin18-Mar-03 16:22
73Zeppelin18-Mar-03 16:22 
GeneralRe: Questions about VS as an IDE Pin
Phil Boyd18-Mar-03 16:31
Phil Boyd18-Mar-03 16:31 
GeneralRe: Questions about VS as an IDE Pin
Johnny ²18-Mar-03 21:53
Johnny ²18-Mar-03 21:53 
GeneralWhy whould this be lost?... Pin
CherezZaboro18-Mar-03 12:29
CherezZaboro18-Mar-03 12:29 
GeneralRe: Why whould this be lost?... Pin
Dave Bryant18-Mar-03 12:44
Dave Bryant18-Mar-03 12:44 
GeneralRe: Why whould this be lost?... Pin
CherezZaboro18-Mar-03 12:56
CherezZaboro18-Mar-03 12:56 
GeneralRe: Why whould this be lost?... Pin
Dave Bryant18-Mar-03 13:00
Dave Bryant18-Mar-03 13:00 
GeneralRe: Why whould this be lost?... Pin
CherezZaboro18-Mar-03 13:11
CherezZaboro18-Mar-03 13:11 
GeneralRe: Why whould this be lost?... Pin
Dave Bryant18-Mar-03 15:03
Dave Bryant18-Mar-03 15:03 
GeneralRe: Why whould this be lost?... Pin
CherezZaboro18-Mar-03 18:23
CherezZaboro18-Mar-03 18:23 
GeneralListView Colors..weird Pin
Bengi18-Mar-03 11:10
Bengi18-Mar-03 11:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.