Article View: borland.public.cppbuilder.nativeapi
Article #1433Re: How to deal with DDK header files not included in Builder 2007 ?
From: Ed Mulroy [TeamB]
Date: Sat, 25 Aug 2007 18:52
Date: Sat, 25 Aug 2007 18:52
43 lines
2950 bytes
2950 bytes
FWIW: A couple of versions ago I created some device drivers with BCB. The IDE was not up to it. I had to use the command line to do it. The linker has (had?) an option to create a device driver. . Ed > Jonathan Benedicto wrote in message > news:46d073e6$1@newsgroups.borland.com... > >> This seems like a never ending story of adding new header files (and >> having those newly included header files cause other errors). For now >> I've commented out GetCollectionDescription in order to get things >> compiled (but the possibility exists that I'm going to still need it >> later on). > > This is sometimes what one has to do to get code written from MSVC to work > in BCB. > > >> (2) Hid API calls do not link >> E.g. HidD_GetAttributes(DeviceHandle,&Attributes); compiles fine but >> fails to link with following error: >> [ILINK32 Error] Error: Unresolved external '__stdcall >> HidD_GetAttributes(void *, _HIDD_ATTRIBUTES *)' referenced from >> C:\DOCUMENTS AND SETTINGS\KRIS\MY DOCUMENTS\RAD >> STUDIO\PROJECTS\USB_HID\DEBUG_BUILD\USB_IO_UNIT.OBJ >> >> For now I've worked around the problem by using GetProcAddress() to >> extract the location of the function I need from HID.DLL. This works >> fine, but it sure would be nice if I wouldn't have to do this for every >> HID function call I want to use. > > Use implib on the HID.dll file to get a BCB-compatible .lib file that will > handle all these imports for you. > > >> Basically I'm wondering how one is able to efficiently and correctly use >> the DDK header files from Visual studio in Builder 2007 ? > > Like Dennis Jones said, you'll probably find that you need to use VS to > develop device drivers. I think that there are some limitations to the BCB > linker and/or compiler that prevent it from being able to create device > drivers.
Technical Details
Message-ID:
<46d07a66$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<46d05592@newsgroups.borland.com> <46d073e6$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,e9c910c4ee30f0b3 X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Ed Mulroy [TeamB]" <dont_email_me@bitbuc.ket> Newsgroups: borland.public.cppbuilder.nativeapi References: <46d05592@newsgroups.borland.com> <46d073e6$1@newsgroups.borland.com> Subject: Re: How to deal with DDK header files not included in Builder 2007 ? Date: Sat, 25 Aug 2007 14:52:19 -0400 Lines: 45 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 66.57.114.44 Message-ID: <46d07a66$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1188067942 66.57.114.44 (25 Aug 2007 11:52:22 -0700) X-Authenticated-User: edmulroy Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail