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 

No Icon in Active-X Palette

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





PostPosted: Fri Apr 23, 2004 7:47 am    Post subject: Re: No Icon in Active-X Palette Reply with quote



Tools->Environment Options... click on the Type Library Tab.
Enable the "Ignore special CoClass flags when importing" option, and tick
"Hidden",and "CanCreate"
Then re-import the OCX.

Stew

"Jan" <jan.vandyck (AT) skynet (DOT) be> wrote

Quote:

I am trying to import an OCX writen in VB.
It works well in another VB application.

Importing it in BCB6 goes well but whatever I do,
I have never an icon in te Active-X palette.



Back to top
BigStew
Guest





PostPosted: Fri Apr 23, 2004 2:11 pm    Post subject: Re: No Icon in Active-X Palette Reply with quote



This must be the case, sorry.

Stew

"Jan" <jan.vandyck (AT) skynet (DOT) be> wrote

Quote:
Thank you Stew,

If I open Tools->Environment Options, there is a tab called Library,
(not Type Library) and there is no
"Ignore special CoClass flags when importing" option.

Is it because I have 'only' a 'personal' version of BCB6?



Back to top
Jan
Guest





PostPosted: Fri Apr 23, 2004 2:21 pm    Post subject: No Icon in Active-X Palette Reply with quote



I am trying to import an OCX writen in VB.
It works well in another VB application.

Importing it in BCB6 goes well but whatever I do,
I have never an icon in te Active-X palette.

Importing it in BCB4 gives somekind of default icon
in the Active-X palette. I can use this component in an application.
I can build the project, but when I run the EXE, I get:
"OLE error 800A000B" In the headerfile witch is generated duiring import
i find:
#include <vcl/utilcls.h>
#if !defined(__UTILCLS_H_VERSION) || (__UTILCLS_H_VERSION < 0x0101)
#error "This file requires an newer version of the header file UTILCLS.H"
#endif

clearly, BCB4 is too old?

And very strange: BCB3 behaves in the same way as BCB6:
no icon after import.


What can I do to have the icon in the BCB6 active-X palette?

Thank you very much,

Jan


Back to top
Jan
Guest





PostPosted: Fri Apr 23, 2004 6:00 pm    Post subject: Re: No Icon in Active-X Palette Reply with quote

Thank you Stew,

If I open Tools->Environment Options, there is a tab called Library,
(not Type Library) and there is no
"Ignore special CoClass flags when importing" option.

Is it because I have 'only' a 'personal' version of BCB6?

Jan


"BigStew" <Big_Stew (AT) talk21 (DOT) com> wrote

Quote:
Tools->Environment Options... click on the Type Library Tab.
Enable the "Ignore special CoClass flags when importing" option, and tick
"Hidden",and "CanCreate"
Then re-import the OCX.

Stew





Back to top
Craig Farrell
Guest





PostPosted: Fri Apr 23, 2004 7:33 pm    Post subject: Re: No Icon in Active-X Palette Reply with quote

Hi,

Quote:
(not Type Library) and there is no
"Ignore special CoClass flags when importing" option.

Is it because I have 'only' a 'personal' version of BCB6?

Seems like it. If you are comfortable editing the Registry,
and feel like experimenting, you can try adding the following
keys, which are the result of an export from my Pro version.
To try the experiment, close the IDE, open RegEdit, back up
(export) the entire HK_C_U C++Builder 6 registry. Then use
the following, either as a guide for manual additions, or
save off from this message as a .REG, open in Notepad.exe
and make sure it complies with the format you see in your
backed-up .reg, and then import it.


[HKEY_CURRENT_USERSoftwareBorlandC++Builder6.0Type Library]
"UILanguage"="1"
"SafeCallMapping"="1"
"ShowUpdatesUI"="False"
"IgnoreSpecialFlags"="True"
"MakeComponent"="True"
"IgnorePreDeclId"="False"
"IgnoreReserved"="False"
"IgnoreHidden"="True"
"IgnoreCanCreate"="True"
"DispInterfInControlWrap"="False"
"MSStylePropGetSet"="False"
"CppChangeSuffixInCompWrap"="False"
"CppOcxSuffix"="_OCX"
"ImplementBase"="False"

Back to top
BigStew
Guest





PostPosted: Mon Apr 26, 2004 7:51 am    Post subject: Re: No Icon in Active-X Palette Reply with quote

Do you get the type library editor in the personal version?
I don't know whether changeing the flags this way would work?
Or if you know someone with the Pro, Ent version who would be kind enough to
create a .bpk for you...

Stew

"Jan" <jan.vandyck (AT) skynet (DOT) be> wrote

Quote:
Hi Craig,

I tried the experiment but it did not work.
The only solution for me is finding 999$ for the Pro version.
(I bet there isn't a newsgroup for that)

Thank you very much Craig,

Jan






Back to top
Jan
Guest





PostPosted: Mon Apr 26, 2004 2:40 pm    Post subject: Re: No Icon in Active-X Palette Reply with quote

Hi Craig,

I tried the experiment but it did not work.
The only solution for me is finding 999$ for the Pro version.
(I bet there isn't a newsgroup for that)

Thank you very much Craig,

Jan



Back to top
Jan
Guest





PostPosted: Mon Apr 26, 2004 6:10 pm    Post subject: Re: No Icon in Active-X Palette Reply with quote

There is no Type Library editor in BCB6 'Personal'
also there is no TLIBIMP.EXE witch can do something I think.

But you bring me to an idea of asking someone to create the .bpk for me...

Thanks Stew,

Jan



"BigStew" <Big_Stew (AT) talk21 (DOT) com> wrote

Quote:
Do you get the type library editor in the personal version?
I don't know whether changeing the flags this way would work?
Or if you know someone with the Pro, Ent version who would be kind enough
to
create a .bpk for you...

Stew





Back to top
henk
Guest





PostPosted: Mon Apr 26, 2004 6:55 pm    Post subject: Re: No Icon in Active-X Palette Reply with quote

One last attempt:
do you have under the Open Menu the possibility to
open an *.OCX file?
if so, you could try that way to generate a TypeLibrary(*.TLB)
of the *.OCX with the proper CanCreate Flags checked etc.

SUCCESS, henk

"Jan" <jan.vandyck (AT) skynet (DOT) be> wrote:
Quote:
There is no Type Library editor in BCB6 'Personal'
also there is no TLIBIMP.EXE witch can do something I think.

But you bring me to an idea of asking someone to create the .bpk for me...

Thanks Stew,

Jan



"BigStew" <Big_Stew (AT) talk21 (DOT) com> wrote in message
news:408cbfc9 (AT) newsgroups (DOT) borland.com...
Do you get the type library editor in the personal version?
I don't know whether changeing the flags this way would work?
Or if you know someone with the Pro, Ent version who would be kind enough
to
create a .bpk for you...

Stew






Back to top
Jan
Guest





PostPosted: Tue Apr 27, 2004 4:12 pm    Post subject: Re: No Icon in Active-X Palette Reply with quote

No, its not possible.

Thanks anyway Henk!

Jan


"henk" <henk.vannoort (AT) net (DOT) hcc.nl> wrote

Quote:

One last attempt:
do you have under the Open Menu the possibility to
open an *.OCX file?
if so, you could try that way to generate a TypeLibrary(*.TLB)
of the *.OCX with the proper CanCreate Flags checked etc.

SUCCESS, henk





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.