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 

Need help with porting Delphi HID Component to C++Builder 5

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





PostPosted: Wed Aug 04, 2004 1:16 am    Post subject: Need help with porting Delphi HID Component to C++Builder 5 Reply with quote



Hi all,

I'm stuck and I need some help. I'm trying to use Robert Marquardt's
HID controller component (http://www.soft-gems.net/Controls.php) with
C++Builder 5.0, and I'm totally stuck. The component comes with a
Delphi package and a C++ Builder package. I was able to use the
component with Delphi 6, it's fantastic and does everything I need. I
now need to use the component with C++ Builder 5. Unfortunately, the
package for C++ Builder is for version 6, and won't work with version
5. Following the directions I've read in this newsgroup and others, I
created a new package and added the .Pas files. The component
installs without error. However, when I add the component to a new
application, I can't build. I'm getting errors in SetupApi.hpp, the
most common of which is 'PByte' is not a member of 'System'. I've
tried about 10 times to remove and reinstall this package using a
variety of techniques I've found via google. So far, nothing has
worked. I've had other Delphi/C++ Builder developers here in the
office give it a try. I've also tried emailing Robert Marquardt
directly, but didn't receive a reply. I'm really, really stuck.

I have several questions at this point. First, am I doing something
stupid? This should work from what I've read. Am I missing something
so blindingly obvious that no one has bothered to mention in on a
website or in a newsgroup? Second, is there any way for me to debug
this further? In the past when I've had trouble with components, they
wouldn't install. I can fix those types of problems. I'm at a loss as
to how to solve a problem with a component that installs but won't
build. I've googled for solutions, but everything I've tried has
failed. Third, has someone done this before, and if you have, do you
have a solution or a working package? Fourth, if no one has any idea
of how to solve this problem, does anyone have a suggestion for an
alternate HID controller that they recommend?

Thanks very much in advance,

Chris Gutierrez
email: gcgutier (at) hotmail (dot) com
http://www.chrisgutierrez.org
Back to top
Chris Gutierrez
Guest





PostPosted: Wed Aug 04, 2004 5:53 pm    Post subject: Re: Need help with porting Delphi HID Component to C++Builde Reply with quote



[email]gcgutier (AT) hotmail (DOT) com[/email] (Chris Gutierrez) wrote in message news:<96c41983.0408031716.74f30179 (AT) posting (DOT) google.com>...
Quote:
Hi all,

I'm stuck and I need some help. I'm trying to use Robert Marquardt's
HID controller component (http://www.soft-gems.net/Controls.php) with
C++Builder 5.0, and I'm totally stuck.

I'm a little further along now, but I'm still stuck. I deleted
everything I had done and started over. I've made some progress, but
I still don't understand what is going wrong.

I was able to resolve my earlier problem either by:
a) including the declaration {$ObjExportAll On} in the .PAS file
containing the Register routine
b) including all the .hpp headers in the environment options path.

In the file SetupApi.hpp, I'm now getting the error "E2257 ,
Expected" on the line:
typedef SP_POWERMESSAGEWAKE_PARAMS_A *PSPPowerMessageWakeParamsA;

I understand that the .hpp files were machine generated by C++Builder.
When I grep for PSPPowerMessageWakeParamsW, I find it in
SetupApi.Pas. Did I have some flag set incorrectly when I added the
..pas files to the C Builder package? Is that what this error means?

Still stumped and plugging away,

Chris Gutierrez
email: gcgutier (at) hotmail (dot) com
http://www.chrisgutierrez.org

Back to top
Chris Gutierrez
Guest





PostPosted: Wed Aug 04, 2004 10:07 pm    Post subject: Re: Need help with porting Delphi HID Component to C++Builde Reply with quote



[email]gcgutier (AT) hotmail (DOT) com[/email] (Chris Gutierrez) wrote in message news:<96c41983.0408031716.74f30179 (AT) posting (DOT) google.com>...
Quote:
Hi all,

I'm stuck and I need some help. I'm trying to use Robert Marquardt's

I just learned something that might save someone else some time.
The Borland.public.* newsgroups are READ ONLY from the google archive.
Unlike the alt.* newgroups, which really are part of Usenet, the
Borland groups do not allow posts from google. So while you might be
able to post from google, and see the post appear on the google
archive, you aren't actually reaching the Borland groups.

Therefore, no one who regularly reads the Borland groups has seen this
post... I will repost using the borland groups webpages located at:
http://newsgroups.borland.com

Hope this saves someone from the frustration I've experienced.

Chris Gutierrez
email: gcgutier (at) hotmail (dot) com
http://www.chrisgutierrez.org

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Development) 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.