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

C / C++ / MFC

 
Questionwhat dose "afx" mean? Pin
ewighell22-Oct-05 4:00
ewighell22-Oct-05 4:00 
AnswerRe: what dose "afx" mean? Pin
Mircea Puiu22-Oct-05 4:23
Mircea Puiu22-Oct-05 4:23 
AnswerRe: what dose "afx" mean? Pin
rlasaca22-Oct-05 5:09
rlasaca22-Oct-05 5:09 
AnswerRe: what dose "afx" mean? Pin
Chris Losinger22-Oct-05 5:15
professionalChris Losinger22-Oct-05 5:15 
GeneralRe: what dose "afx" mean? Pin
FarPointer22-Oct-05 6:07
FarPointer22-Oct-05 6:07 
GeneralRe: what dose "afx" mean? Pin
Michael Dunn22-Oct-05 6:23
sitebuilderMichael Dunn22-Oct-05 6:23 
GeneralRe: what dose "afx" mean? Pin
ewighell22-Oct-05 5:44
ewighell22-Oct-05 5:44 
Questioncompile errors with GDI Pin
j_penbert22-Oct-05 3:34
j_penbert22-Oct-05 3:34 
Hey!

The steps I have taken setting up GDI+ through VC++ so far.
1] Get the MS SDK.
2] Go to Tools->Options->Directories and add the "include" and "lib" directories of the MS SDK folder.
3] Go to Project->Settings->Link and add "gdiplus.lib" to the "Object/library modules" linked list field.
4] Use "#include gdiplus.h" in stdafx.h.

Total newb question:
I get compile errors after step 4]. I have not yet used any GDI-based objects in my code. The errors stem from just having the "#include gdiplus.h" in stdafx.h.

Some of the compile errors:
--------------------Configuration: FirstMenu - Win32 Debug--------------------
Compiling resources...
Compiling...
StdAfx.cpp
c:\program files\microsoft platform sdk\include\gdiplusimaging.h(67) : error C2501: 'MIDL_INTERFACE' : missing storage-class or type specifiers
c:\program files\microsoft platform sdk\include\gdiplusimaging.h(67) : error C2440: 'initializing' : cannot convert from 'char [37]' to 'int'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
c:\program files\microsoft platform sdk\include\gdiplusimaging.h(67) : error C2146: syntax error : missing ';' before identifier 'IImageBytes'
c:\program files\microsoft platform sdk\include\gdiplusimaging.h(67) : error C2501: 'IImageBytes' : missing storage-class or type specifiers
c:\program files\microsoft platform sdk\include\gdiplusimaging.h(67) : error C2239: unexpected token ':' following declaration of 'IImageBytes'
c:\program files\microsoft platform sdk\include\gdiplusimaging.h(67) : error C2059: syntax error : 'public'
c:\program files\microsoft platform sdk\include\gdiplusimaging.h(246) : error C2146: syntax error : missing ';' before identifier 'id'
c:\program files\microsoft platform sdk\include\gdiplusimaging.h(246) : error C2501: 'PROPID' : missing storage-class or type specifiers
c:\program files\microsoft platform sdk\include\gdiplusimaging.h(246) : error C2501: 'id' : missing storage-class or type specifiers
c:\program files\microsoft platform sdk\include\gdiplusheaders.h(384) : error C2629: unexpected 'class Gdiplus::Image ('
c:\program files\microsoft platform sdk\include\gdiplusheaders.h(384) : error C2238: unexpected token(s) preceding ';'
c:\program files\microsoft platform sdk\include\gdiplusheaders.h(395) : error C2061: syntax error : identifier 'IStream'
c:\program files\microsoft platform sdk\include\gdiplusheaders.h(405) : error C2061: syntax error : identifier 'IStream'
c:\program files\microsoft platform sdk\include\gdiplusheaders.h(443) : error C2061: syntax error : identifier 'PROPID'
...

The compiler stops at 100 errors. I figure I'm not including a needed library, but I'm lost. If anyone has any recommendations I'd be very grateful.

Thanks for your time.

j_penbert
Questiondebugging Pin
virmanisunil22-Oct-05 2:24
virmanisunil22-Oct-05 2:24 
Question840730 - using DLGTEMPLATE Pin
ilostmyid222-Oct-05 1:45
professionalilostmyid222-Oct-05 1:45 
QuestionRun time error(Very Urgent) Pin
kind_person22-Oct-05 1:30
susskind_person22-Oct-05 1:30 
QuestionCDaoDatabase - Edit Pin
ddmcr22-Oct-05 1:11
ddmcr22-Oct-05 1:11 
AnswerRe: CDaoDatabase - Edit Pin
Ghasrfakhri22-Oct-05 2:21
Ghasrfakhri22-Oct-05 2:21 
GeneralRe: CDaoDatabase - Edit Pin
ddmcr22-Oct-05 4:02
ddmcr22-Oct-05 4:02 
GeneralRe: CDaoDatabase - Edit Pin
Ghasrfakhri22-Oct-05 9:17
Ghasrfakhri22-Oct-05 9:17 
Questiontree notifications Pin
narayanagvs22-Oct-05 0:55
narayanagvs22-Oct-05 0:55 
AnswerRe: tree notifications Pin
narayanagvs22-Oct-05 1:25
narayanagvs22-Oct-05 1:25 
QuestionPRODUCT KET VS.2005 BETA 2 Pin
Greeky21-Oct-05 23:43
Greeky21-Oct-05 23:43 
AnswerRe: PRODUCT KET VS.2005 BETA 2 Pin
Michael Dunn22-Oct-05 6:27
sitebuilderMichael Dunn22-Oct-05 6:27 
GeneralRe: PRODUCT KET VS.2005 BETA 2 Pin
ddmcr22-Oct-05 7:35
ddmcr22-Oct-05 7:35 
Questionhow to design muti thread program in VC++ Pin
Anonymous21-Oct-05 22:59
Anonymous21-Oct-05 22:59 
AnswerRe: how to design muti thread program in VC++ Pin
Arman S.22-Oct-05 1:01
Arman S.22-Oct-05 1:01 
AnswerRe: how to design muti thread program in VC++ Pin
Rage_bla22-Oct-05 4:34
Rage_bla22-Oct-05 4:34 
Questionreguarding re-positioning CPropertyPage in CDialog. Pin
suchuhui21-Oct-05 22:48
suchuhui21-Oct-05 22:48 
Answerproblem has been figured out. Pin
suchuhui21-Oct-05 23:38
suchuhui21-Oct-05 23:38 

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.