GDI_DRIVER Driver compilation with VS7.1 IDE

Posted: 01-10-2004, 04:44 PM
Hi,

Introduction:
**********
I am writing a display mirror driver, I am trying to use the VS7.1 (.NET)
IDE to compile the driver, conversion to an .vsproj solution is done by the
'Source to DSP converter' app provided with 'SoftIce driver suit'.

The Problem:
**********
The mirror is build of to files: the miniport driver and the display driver,
no problems has occurred converting compiling and using the miniport driver,
in contrast, conversion of the display driver failed: the 'Source to DSP
converter' doesn't support GDI_DRIVER conversions, SO..., I tried to do some
tricks: I have changed the TARGETTYPE of the GDI_DRIVER to DRIVER and then
used the 'Source to DSP converter' with the new source file, the result was
a new .vsproj compiling a .sys driver I have changed the name of the driver
to be .dll and removed the 'DriverEntry' DLL entry point from the project
configuration, still, using the new driver causes an 'Unhandled kernel mode
exception', using the display driver compiled by the 'source' makefile works
fine and doesn't reproduce this problem, what may cause the problem? what
went wrong during the 'Source to DSP converter' conversion? what special
configurations are required for a GDI driver?
Should there be any specific entry point to a GDI_DRIVER?

Thanks in advance,
Nadav,


Reply With Quote

Responses to "GDI_DRIVER Driver compilation with VS7.1 IDE"

Nadav
Guest
Posts: n/a
 
Re: GDI_DRIVER Driver compilation with VS7.1 IDE
Posted: 01-10-2004, 10:50 PM
Well... It was because the Driver entry wasn't set to 'DrvEnableDriver'.

"Nadav" <not@today> wrote in message
news:%23%23Yu4j51DHA.3116@TK2MSFTNGP11.phx.gbl...
> Hi,
>
> Introduction:
> **********
> I am writing a display mirror driver, I am trying to use the VS7.1 (.NET)
> IDE to compile the driver, conversion to an .vsproj solution is done by
the
> 'Source to DSP converter' app provided with 'SoftIce driver suit'.
>
> The Problem:
> **********
> The mirror is build of to files: the miniport driver and the display
driver,
> no problems has occurred converting compiling and using the miniport
driver,
> in contrast, conversion of the display driver failed: the 'Source to DSP
> converter' doesn't support GDI_DRIVER conversions, SO..., I tried to do
some
> tricks: I have changed the TARGETTYPE of the GDI_DRIVER to DRIVER and then
> used the 'Source to DSP converter' with the new source file, the result
was
> a new .vsproj compiling a .sys driver I have changed the name of the
driver
> to be .dll and removed the 'DriverEntry' DLL entry point from the project
> configuration, still, using the new driver causes an 'Unhandled kernel
mode
> exception', using the display driver compiled by the 'source' makefile
works
> fine and doesn't reproduce this problem, what may cause the problem? what
> went wrong during the 'Source to DSP converter' conversion? what special
> configurations are required for a GDI driver?
> Should there be any specific entry point to a GDI_DRIVER?
>
> Thanks in advance,
> Nadav,
>
>

Reply With Quote
Maxim S. Shatskih
Guest
Posts: n/a
 
Re: GDI_DRIVER Driver compilation with VS7.1 IDE
Posted: 01-11-2004, 12:46 AM
> IDE to compile the driver, conversion to an .vsproj solution is done by the
> 'Source to DSP converter' app provided with 'SoftIce driver suit'.
Forget the converter and build using the native kernel build environment,
without all these VC++'s toys.

If the rest of your project uses VC++ build (and I would really and seriously
recommend to move it to SOURCES instead, unless you use some wizards heavily) -
then use DDKBUILD.BAT by Mark Roddy.

It runs the real DDK BUILD as a "custom build step" in VC++ project. By far
more sane solution then converting SOURCES to plain idiotic .DSP.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com


Reply With Quote
 
LinkBack Thread Tools Display Modes
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Driver Problem - system32/driver/nfts.sys gstemerman@hotmail.com Windows XP Device Drivers 0 12-22-2003 05:16 PM
A driver (service) for this device has been disabled. An alternate driver may b Manna Windows XP Device Drivers 1 12-20-2003 07:48 AM
Album Info for Compilation CDs Lynn Henderson Windows XP Music 2 11-06-2003 09:54 PM
Need Display adapter driver and Audio Driver POKEBRON Windows XP Device Drivers 1 10-21-2003 05:09 AM
Lower Filter Driver to USB Composite Driver in Windows XP. Ramkumar C Windows XP Device Drivers 0 10-15-2003 06:17 AM


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90