Click here to Skip to main content
16,006,488 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionwhat are the basic setting we have to do in the Microsoft Visual Studio to run this code? Pin
lavate malllik15-Oct-04 0:50
lavate malllik15-Oct-04 0:50 
AnswerRe: what are the basic setting we have to do in the Microsoft Visual Studio to run this code? Pin
toxcct15-Oct-04 0:55
toxcct15-Oct-04 0:55 
AnswerRe: what are the basic setting we have to do in the Microsoft Visual Studio to run this code? Pin
Phil J Pearson15-Oct-04 0:59
Phil J Pearson15-Oct-04 0:59 
GeneralRe: what are the basic setting we have to do in the Microsoft Visual Studio to run this code? Pin
David Crow15-Oct-04 4:46
David Crow15-Oct-04 4:46 
GeneralRe: what are the basic setting we have to do in the Microsoft Visual Studio to run this code? Pin
Ravi Bhavnani15-Oct-04 6:23
professionalRavi Bhavnani15-Oct-04 6:23 
GeneralMFC message routing weirdness Pin
Phil J Pearson15-Oct-04 0:47
Phil J Pearson15-Oct-04 0:47 
GeneralRe: MFC message routing weirdness Pin
Blake Miller15-Oct-04 4:25
Blake Miller15-Oct-04 4:25 
GeneralRe: MFC message routing weirdness Pin
Phil J Pearson15-Oct-04 4:43
Phil J Pearson15-Oct-04 4:43 
Thanks for the ideas ... but ...

The main window of the app is set explicitly by code in InitInstance when the main frame is created.

The dll window is always hidden (it's just there to host an invisible ActiveX control). It's parent is NULL.

The root of the problem is that when CWnd::DestroyWindow() (for the splash dialog) calls ::DestroyWindow(hWnd) (with the splash dialog's hWnd) Windows emits a WM_NCDESTROY with a completely different hWnd (that of the dll's window).

Just thought ... maybe it's something to do with the fact that both windows have NULL parent ... ? I'll investigate now.

Phrustrated Phil



The opinions expressed in this communication do not necessarily represent those of the author (especially if you find them impolite, discourteous or inflammatory).
GeneralRe: MFC message routing weirdness - solved! Pin
Phil J Pearson15-Oct-04 5:18
Phil J Pearson15-Oct-04 5:18 
QuestionHow can I receive mails that is coming to my outlook in an MFC appliation. Pin
VCSharp00714-Oct-04 23:32
VCSharp00714-Oct-04 23:32 
AnswerRe: How can I receive mails that is coming to my outlook in an MFC appliation. Pin
Mad__14-Oct-04 23:46
Mad__14-Oct-04 23:46 
AnswerRe: How can I receive mails that is coming to my outlook in an MFC appliation. Pin
Sujan Christo14-Oct-04 23:50
Sujan Christo14-Oct-04 23:50 
General[Message Deleted] Pin
sheny14-Oct-04 23:17
sheny14-Oct-04 23:17 
GeneralRe: How many programs uses "this" dll? Pin
Phil J Pearson15-Oct-04 1:15
Phil J Pearson15-Oct-04 1:15 
GeneralRe: How many programs uses "this" dll? Pin
benjymous15-Oct-04 1:45
benjymous15-Oct-04 1:45 
GeneralRe: How many programs uses "this" dll? Pin
Phil J Pearson15-Oct-04 4:14
Phil J Pearson15-Oct-04 4:14 
GeneralData Type conversion. Pin
VCSharp00714-Oct-04 23:14
VCSharp00714-Oct-04 23:14 
GeneralRe: Data Type conversion. Pin
Mad__14-Oct-04 23:32
Mad__14-Oct-04 23:32 
GeneralRe: Data Type conversion. Pin
VCSharp00714-Oct-04 23:35
VCSharp00714-Oct-04 23:35 
GeneralRe: Data Type conversion. Pin
Mad__14-Oct-04 23:40
Mad__14-Oct-04 23:40 
GeneralRe: Data Type conversion. Pin
VCSharp00715-Oct-04 1:25
VCSharp00715-Oct-04 1:25 
GeneralRe: Data Type conversion. Pin
Mad__15-Oct-04 1:34
Mad__15-Oct-04 1:34 
GeneralRe: Data Type conversion. Pin
VCSharp00715-Oct-04 1:55
VCSharp00715-Oct-04 1:55 
GeneralRe: Data Type conversion. Pin
Mad__15-Oct-04 2:00
Mad__15-Oct-04 2:00 
GeneralRe: Data Type conversion. Pin
VCSharp00715-Oct-04 2:02
VCSharp00715-Oct-04 2:02 

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.