Click here to Skip to main content
13,150,163 members (76,897 online)

C / C++ / MFC

 
GeneralRe: Help me plase :: Math Class Pin
Per Svedensten5-Nov-04 4:01
memberPer Svedensten5-Nov-04 4:01 
GeneralRe: Help me plase :: Math Class Pin
Arsalan Malik5-Nov-04 16:49
memberArsalan Malik5-Nov-04 16:49 
Generaltalha rehman here Pin
talha rehman6-Nov-04 10:20
susstalha rehman6-Nov-04 10:20 
GeneralSkin on scrollbar of richedit control Pin
rver4-Nov-04 3:18
memberrver4-Nov-04 3:18 
QuestionHow to implement DirListBox and DriveListBox in Visual C++ ? Pin
vhmau2-Nov-04 19:43
membervhmau2-Nov-04 19:43 
AnswerRe: How to implement DirListBox and DriveListBox in Visual C++ ? Pin
vcplusplus3-Nov-04 0:27
membervcplusplus3-Nov-04 0:27 
AnswerRe: How to implement DirListBox and DriveListBox in Visual C++ ? Pin
DavidCrow3-Nov-04 3:35
memberDavidCrow3-Nov-04 3:35 
GeneralDll dialog problem Pin
BeerFizz1-Nov-04 7:48
memberBeerFizz1-Nov-04 7:48 
Hi,

I have a simple C++.net DLL test app that I am having trouble with.

The test consists of a Dialog style app which (on the press of a button) calls a function inside the DLL, which in turn attempts to open a dialog.

The dialog in the DLL does not open. The constructor is called, however the creation of the dialog returns with a minus one value. I believe this is because the runtime is looking for the dialog resource in the main app and not the dialog. I have tried multiple times to fix this, but have been unsuccessful

Can anyone help?

Below is a snippet of the code with the call to domodal. Thanks.


DLLEXPORT void PopUpaDialog(void)
{
//AFX_MANAGE_STATE(AfxGetStaticModuleState());

AfxMessageBox("Before Popping up the LVTest Dialog");

INT_PTR nResponse = 9999;
LVTest dlg;
nResponse = dlg.DoModal();
switch ( nResponse ) {
case -1:
AfxMessageBox("Dialog box could not be created!");
break;
case IDABORT:
// Do something
break;
case IDOK:
// Do something
break;
case IDCANCEL:
// Do something
break;
default:
AfxMessageBox("Default message after LVTest dialog");
break;
};


AfxMessageBox("After Popping up the Dialog");
}

GeneralRe: Dll dialog problem Pin
Joaquín M López Muñoz1-Nov-04 8:47
memberJoaquín M López Muñoz1-Nov-04 8:47 
GeneralRe: Dll dialog problem Pin
BeerFizz1-Nov-04 10:09
memberBeerFizz1-Nov-04 10:09 
GeneralRe: Dll dialog problem Pin
Joaquín M López Muñoz1-Nov-04 10:54
memberJoaquín M López Muñoz1-Nov-04 10:54 
GeneralCalculator Using Stacks Pin
civicnar1-Nov-04 5:54
membercivicnar1-Nov-04 5:54 
GeneralRe: Calculator Using Stacks Pin
DavidCrow1-Nov-04 6:38
memberDavidCrow1-Nov-04 6:38 
GeneralRe: Calculator Using Stacks Pin
civicnar1-Nov-04 6:53
membercivicnar1-Nov-04 6:53 
GeneralRe: Calculator Using Stacks Pin
John M. Drescher1-Nov-04 7:37
memberJohn M. Drescher1-Nov-04 7:37 
GeneralRe: Calculator Using Stacks Pin
John M. Drescher1-Nov-04 7:41
memberJohn M. Drescher1-Nov-04 7:41 
GeneralRe: Calculator Using Stacks Pin
civicnar1-Nov-04 7:57
membercivicnar1-Nov-04 7:57 
GeneralRe: Calculator Using Stacks Pin
DavidCrow1-Nov-04 8:31
memberDavidCrow1-Nov-04 8:31 
GeneralRe: Calculator Using Stacks Pin
Joaquín M López Muñoz1-Nov-04 8:38
memberJoaquín M López Muñoz1-Nov-04 8:38 
GeneralRe: Calculator Using Stacks Pin
civicnar1-Nov-04 8:49
membercivicnar1-Nov-04 8:49 
GeneralRe: Calculator Using Stacks Pin
civicnar1-Nov-04 8:52
membercivicnar1-Nov-04 8:52 
GeneralRe: Calculator Using Stacks Pin
Joaquín M López Muñoz1-Nov-04 8:57
memberJoaquín M López Muñoz1-Nov-04 8:57 
GeneralRe: Calculator Using Stacks Pin
civicnar1-Nov-04 9:03
membercivicnar1-Nov-04 9:03 
GeneralRe: Calculator Using Stacks Pin
Joaquín M López Muñoz1-Nov-04 9:26
memberJoaquín M López Muñoz1-Nov-04 9:26 
GeneralRe: Calculator Using Stacks Pin
civicnar1-Nov-04 9:32
membercivicnar1-Nov-04 9:32 

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.


Advertise | Privacy |
Web01 | 2.8.170924.2 | Last Updated 25 Sep 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid