🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #1437

Re: How to deal with DDK header files not included in Builder 2007 ?

#1437
From: Mike Collins
Date: Sun, 26 Aug 2007 11:14
48 lines
3079 bytes
Not sure if this helps but there was some work done developing device 
drivers using delphi.  I read about it on rootkit.com or 
http://rootkit.host.sk

This might be something worth looking at.

P.S. please post back if you get something - i'm particularly interested in 
this

"Jonathan Benedicto" <invalid@nobody.com> wrote in message 
news:46d073e6$1@newsgroups.borland.com...
> Kris wrote:
>> 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.
>
> Jon 
Technical Details
Message-ID: <46d15017@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <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: "Mike Collins" <its@TheBottomOfThePost>
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: Sun, 26 Aug 2007 11:14:54 -0000
Lines: 50
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.3790.3959
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4073
NNTP-Posting-Host: 84.13.105.128
Message-ID: <46d15017@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1188122647 84.13.105.128 (26 Aug 2007 03:04:07 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail