Click here to Skip to main content
15,925,444 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralAn edit problem... Pin
29-Jun-01 23:31
suss29-Jun-01 23:31 
GeneralBut I am really stupid Pin
29-Jun-01 23:32
suss29-Jun-01 23:32 
GeneralAbout ActiveX Print! Pin
29-Jun-01 17:59
suss29-Jun-01 17:59 
GeneralRe: About ActiveX Print! Pin
Hadi Rezaee30-Jun-01 2:23
Hadi Rezaee30-Jun-01 2:23 
GeneralRe: About ActiveX Print! Pin
2-Jul-01 23:13
suss2-Jul-01 23:13 
GeneralProblem adding new caption button to title bar! HELP!!! Pin
29-Jun-01 14:28
suss29-Jun-01 14:28 
GeneralRe: Problem adding new caption button to title bar! HELP!!! Pin
Ben Burnett29-Jun-01 16:53
Ben Burnett29-Jun-01 16:53 
GeneralMFC DLL and Dialogs Pin
Peter Marino29-Jun-01 13:53
Peter Marino29-Jun-01 13:53 
I have a problem I just don't get.

I have created two programs, a ProgramApp and a ProgramDLL. The ProgramApp is a SDI and I create a standard modeless dialog when it starts up. Next I load the ProgramDLL so the ProgramApp can use it. I call a function in the Program DLL called ChangeDialogText( lpDlg ), this function sends the lpDlg pointer to the ProgramDLL when calling the ChangeDialogText( lpDlg ).

ok, so far so good,.. now the ProgramDLL has a singal line that does this lpDlg->SetWindowText( "DLL Text" ).... bang here I get an assert that the lpDlg doesn't have a m_hWnd??!?!?!

I have the AFX_MANAGE_STATE(AfxGetStaticModuleState()) in the beginning of the ChangeDialogText function.

I just don't understand it,... it should work. what am I doing wrong.

Confused | :confused:
GeneralRe: MFC DLL and Dialogs Pin
29-Jun-01 15:40
suss29-Jun-01 15:40 
GeneralRe: MFC DLL and Dialogs Pin
29-Jun-01 16:26
suss29-Jun-01 16:26 
GeneralRe: MFC DLL and Dialogs Pin
Peter Marino29-Jun-01 20:38
Peter Marino29-Jun-01 20:38 
GeneralRe: MFC DLL and Dialogs Pin
Peter Marino29-Jun-01 20:37
Peter Marino29-Jun-01 20:37 
GeneralRe: MFC DLL and Dialogs Pin
D.D. de Kerf1-Jul-01 20:32
D.D. de Kerf1-Jul-01 20:32 
QuestionPassing ADO Conn Thru' interface?? Pin
Popsy29-Jun-01 12:21
Popsy29-Jun-01 12:21 
GeneralComunication Between Programs Pin
Anders Molin29-Jun-01 11:51
professionalAnders Molin29-Jun-01 11:51 
GeneralRe: Comunication Between Programs Pin
Ben Burnett29-Jun-01 17:23
Ben Burnett29-Jun-01 17:23 
GeneralPushing Buttons Pin
RobJones29-Jun-01 11:36
RobJones29-Jun-01 11:36 
QuestionHow to clear screen??? Pin
Richard Cheng29-Jun-01 10:40
Richard Cheng29-Jun-01 10:40 
GeneralWinCE memory management Pin
Avneesh Bhatnagar29-Jun-01 9:29
Avneesh Bhatnagar29-Jun-01 9:29 
GeneralConsole App Help Pin
29-Jun-01 8:55
suss29-Jun-01 8:55 
GeneralCreating a document/view pair Pin
Jake Palmer29-Jun-01 8:40
Jake Palmer29-Jun-01 8:40 
GeneralRe: Creating a document/view pair Pin
J Patel29-Jun-01 8:44
J Patel29-Jun-01 8:44 
GeneralRe: Creating a document/view pair Pin
Jake Palmer29-Jun-01 9:07
Jake Palmer29-Jun-01 9:07 
QuestionCStatusBar in a dialog? Pin
29-Jun-01 7:44
suss29-Jun-01 7:44 
QuestionWhat happened here????? Wrong variable type??? Pin
Richard Cheng29-Jun-01 7:29
Richard Cheng29-Jun-01 7:29 

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.