Click here to Skip to main content
16,008,490 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC App and C2065 Pin
Jeremy Falcon10-Apr-02 8:47
professionalJeremy Falcon10-Apr-02 8:47 
GeneralRe: MFC App and C2065 Pin
10-Apr-02 9:53
suss10-Apr-02 9:53 
GeneralRe: MFC App and C2065 Pin
Jeremy Falcon10-Apr-02 10:06
professionalJeremy Falcon10-Apr-02 10:06 
GeneralRe: MFC App and C2065 Pin
Jeremy Falcon10-Apr-02 13:44
professionalJeremy Falcon10-Apr-02 13:44 
GeneralRe: MFC App and C2065 Pin
10-Apr-02 14:39
suss10-Apr-02 14:39 
GeneralRe: MFC App and C2065 Pin
Jeremy Falcon10-Apr-02 15:21
professionalJeremy Falcon10-Apr-02 15:21 
GeneralRe: MFC App and C2065 Pin
11-Apr-02 4:37
suss11-Apr-02 4:37 
GeneralRe: MFC App and C2065 Pin
Jeremy Falcon11-Apr-02 15:31
professionalJeremy Falcon11-Apr-02 15:31 
You'll want to use something else. I sent you an email with a couple of functions, but here's a sample to get you going...

void CChildView::OnPaint() 
{
	CPaintDC dc(this); // device context for painting

	CRect rect;
	CString data = "Howdy!";	// pcAny.GetError() would be assigned here
	CWnd *wnd = dc.GetWindow();

	::GetClientRect(wnd->m_hWnd, &rect);
	dc.DrawText(data, data.GetLength(), &rect, DT_CENTER|DT_VCENTER|DT_SINGLELINE);
}
Use ChildView.cpp instead. You'll have to #include awrem32.h in this file also and don't forget a declare a variable (object) that's in scope.

BTW, I used my own string because GetError() didn't return anything. I assume that's because there were no errors. Smile | :)

Also, if you haven't gotten a book yet on Windows programming then you may want to do it pronto. I can tell you from experience, this is not optional.

Jeremy L. Falcon
"The One Who Said, 'The One Who Said...'"
<nobr>
Homepage : Feature Article : Sonork = 100.16311

GeneralRe: MFC App and C2065 Pin
12-Apr-02 6:43
suss12-Apr-02 6:43 
GeneralRe: MFC App and C2065 Pin
12-Apr-02 9:21
suss12-Apr-02 9:21 
GeneralRe: MFC App and C2065 Pin
10-Apr-02 16:13
suss10-Apr-02 16:13 
GeneralVC 7 - ARGH! Pin
Jim A. Johnson10-Apr-02 6:08
Jim A. Johnson10-Apr-02 6:08 
GeneralRe: VC 7 - ARGH! Pin
Chris Losinger10-Apr-02 6:35
professionalChris Losinger10-Apr-02 6:35 
GeneralRe: VC 7 - ARGH! Pin
Tim Smith10-Apr-02 6:53
Tim Smith10-Apr-02 6:53 
GeneralRe: VC 7 - ARGH! Pin
Chris Losinger10-Apr-02 7:09
professionalChris Losinger10-Apr-02 7:09 
GeneralRe: VC 7 - ARGH! Pin
Tim Smith11-Apr-02 2:29
Tim Smith11-Apr-02 2:29 
GeneralRe: VC 7 - ARGH! Pin
NormDroid11-Apr-02 2:48
professionalNormDroid11-Apr-02 2:48 
GeneralMicrosoft paint's CWnd based Tool Box object. Pin
kursatkaraca10-Apr-02 5:33
kursatkaraca10-Apr-02 5:33 
GeneralVC++ .NET Add-In - Any help will be good... Pin
Pavel Sokolov10-Apr-02 4:47
Pavel Sokolov10-Apr-02 4:47 
Questionhow do you guys debug your CGI apps??? Pin
LukeV10-Apr-02 4:32
LukeV10-Apr-02 4:32 
AnswerRe: how do you guys debug your CGI apps??? Pin
Jeremy Falcon10-Apr-02 4:52
professionalJeremy Falcon10-Apr-02 4:52 
AnswerRe: how do you guys debug your CGI apps??? Pin
Joaquín M López Muñoz10-Apr-02 9:52
Joaquín M López Muñoz10-Apr-02 9:52 
GeneralClass not Registered! Pin
AllenT10-Apr-02 4:16
AllenT10-Apr-02 4:16 
GeneralDelete Executeable Pin
Mazdak10-Apr-02 4:00
Mazdak10-Apr-02 4:00 
GeneralRe: Delete Executeable Pin
Rickard Andersson2010-Apr-02 4:15
Rickard Andersson2010-Apr-02 4:15 

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.