🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: HID.DLL compatibility across OS versions

#4112
From: GB
Date: Fri, 17 Mar 2006 00:23
21 lines
1855 bytes
> You will probably have to use LoadLibrary() and GetProcAddress() to load
the
> OS's version of hid.dll dynamically at runtime.  Then you do not need to
use
> implib at all, or recompile your code for each platform.

OK, thanks... I'll do that as a last resort.  I have discovered that the
USB portion of the code (HidD_GetHidGuid, SetupDiGetClassDevs,
SetupDiEnumDeviceInterfaces, etc) works fine using CBuilder 1.0.
With CBuilder 1.0 I can use *any* version of the OS DLL's and implib
them and the EXE runs under *any* OS.  I need that functionality
with CBuilder 5.0.

I've tried it with and without 5.0's Upgrade 1 pack and I tried importing
the CBuilder 1.0's MAK file into CBuilder 5.  The import went OK and
the file compiles and links, but just like my earlier 5.0 efforts it doesn't
run on any other OS without a recompile using that OS's DLL's -> LIB.
The errors I get are basically "bad handle".

Ugh,
GB
Technical Details
Message-ID: <441a016d$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <44185ea4$1@newsgroups.borland.com> <4418b916@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,8f8027804da0a3f1
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "GB" <nospam_grant@genovation.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <44185ea4$1@newsgroups.borland.com> <4418b916@newsgroups.borland.com>
Subject: Re: HID.DLL compatibility across OS versions
Date: Thu, 16 Mar 2006 16:23:09 -0800
Lines: 23
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 64.60.8.115
Message-ID: <441a016d$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1142554989 64.60.8.115 (16 Mar 2006 16:23:09 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail