Click here to Skip to main content
15,912,507 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CString crashes -- when i assign TCHAR array to it Pin
David Crow18-Apr-05 8:24
David Crow18-Apr-05 8:24 
GeneralRe: CString crashes -- when i assign TCHAR array to it Pin
22491718-Apr-05 19:07
22491718-Apr-05 19:07 
GeneralRe: CString crashes -- when i assign TCHAR array to it Pin
David Crow19-Apr-05 2:06
David Crow19-Apr-05 2:06 
GeneralRe: CString crashes -- when i assign TCHAR array to it Pin
22491719-Apr-05 2:14
22491719-Apr-05 2:14 
GeneralRe: CString crashes -- when i assign TCHAR array to it Pin
David Crow19-Apr-05 2:35
David Crow19-Apr-05 2:35 
GeneralRe: CString crashes -- when i assign TCHAR array to it Pin
Ravi Bhavnani18-Apr-05 8:48
professionalRavi Bhavnani18-Apr-05 8:48 
GeneralRe: CString crashes -- when i assign TCHAR array to it Pin
Ryan Binns18-Apr-05 18:06
Ryan Binns18-Apr-05 18:06 
GeneralError in using GDI+ VC6 with sp5 Pin
Member 178245018-Apr-05 6:05
Member 178245018-Apr-05 6:05 
hi,everyone.
I am learining how to use GDI+.
I do the following things in my programme:
1. Include gdiplus.h
2. Add the gdiplus.lib in Project->Settings->Link-> Object/library modules .
3. Add "using namespace Gdiplus" at the beginning of the source code.
4. Initialize GDI+ using GdiplusStartup.

but I got a lot of errors:

Compiling...
StdAfx.cpp
f:\microsoft visual studio\myprojects\trygdipp\stdafx.h(22) : error C2871: 'GdiPlus' : does not exist or is not a namespace
c:\program files\microsoft sdk\include\gdiplusinit.h(32) : error C2065: 'ULONG_PTR' : undeclared identifier
c:\program files\microsoft sdk\include\gdiplusinit.h(32) : error C2065: 'token' : undeclared identifier
c:\program files\microsoft sdk\include\gdiplusinit.h(32) : error C2165: 'left-side modifier' : cannot modify pointers to data
c:\program files\microsoft sdk\include\gdiplusinit.h(32) : error C2071: 'NotificationHookProc' : illegal storage class
c:\program files\microsoft sdk\include\gdiplusinit.h(33) : error C2146: syntax error : missing ')' before identifier 'token'
c:\program files\microsoft sdk\include\gdiplusinit.h(33) : error C2165: 'left-side modifier' : cannot modify pointers to data
c:\program files\microsoft sdk\include\gdiplusinit.h(33) : error C2071: 'NotificationUnhookProc' : illegal storage class
c:\program files\microsoft sdk\include\gdiplusinit.h(33) : error C2059: syntax error : ')'
c:\program files\microsoft sdk\include\gdiplusinit.h(86) : error C2059: syntax error : 'const'
c:\program files\microsoft sdk\include\gdiplusinit.h(95) : error C2146: syntax error : missing ')' before identifier 'token'
c:\program files\microsoft sdk\include\gdiplusinit.h(95) : warning C4229: anachronism used : modifiers on data are ignored
c:\program files\microsoft sdk\include\gdiplusinit.h(95) : error C2182: 'GdiplusShutdown' : illegal use of type 'void'
c:\program files\microsoft sdk\include\gdiplusinit.h(95) : error C2059: syntax error : ')'
c:\program files\microsoft sdk\include\gdiplusflat.h(2639) : warning C4229: anachronism used : modifiers on data are ignored
c:\program files\microsoft sdk\include\gdiplusflat.h(2639) : error C2440: 'initializing' : cannot convert from 'int' to 'enum Gdiplus::Status'
Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or function-style cast)
c:\program files\microsoft sdk\include\gdiplusflat.h(2644) : error C2146: syntax error : missing ')' before identifier 'token'
c:\program files\microsoft sdk\include\gdiplusflat.h(2644) : warning C4229: anachronism used : modifiers on data are ignored
c:\program files\microsoft sdk\include\gdiplusflat.h(2644) : error C2182: 'GdiplusNotificationUnhook' : illegal use of type 'void'
c:\program files\microsoft sdk\include\gdiplusflat.h(2644) : error C2059: syntax error : ')'
Error executing cl.exe.

TryGdipp.exe - 17 error(s), 3 warning(s)

So I includeed
typedef unsigned __int64 ULONG_PTR;
in stdafx.h and there left one error:

f:\microsoft visual studio\myprojects\trygdipp\stdafx.h(22) : error C2871: 'GdiPlus' : does not exist or is not a namespace
Error executing cl.exe.

Can someone tell me how to solve the problem?
Thank you!
GeneralRe: Error in using GDI+ VC6 with sp5 Pin
PJ Arends18-Apr-05 6:17
professionalPJ Arends18-Apr-05 6:17 
Generalto PJ Arends Pin
Member 178245018-Apr-05 6:52
Member 178245018-Apr-05 6:52 
GeneralHelp!!!! Pin
Member 178245018-Apr-05 19:02
Member 178245018-Apr-05 19:02 
GeneralHelp Pin
Member 178245019-Apr-05 6:23
Member 178245019-Apr-05 6:23 
GeneralGet commandline arguments from process Pin
P Gibson18-Apr-05 5:50
P Gibson18-Apr-05 5:50 
GeneralRe: Get commandline arguments from process Pin
22491718-Apr-05 7:39
22491718-Apr-05 7:39 
GeneralRe: Get commandline arguments from process Pin
P Gibson18-Apr-05 22:18
P Gibson18-Apr-05 22:18 
GeneralRe: Get commandline arguments from process Pin
22491719-Apr-05 2:22
22491719-Apr-05 2:22 
GeneralDeskband, how to show/hide Pin
dkarpezo_218-Apr-05 4:59
dkarpezo_218-Apr-05 4:59 
GeneralRe: Deskband, how to show/hide Pin
Shaun Harrington11-Oct-06 3:54
Shaun Harrington11-Oct-06 3:54 
GeneralHWND / CWnd* - compile errors Pin
theFrenchHornet18-Apr-05 4:49
theFrenchHornet18-Apr-05 4:49 
GeneralRe: HWND / CWnd* - compile errors Pin
dkarpezo_218-Apr-05 5:15
dkarpezo_218-Apr-05 5:15 
GeneralRe: HWND / CWnd* - compile errors Pin
theFrenchHornet18-Apr-05 6:18
theFrenchHornet18-Apr-05 6:18 
GeneralRe: HWND / CWnd* - compile errors Pin
Christian Graus18-Apr-05 17:04
protectorChristian Graus18-Apr-05 17:04 
GeneralRe: HWND / CWnd* - compile errors Pin
theFrenchHornet19-Apr-05 4:46
theFrenchHornet19-Apr-05 4:46 
GeneralBITS service with IP number instead of machine name Pin
Kri518-Apr-05 4:29
Kri518-Apr-05 4:29 
GeneralRegistry Function Pin
dSolariuM18-Apr-05 4:28
dSolariuM18-Apr-05 4:28 

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.