 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Simon RF Guest
|
Posted: Sat Apr 07, 2007 10:27 pm Post subject: How to use an OCX file in my application |
|
|
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
|
Posted: Mon Apr 09, 2007 11:40 pm Post subject: Re: How to use an OCX file in my application |
|
|
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 |
|
 |
|
|
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
|
|