Click here to Skip to main content
15,888,803 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: help plz Xp dialup Recovery Pin
ThatsAlok3-Nov-04 18:10
ThatsAlok3-Nov-04 18:10 
Generalcheck if a file exists Pin
hyling1-Nov-04 7:55
hyling1-Nov-04 7:55 
GeneralRe: check if a file exists Pin
Michael Dunn1-Nov-04 8:10
sitebuilderMichael Dunn1-Nov-04 8:10 
GeneralRe: check if a file exists Pin
hyling1-Nov-04 10:19
hyling1-Nov-04 10:19 
GeneralRe: check if a file exists Pin
David Crow1-Nov-04 8:14
David Crow1-Nov-04 8:14 
GeneralRe: check if a file exists Pin
hyling1-Nov-04 10:19
hyling1-Nov-04 10:19 
GeneralRe: check if a file exists Pin
Blake Miller2-Nov-04 8:00
Blake Miller2-Nov-04 8:00 
GeneralDll dialog problem Pin
BeerFizz1-Nov-04 7:48
BeerFizz1-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
Joaquín M López Muñoz1-Nov-04 8:47 
GeneralRe: Dll dialog problem Pin
BeerFizz1-Nov-04 10:09
BeerFizz1-Nov-04 10:09 
GeneralRe: Dll dialog problem Pin
Joaquín M López Muñoz1-Nov-04 10:54
Joaquín M López Muñoz1-Nov-04 10:54 
GeneralArranging Toolbars side by side Pin
Ingo791-Nov-04 7:34
Ingo791-Nov-04 7:34 
GeneralHIde logical disk Pin
faroqtam1-Nov-04 6:20
faroqtam1-Nov-04 6:20 
GeneralRe: HIde logical disk Pin
David Crow1-Nov-04 6:33
David Crow1-Nov-04 6:33 
GeneralRe: HIde logical disk Pin
John M. Drescher1-Nov-04 7:27
John M. Drescher1-Nov-04 7:27 
GeneralRe: HIde logical disk Pin
David Crow1-Nov-04 8:14
David Crow1-Nov-04 8:14 
GeneralRe: HIde logical disk Pin
Ryan Binns1-Nov-04 17:59
Ryan Binns1-Nov-04 17:59 
GeneralRe: HIde logical disk Pin
ThatsAlok3-Nov-04 18:31
ThatsAlok3-Nov-04 18:31 
GeneralChanging a dialog from Popup to Child at runtime Pin
Ali Niaz1-Nov-04 6:14
Ali Niaz1-Nov-04 6:14 
GeneralRe: Changing a dialog from Popup to Child at runtime Pin
faroqtam1-Nov-04 6:26
faroqtam1-Nov-04 6:26 
GeneralOpening an MFC Application in Splitter Pane Pin
Ali Niaz1-Nov-04 6:04
Ali Niaz1-Nov-04 6:04 
GeneralRe: Opening an MFC Application in Splitter Pane Pin
David Crow1-Nov-04 6:34
David Crow1-Nov-04 6:34 
GeneralCalculator Using Stacks Pin
civicnar1-Nov-04 5:54
civicnar1-Nov-04 5:54 
GeneralRe: Calculator Using Stacks Pin
David Crow1-Nov-04 6:38
David Crow1-Nov-04 6:38 
GeneralRe: Calculator Using Stacks Pin
civicnar1-Nov-04 6:53
civicnar1-Nov-04 6:53 

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.