BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

One EXE for different Win versions (usb/setupapi)?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (WinAPI)
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Mon Mar 13, 2006 5:03 pm    Post subject: One EXE for different Win versions (usb/setupapi)? Reply with quote



Hi,

I have installed C++ Builder on 3 machines: Win98se, Win2k and WinXP.
I am doing some basic USB HID software and need access to HID.DLL and
SETUPAPI.DLL. In using those DDLs I use IMPLIB to get SETUPAPI.LIB and
HID.LIB (I have done it on all 3 machines using the DLL files native
one those machines. On each machine I can build, link and run the
program and everything works fine.

I cannot use the resulting EXE on any of the other machines
(platforms). Should I not be able to create one EXE that works over
all of the platforms?? I'm getting various errors from invalid memory
access others I can't recall. HidD_SetFeature() is the most
problematic, but I also get problems with SetupDiGetClassDevs() and
HidD_GetHidGuid() as I move from one platform to another. Is there a
way to may one EXE that works at least on Win2k and XP? I don't see
why the is EXE is not portable across 2k/XP. Any tips appreciated.

Thx,
GB
Back to top
Guest






PostPosted: Mon Mar 13, 2006 5:03 pm    Post subject: Re: One EXE for different Win versions (usb/setupapi)? Reply with quote



I forgot to mention I'm using CPPBuilder 5 w/ upgrade pack 1. I see
there was a post a long time ago about updated headers for BCB6 (
http://www.bcbdev.com/articles/bcb6headers.htm ) but I can't follow
that link.

GB
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (WinAPI) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.