Click here to Skip to main content
15,917,329 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Getting the size of a block of code Pin
Maximilien2-Nov-04 2:47
Maximilien2-Nov-04 2:47 
GeneralRe: Getting the size of a block of code Pin
jan larsen2-Nov-04 3:29
jan larsen2-Nov-04 3:29 
GeneralRe: Getting the size of a block of code Pin
Anonymous2-Nov-04 7:49
Anonymous2-Nov-04 7:49 
GeneralThreading problem Pin
User 9148331-Nov-04 11:35
User 9148331-Nov-04 11:35 
GeneralRe: Threading problem Pin
Blake Miller2-Nov-04 7:59
Blake Miller2-Nov-04 7:59 
GeneralSplitter inside a Tab Window Pin
Ali Niaz1-Nov-04 11:17
Ali Niaz1-Nov-04 11:17 
GeneralRe: Splitter inside a Tab Window Pin
Selvam R2-Nov-04 3:01
professionalSelvam R2-Nov-04 3:01 
GeneralRe: Splitter inside a Tab Window Pin
Selvam R2-Nov-04 3:01
professionalSelvam R2-Nov-04 3:01 
GeneralRe: Splitter inside a Tab Window Pin
Ali Niaz2-Nov-04 4:17
Ali Niaz2-Nov-04 4:17 
QuestionWhere should I automatically launch a Modeless Dialog? Pin
nonothing1-Nov-04 9:51
nonothing1-Nov-04 9:51 
AnswerRe: Where should I automatically launch a Modeless Dialog? Pin
Christian Graus1-Nov-04 10:01
protectorChristian Graus1-Nov-04 10:01 
General.NET C++ MDI App release/debug discrepancy Pin
Jnewg51-Nov-04 9:19
Jnewg51-Nov-04 9:19 
Generalhelp plz Xp dialup Recovery Pin
Member 14861831-Nov-04 9:05
Member 14861831-Nov-04 9:05 
GeneralRe: help plz Xp dialup Recovery Pin
Member 14861832-Nov-04 7:36
Member 14861832-Nov-04 7:36 
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 

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.