Click here to Skip to main content
15,902,276 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralHiding MDI child window at startup, check the code please Pin
mr20032-Sep-03 8:24
mr20032-Sep-03 8:24 
GeneralRe: Hiding MDI child window at startup, check the code please Pin
valikac2-Sep-03 9:38
valikac2-Sep-03 9:38 
GeneralRe: Hiding MDI child window at startup, check the code please Pin
Brian Shifrin3-Sep-03 12:08
Brian Shifrin3-Sep-03 12:08 
GeneralAutomation server help needed Pin
Gilrock2-Sep-03 8:13
Gilrock2-Sep-03 8:13 
GeneralRe: Automation server help needed Pin
Brian Shifrin3-Sep-03 12:10
Brian Shifrin3-Sep-03 12:10 
GeneralRe: Automation server help needed Pin
Gilrock3-Sep-03 12:53
Gilrock3-Sep-03 12:53 
GeneralRe: Automation server help needed Pin
igor19603-Sep-03 13:48
igor19603-Sep-03 13:48 
GeneralRe: Automation server help needed Pin
Gilrock3-Sep-03 20:07
Gilrock3-Sep-03 20:07 
Ah...now I see why it's not working for me...the CDlgAutoProxy code is never running. I have an application called MicroTouch and I added an interface called Focuser. If I create an object of "MicroTouch.Application", then the proxy code executes, but when I create my "MicroTouch.Focuser" object, the proxy code never runs. So it looks like I need to replicate some of the proxy code into my Focuser class such as the following:
// Get access to the dialog through the application's
//  main window pointer.  Set the proxy's internal pointer
//  to point to the dialog, and set the dialog's back pointer to
//  this proxy.
ASSERT (AfxGetApp()->m_pMainWnd != NULL);
ASSERT_VALID (AfxGetApp()->m_pMainWnd);
ASSERT_KINDOF(CRCMicroTouchDlg, AfxGetApp()->m_pMainWnd);
m_pDialog = (CRCMicroTouchDlg*) AfxGetApp()->m_pMainWnd;
m_pDialog->m_pAutoProxy = this;


The other thing that makes this more difficult to fix it that I'm not using the main dialog but instead I'm using a property sheet for the main GUI interface. I think I'll need to override OnQueryCancel() in every property page to catch all the places where the application can exit.

Gil Jones
GeneralRe: Automation server help needed Pin
Gilrock4-Sep-03 6:10
Gilrock4-Sep-03 6:10 
GeneralRe: Automation server help needed Pin
igor19604-Sep-03 7:05
igor19604-Sep-03 7:05 
GeneralRe: Automation server help needed Pin
Gilrock4-Sep-03 8:15
Gilrock4-Sep-03 8:15 
Generalfree(pMemory) Pin
ravingcoder2-Sep-03 8:11
ravingcoder2-Sep-03 8:11 
GeneralRe: free(pMemory) Pin
igor19602-Sep-03 8:15
igor19602-Sep-03 8:15 
GeneralRe: free(pMemory) Pin
ravingcoder2-Sep-03 8:24
ravingcoder2-Sep-03 8:24 
Generalexporting std::string Pin
Jim Crafton2-Sep-03 7:46
Jim Crafton2-Sep-03 7:46 
GeneralRe: exporting std::string Pin
cmk2-Sep-03 7:52
cmk2-Sep-03 7:52 
GeneralRe: exporting std::string Pin
Neville Franks2-Sep-03 10:01
Neville Franks2-Sep-03 10:01 
GeneralRe: exporting std::string Pin
Navin2-Sep-03 10:22
Navin2-Sep-03 10:22 
GeneralRe: exporting std::string Pin
cmk2-Sep-03 14:05
cmk2-Sep-03 14:05 
Generalunicode woes Pin
Jim Crafton2-Sep-03 7:08
Jim Crafton2-Sep-03 7:08 
GeneralRe: unicode woes Pin
cmk2-Sep-03 7:50
cmk2-Sep-03 7:50 
GeneralRe: unicode woes Pin
Jim Crafton2-Sep-03 8:07
Jim Crafton2-Sep-03 8:07 
GeneralRe: unicode woes Pin
cmk2-Sep-03 9:12
cmk2-Sep-03 9:12 
GeneralMultiple views and single document Pin
Binayak2-Sep-03 6:34
Binayak2-Sep-03 6:34 
GeneralRe: Multiple views and single document Pin
palbano2-Sep-03 7:25
palbano2-Sep-03 7:25 

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.