468,484 Members | 1,792 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,484 developers. It's quick & easy.

How to use GdipDrawString directly?

2
I have a need to intercept GdipDrawString() and need to declare its exact signature. I've included the gdiplusflat.h, but am getting a whole bunch error messages. Can some one point me to a sample code using GdipDrawString()?
Mar 20 '08 #1
3 3453
weaknessforcats
9,207 Expert Mod 8TB
What do you mean by intercept GdipDrawString() ?

Also, a "whole bunch of error messages" is not helpful. Maybe you could post the first message since that's the one identifying the problem.
Mar 20 '08 #2
njhy
2
I need to hook the GdipDrawString() api.
Following are first few compilation errors.
1>c:\program files\microsoft visual studio 8\vc\platformsdk\include\gdiplusflat.h(30) : error C2143: syntax error : missing ';' before '__stdcall'
1>c:\program files\microsoft visual studio 8\vc\platformsdk\include\gdiplusflat.h(30) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft visual studio 8\vc\platformsdk\include\gdiplusflat.h(31) : error C2065: 'GpFillMode' : undeclared identifier
1>c:\program files\microsoft visual studio 8\vc\platformsdk\include\gdiplusflat.h(31) : error C2146: syntax error : missing ')' before identifier 'brushMode'
1>c:\program files\microsoft visual studio 8\vc\platformsdk\include\gdiplusflat.h(31) : warning C4229: anachronism used : modifiers on data are ignored
1
Mar 20 '08 #3
weaknessforcats
9,207 Expert Mod 8TB
You are getting an error in gdiplusflat.h because GpStatus is not defined. This tells me that you cannot just include this header and expect things to work. You will also need to include the header that declares GpStatus.
Mar 20 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by =?Utf-8?B?QmlsbHkgWmhhbmc=?= | last post: by
reply views Thread by NPC403 | last post: by
2 posts views Thread by gieforce | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.