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

C / C++ / MFC

 
GeneralRe: Double pointers question Pin
David Crow8-Jul-05 5:37
David Crow8-Jul-05 5:37 
GeneralRe: Double pointers question Pin
John R. Shaw8-Jul-05 10:13
John R. Shaw8-Jul-05 10:13 
GeneralRe: Double pointers question Pin
Toby Opferman8-Jul-05 10:31
Toby Opferman8-Jul-05 10:31 
GeneralDisplaying MFC dialog Pin
cdm5z8-Jul-05 3:39
cdm5z8-Jul-05 3:39 
GeneralRe: Displaying MFC dialog Pin
Manfred Staiger8-Jul-05 3:55
Manfred Staiger8-Jul-05 3:55 
GeneralRe: Displaying MFC dialog Pin
cdm5z8-Jul-05 4:03
cdm5z8-Jul-05 4:03 
GeneralRe: Displaying MFC dialog Pin
Manfred Staiger8-Jul-05 4:19
Manfred Staiger8-Jul-05 4:19 
GeneralCWnd::Create -> program terminates immediately after window creation Pin
awah8-Jul-05 3:39
awah8-Jul-05 3:39 
hi, i am new in MFC so i would need detail explaination and preferbly some codes

here is the application initialization


/////////////////////////////////////////////////////////////////////////////<br />
CAsevApp theApp;<br />
// CAsevApp initialization<br />
<br />
BOOL CAsevApp::InitInstance()<br />
{<br />
	// Standard initialization<br />
	// If you are not using these features and wish to reduce the size<br />
	//  of your final executable, you should remove from the following<br />
	//  the specific initialization routines you do not need.<br />
	RECT rec;<br />
	rec.bottom=100;<br />
	rec.left = 100;<br />
	rec.right = 100;<br />
	rec.top = 100;<br />
<br />
	main_window *m_pMainWnd = new main_window;<br />
	m_pMainWnd->Create(<br />
		"myWindowClass",<br />
		"title",<br />
		WS_OVERLAPPEDWINDOW,<br />
		rec,  CWnd::GetDesktopWindow(),0,0);<br />
return TRUE;

main_window is a derived class from CWnd, no extra stuff has been added

here i am trying to create a simple window with the "create" command
or more specifically, CWnd::Create command
what happens is that the program terminates immediately

i was expecting an empty movable/resizable window with the titlebar "title" to appear and stay there

is there something i did wrong?

please assist
GeneralRe: CWnd::Create -&gt; program terminates immediately after window creation Pin
David Crow8-Jul-05 4:23
David Crow8-Jul-05 4:23 
GeneralRe: CWnd::Create -&gt; program terminates immediately after window creation Pin
Alexander M.,8-Jul-05 7:12
Alexander M.,8-Jul-05 7:12 
GeneralRe: CWnd::Create -&gt; program terminates immediately after window creation Pin
ThatsAlok8-Jul-05 20:31
ThatsAlok8-Jul-05 20:31 
QuestionHow to capure mouse move with child window overlapping ? Pin
ldaoust8-Jul-05 3:17
ldaoust8-Jul-05 3:17 
AnswerRe: How to capure mouse move with child window overlapping ? Pin
Manfred Staiger8-Jul-05 3:38
Manfred Staiger8-Jul-05 3:38 
GeneralRe: How to capure mouse move with child window overlapping ? Pin
ldaoust8-Jul-05 4:07
ldaoust8-Jul-05 4:07 
GeneralRe: How to capure mouse move with child window overlapping ? Pin
Manfred Staiger8-Jul-05 4:29
Manfred Staiger8-Jul-05 4:29 
GeneralRe: How to capure mouse move with child window overlapping ? Pin
ldaoust8-Jul-05 6:09
ldaoust8-Jul-05 6:09 
GeneralRe: How to capure mouse move with child window overlapping ? Pin
ldaoust8-Jul-05 6:32
ldaoust8-Jul-05 6:32 
AnswerRe: How to capure mouse move with child window overlapping ? Pin
John R. Shaw8-Jul-05 17:30
John R. Shaw8-Jul-05 17:30 
QuestionUsing a &quot;windows file manager&quot;-like control? Pin
Salvador Dali8-Jul-05 2:12
Salvador Dali8-Jul-05 2:12 
AnswerRe: Using a &quot;windows file manager&quot;-like control? Pin
David Crow8-Jul-05 3:35
David Crow8-Jul-05 3:35 
GeneralRe: Using a &quot;windows file manager&quot;-like control? Pin
Salvador Dali8-Jul-05 5:22
Salvador Dali8-Jul-05 5:22 
GeneralRe: Using a &quot;windows file manager&quot;-like control? Pin
David Crow8-Jul-05 5:58
David Crow8-Jul-05 5:58 
GeneralI&#8217;m trying to figure out a way to store my data in an clever way Pin
t!bast8-Jul-05 2:07
t!bast8-Jul-05 2:07 
GeneralRe: I&#8217;m trying to figure out a way to store my data in an clever way Pin
S. Senthil Kumar8-Jul-05 6:06
S. Senthil Kumar8-Jul-05 6:06 
GeneralRe: I&#8217;m trying to figure out a way to store my data in an clever way Pin
Blake V. Miller8-Jul-05 16:54
Blake V. Miller8-Jul-05 16: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.