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 

How to use an OCX file in my application

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





PostPosted: Sat Apr 07, 2007 10:27 pm    Post subject: How to use an OCX file in my application Reply with quote



Hello all,

I have an OCX (made in visual basic) file that I need to use in my
program, but I don't know how to.

I have tried installing it in the component palette but it doesn't
show up at all, I have tried importing it in the type library, but
again no clue what to do with it.

Can anyone help me please.

I am using C++Builder 5.

Thank you in advance

Simon RF
Back to top
Craig Farrell
Guest





PostPosted: Mon Apr 09, 2007 11:40 pm    Post subject: Re: How to use an OCX file in my application Reply with quote



Hi,

Quote:
I have an OCX (made in visual basic) file that I need to use in my
I have tried installing it in the component palette but it doesn't
show up at all, I have tried importing it in the type library, but
I am using C++Builder 5.

I think, in BCB5, it is the tlibimp.exe -Yu switch
that you will need but I cannot check that as I do
not have BCB5 installed.
The following is copied and pasted from an old post:

Quote:
There was an issue with VB control flags like Creatable
being OFF. Basically, BCB4 ignored some but when BCB5
started obeying them, problems showed up. There are
switches to tlibimp (the command line tool for importing
type libraries and ActiveX controls) that will ignore
these flags. Make sure the patch is applied and try a
command line import like:

tlibimp -C+ -Yu -Ya -H+ -Q+ -R+ SomeName.ocx

Then files are generated that you can add to a
package and install in the IDE.

-Ya might be BCB6-only so if you get errors
on it, then just use -Yu.


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