473,225 Members | 1,322 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,225 software developers and data experts.

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 3752
weaknessforcats
9,208 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,208 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

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

Similar topics

5
by: Genboy | last post by:
My "VIS" Website, which is a C# site created in VS.NET, Framework 1.1, is no longer compiling for me via the command line. As I have done 600 times in the last year and a half, I can compile to...
2
by: joye | last post by:
Hello, My question is how to use C# to call the existing libraries containing unmanaged C++ classes directly, but not use C# or managed C++ wrappers unmanaged C++ classes? Does anyone know how...
5
by: Tom | last post by:
I am converting an old application that was printing directly to a specialized printer device (i.e. a special label printer). It was doing this by opening a file with the file path of 'LPT1:' and...
5
by: TS | last post by:
is it preferred to access member variables directly in code, on the page that declared them, versus going thru a property accessor? I would think that since theres no security concerns or anything...
10
by: Uma - Chellasoft | last post by:
Hai, I am new to VB.Net programming, directly doing socket programming. In C, I will be able to map the message arrived in a socket directly to a structure. Is this possible in VB.Net. Can...
0
by: Kevin | last post by:
Hi all - Not sure if this question has been asked before (I searched but couldn't find anything) but is there a way to directly execute a stored procedure directly on the mainframe? In a DB2...
4
by: Travis | last post by:
Is it considered good practice to call a mutator when inside the same class or modify the attribute directly? So if there's a public method SetName() would it be better from say ::Init() to call...
3
by: =?Utf-8?B?QmlsbHkgWmhhbmc=?= | last post by:
I have a asp.net page, it uses js to print in IE. It always has the prompting user window appear. I have tried: <input onclick="document.all.WebBrowser.ExecWB(6,6)" type="button"...
1
by: TamusJRoyce | last post by:
After two years of programming relentlessly in Visual Basic .Net, I have never found if there is a way to directly implement all the required properties/functions/subroutines of an interface directly...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.