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 

tlb code and cbuilder 2006 (was type library errors.. ocx ve

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





PostPosted: Wed Jul 26, 2006 6:18 pm    Post subject: tlb code and cbuilder 2006 (was type library errors.. ocx ve Reply with quote



Quote:
Hi.

I am quite unschooled (despite lots of reading and experimenting) with
ActiveX controls.

I installed an activeX control.
When I went to use it in a project, at one point I got a compile error
for a method I was pretty sure was supposed to be there.

When I looked, the error was in the xxxLib_TLB.h file like this:


template <class T> long __fastcall
TCOMISpicerDocT<T>::get_layerID(long pageID/*[in]*/, short
layerNumber/*[in]*/)
{
long a;
OLECHECK(this->get_layerID(, layerNumber, (long*)&a));
return a;
}

It appears that this is part of the dispinterface that is exposed to
the development environment, right?
Well also it looked like there was a parameter missing so I just
manually added it in:

template <class T> long __fastcall
TCOMISpicerDocT<T>::get_layerID(long pageID/*[in]*/, short
layerNumber/*[in]*/)
{
long a;
OLECHECK(this->get_layerID(pageID, layerNumber, (long*)&a));/*ADDED
PAGEID and layernumber JEFF KISH*/
return a;
}

Things worked better after I did this.
Now...

I don't know how to read the tlb file that came with the ocx.
I was wondering if this was likely a shortcoming in the tlb file and
should I tell the vendor, or is it a problem with the way CBuilder
imported the activeX control and subsequently built the .h/.cpp
interface files?

Thanks
Jeff Kish

Hi.

I had problems with cbuilder 6, where the tlb file which is
autogenerated by borland seemed to, in several cases, be missing
information.

Is cbuilder 2006 notebly better in this regard?

thanks
Jeff
Jeff Kish
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.