Hello,
I have a question regarding the MSPlot sample of the WinDDK. In this sample
the function drvlineto is not implemented. I've implemented the drvlineto to
the hooktable in the enable.c, then I also added the hookflag HOOK_LINETO to
the flags. I implemented the function DrvLineTo(...).
But when I call the lineto function in MFC the function doesn't get triggered.
Somewhere I read I needed to select a solid pen with 0 width, I've tried it
but it doesn't work.
The driver does build successfully. I installed the driver. The driver gets
loaded through the CDC.createDC(...). But when I call CDC.LineTo(...) while
debugging with WinDBG, the function doesn't get hooked. Why? Does anyone
knows?
Kind regards,
Chi Wai
|
|
0
|
|
|
|
Reply
|
Utf
|
6/24/2010 2:47:06 PM |
|
Metroickha <Metroickha@discussions.microsoft.com> wrote:
>
>I have a question regarding the MSPlot sample of the WinDDK. In this sample
>the function drvlineto is not implemented. I've implemented the drvlineto to
>the hooktable in the enable.c, then I also added the hookflag HOOK_LINETO to
>the flags. I implemented the function DrvLineTo(...).
>
>But when I call the lineto function in MFC the function doesn't get triggered.
>
>Somewhere I read I needed to select a solid pen with 0 width, I've tried it
>but it doesn't work.
Do you implement DrvStrokePath? If so, GDI will turn all line calls into
calls to DrvStrokePath.
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.
|
|
0
|
|
|
|
Reply
|
Tim
|
6/26/2010 4:27:48 AM
|
|
Thanks for your replies mr Robers!
DrvStrokePath is already implemented with the sample. I did try to remove
its implementation. But still drvlineto seems not to work.
While debugging I noticed that 'EnableSurface' doesn't get called. Is this
because there is not physical plotter connected to the computer?
When I setup the printer in Print-to-file mode it drvlineto gets called
sometimes.
Besides that it crashes the spooler-service in Windows 7, not in XP. When I
put the printer to LTP-mode it doesn't crash the spooler-service, but it
doesn't call anything as 'EnableSurface' doesn't get called. The last
function it calls is 'CompletePDev'.
So it seems that the hooks do not associate with the createsurface. What can
I do?
Implement the function body of 'EnableSurface' in 'CompletePDEV'?
Kind regards,
Chi Wai
"Tim Roberts" wrote:
> Metroickha <Metroickha@discussions.microsoft.com> wrote:
> >
> >I have a question regarding the MSPlot sample of the WinDDK. In this sample
> >the function drvlineto is not implemented. I've implemented the drvlineto to
> >the hooktable in the enable.c, then I also added the hookflag HOOK_LINETO to
> >the flags. I implemented the function DrvLineTo(...).
> >
> >But when I call the lineto function in MFC the function doesn't get triggered.
> >
> >Somewhere I read I needed to select a solid pen with 0 width, I've tried it
> >but it doesn't work.
>
> Do you implement DrvStrokePath? If so, GDI will turn all line calls into
> calls to DrvStrokePath.
> --
> Tim Roberts, timr@probo.com
> Providenza & Boekelheide, Inc.
> .
>
|
|
0
|
|
|
|
Reply
|
Utf
|
6/28/2010 9:05:43 AM
|
|
Metroickha <Metroickha@discussions.microsoft.com> wrote:
>
>DrvStrokePath is already implemented with the sample. I did try to remove
>its implementation. But still drvlineto seems not to work.
>
>While debugging I noticed that 'EnableSurface' doesn't get called. Is this
>because there is not physical plotter connected to the computer?
How are you installing your driver? There must have been SOMETHING to
trigger your installation -- even a virtual plotter. GDI doesn't care
whether there's a real device, as long as there is something to talk to.
How are you testing your printing?
>So it seems that the hooks do not associate with the createsurface. What can
>I do?
>Implement the function body of 'EnableSurface' in 'CompletePDEV'?
No, that's no good. You can't create the surface until GDI asks you to do
so. Tell me about your installation, and we'll go from there.
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.
|
|
0
|
|
|
|
Reply
|
Tim
|
6/30/2010 5:12:31 AM
|
|
|
3 Replies
183 Views
(page loaded in 0.526 seconds)
Similiar Articles: Function doesn't work - microsoft.public.excel.worksheet ...The following function doesn't work (I get #VALUE in the cell) It is called with ... The following function doesn't work (I get #VALUE in the cell) It is called with, say ... IE 7 won't call onchange after onkeypress fires (using enter ...I have added event listeners using attachEvent (which fires during tab out) and it won't get called either. I can't just call onchange() from the onkeypress ... Bug in Xml.XmlElement? - microsoft.public.windows.powershell ...... sms_package.name Having a look at Get-Member, XmlElement DOESN'T ... package.name >>> >>> Having a look at Get-Member, XmlElement DOESN'T contain property called ... VB scrip doesn't work in Access 2007 - microsoft.public.access ...call vbScript from vba or convert vbscript to vba(Access 2007 ... VB scrip doesn't work in Access 2007 - microsoft.public ... It doesn't get any ... Creating Shortcut Keys In ... Search doesn't work - microsoft.public.windowsxp.help_and ...> >> Then I realised that the Search doesn't work. > >> I get the following error: > >> "A file ... When the Search is called from Windows Explorer, on the left side there is ... Autonew macro won't run in Word 2007 - microsoft.public.word ...The macro you posted is called Main(). If you want a macro to run when a new ... > > The template doesn't work properly within Word when we use File, Open > command. Amcap (USBPCCamPlus) doesn't seem to work, does it work for ...>> Look in your "Control Panel" folder, for an item called "Scanners and Cameras". ... it settled on the HP > Basic Starter Camera driver, I try Picasa but that doesn't get ... How to get combo box selected index changed event in another page ...>> I have a combobox called cmbEmail in window1 and Textbox called >> txtName in ... Well, assuming these are in fact Form sub-classes as the OP says, the above won't ... Switchboard created with Switchboard Manager doesn't open ...In fact, it doesn't even exist, as far as I can see. It doesn't show in the Forms ... it deleted by accident? > Did you already have a form exist in your database called ... object name doesn't follow microsoft access object naming ...Hi, I have a database called DB1 on my local drive. I stored it at C:\Databases ... Microsoft Office Access an't find the object '[.' ... object name doesn't follow ... Why He Doesn't Call | Why Doesn't He Call | Why Men Stop Calling ...Why He Doesn't Call | Why Doesn't He Call Me | Should I Call Him | Should You Call Him | Should I Text Him | Should You Text Him | Why Men Don't Call When They Say ... Rules for Calling MenWhen Your Boyfriend Doesn’t Call or Email What to Do When You Feel Ignored. Once you’re in an established relationship, there’s a certain sense of ease that sets in. Ask a Guy: When a Guy Won’t Call You His GirlfriendThe only problem is he won’t call me his girlfriend. I’ve tried bringing it up ... I know he still has some healing to do and I know they won’t get back together ... Ask a Guy: When a Guy Doesn’t Text Back…Won’t You Call Me? | A Girl and Love; remember that you are the prize ... My friends tell me he probably doesn’t want to get too caught up in anything before ... Signs He Likes You, Signs He Doesn't - GirlsAskGuys.com - Two ...Signs He Likes You, Signs He Doesn't. Signs He Likes You (Me), Signs He Doesn't Like ... when a guy. . . ", or perhaps "This guy asked me for my number, but he hasn't called." 7/20/2012 12:27:50 PM
|