Re: Link errors using ddk with Visual C++ v6.0

From: Gary G. Little (gglittle.nospam_at_sbcglobal.net)
Date: 08/14/04


Date: Sat, 14 Aug 2004 19:35:34 GMT

You are attempting to link MFC into a driver? I assume this as a possibility
since you mention DDK in a response to someone making reference to MFC.
Simply stated --- you CANNOT do that and if you get a good link you will die
a miserable blue death when you run it. MFC is NOT supported in the DDK and
the DDK is NOT supported in the MFC. If you want to use a class library in
the kernel then look to either Compuware's Driver Studio (2K+) or Hollistech
(free).

-- 
The personal opinion of
Gary G. Little
"MikeDW" <MikeDW@discussions.microsoft.com> wrote in message
news:783BC750-9E04-4CE5-A1ED-B4025637DFE1@microsoft.com...
> Thanks!
>
> Now I just have to find a previous version of the DDK to download.
>
> "Bobby Mattappally [MS]" wrote:
>
> >
> > --------------------
> >
> > As I was typing, I just used the functions I needed, then at compile
time I
> > added #includes to add in the functions the compiler couldn't find.
> >
> > I don't remember needing them in before, but...
> >
> > It sure would be nice to know why I coundn't compile with MFC in place,
> > though.  That would save me alot of work on this project.
> >
> > Thanks for your help!
> >
> >
> >
> > "Yavin" wrote:
> >
> > > "MikeDW" wrote:
> > > > windows.h, cfgmgr32.h, stdlib.h, and stdio.h
> > >
> > > Do you need the additional includes for stdlib.h and stdio.h? I think
> > this
> > > includes are not necessary because windows.h will include them!?
> >
> > Hi Mike,
> > Most likely this due mismatch in library files.
> > Your ddk libs are build with a newer version (7.0) of compiler and libs
and
> > you are trying to mix it with Vc6.0.
> > Try using VC7.0 or using older version of DDK (eg win2k dkk).
> > Hope this helps.
> >
> > Thank you,
> > Bobby Mattappally
> > Microsoft DDK Support
> >
> > This posting is provided "AS IS" with no warranties, and confers no
rights


Relevant Pages

  • Re: Compile error with #import
    ... You cannot use ActiveX in a driver. ... building user space applications that come with the DDK. ... > to my file I get compile errors. ...
    (microsoft.public.development.device.drivers)
  • Re: What do I have to use to compile DDK samples?
    ... If you wish to use a Visual Studio IDE, then download DDKBUILD from either ... You should be using the latest DDK for your work. ... Windows 2k/XP/2k3 Filesystem and Driver Consulting ... Can I compile drivers by SE version? ...
    (microsoft.public.development.device.drivers)
  • Re: WDM or WDK
    ... Most use visual studio for editor and compile in DDK environment. ... start and check your installation is good, ... WDM is for driver model before windows 2000. ...
    (microsoft.public.development.device.drivers)
  • Re: question about using VC6 with DDK
    ... You can compile it using the BUILD utility. ... (Topic: Driver Writer's Guide). ... you read above mentioned topic in DDK you will get a clear picture. ... but i havent found am explanation so far that tells ...
    (microsoft.public.development.device.drivers)
  • Re: driver install on XP 64bit edition
    ... to use that 64-bit driver you built with the XP DDK. ... > environment for the upcoming Microsoft® ... > To compile your driver with the 64-bit compiler, ...
    (microsoft.public.development.device.drivers)