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 

Cannot convert 'int' to 'long *'

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





PostPosted: Sun Apr 08, 2007 1:55 pm    Post subject: Cannot convert 'int' to 'long *' Reply with quote



Hello,

I have a problem with the following code..

long * xPortNo = 1;

rfidsf1->OpenPort(xPortNo);

It gives the following error Cannot convert 'int' to 'long *'

It's an OCX and the OCX loaded in to CBuilder says.. HRESULT _stdcall
OpenPort([in, out] long * comPort, [out, retval] VARIANT_BOOL *
Param2 );

The manual says, Function OpenPort( nComPort as long ) as Boolean.

Does anyone have any ideas as to what I an do to get this to work
please.

Thanks

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