Jeff Kish Guest
|
Posted: Wed Jul 26, 2006 6:18 pm Post subject: tlb code and cbuilder 2006 (was type library errors.. ocx ve |
|
|
| 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 |
|