Page 1 of 1
TB Lib: COM Event handler
Posted: Thu Jan 27, 2005 7:44 pm
by Justin
Tailbite library to handle COM events in an easy way, if you don't know what is COM this probably not for you
Functions:
cevConnect()
cevDisconnect()
cevBindEvent()
There are 2 libs, the other one is a linked list used by the COM lib, functions:
LLNew(), LLCurrent(), LLIndex(), LLCount(), LLAdd(), LLFirst(), LLLast(), LLNext(), LLPrev(), LLClear(), LLDestroy()
This lib was necessary because the COM lib uses a hash table wich can not be done with the current PB linked list. This lib is not documented i'll post the source code if there is some interest.
The COM lib is documented, there is a webbrowser example, you will need to be familiar with COM to use it. I initially did it to use the NeroCOM object (DVD Burning), in wich events are a must. I'll post the Nero sample when i finish it if there is some interest.
Download:
http://www.angelfire.com/cantina/justin1/COMEvents.rar
if you have problems downloading right click on the link and save target as.
Re: TB Lib: COM Event handler
Posted: Sun Jan 30, 2005 11:28 pm
by Kiffi
> Tailbite library to handle COM events in an easy way
> [...]
> Download:
>
http://www.angelfire.com/cantina/justin1/COMEvents.rar
> if you have problems downloading right click on the link and save target
> as.
sounds interesting but the Rar-Archive seems to be broken(?)
Greetings ... Kiffi
Posted: Mon Jan 31, 2005 12:56 am
by Justin
I downloaded it twice and is ok, about 9kb. maybe you are using a very old winrar version
anyways i want to change a little thing about strings, next time i'll upload in zip. DVD burning is already working with all Nero events, but probably too complicated for the average PB user.
Posted: Mon Jan 31, 2005 1:06 am
by PolyVector
it's about 9k because you're downloading the angelfire error404 page

Posted: Mon Jan 31, 2005 7:33 am
by Kiffi
> it's about 9k because you're downloading the angelfire error404 page
Yes, now i see, that the content of the COMEvents.rar-File is the 404-Page.
> if you have problems downloading right click on the link and save target
> as.
that's was i have done.
Greetings ... Kiffi
Posted: Mon Jan 31, 2005 1:01 pm
by Justin
Well, i created a geocites page quickly, there is direct link. this is an updated version. strings by reference are passed now by reference, it is explained in the doc. also added another lib to handle unicode/bstr strings.
http://www.geocities.com/mesias2030/justinsPlace.html
Posted: Mon Jan 31, 2005 1:38 pm
by Fred
Wow, it's definitely a must have library. Congratulations !
Posted: Mon Jan 31, 2005 11:41 pm
by Justin
Yes it makes things much easier. i'll post the NeroCOM example later, i need to convert it to the gadget stuff, it's a port of the Nerofiddles vb sample on the nero sdk.
Posted: Tue Feb 01, 2005 1:37 am
by PolyVector
Nice work Justin... This really expands what can be done with COM

Posted: Sun Nov 05, 2006 10:34 pm
by krensauce
Thanks so much for your COMEvents lib, Justin.
I want to ask if there is any luck in a PB4 version of it, as it gives the usual "cannot find library: LibraryExtension" error everytime I try to compile sources with its commands inside.
I'm using it for a private project since the last year, and I was trying to convert it to PB4 when I got this error.
I spent many hours on msdn trying to figure out how to use COM events, and I got alot of headaches (you all know how messy that site is).
What I need is to use just the cevConnect(), cevBindEvent() and the cevDisconnect() commands (so mostly the TB_COMEvent_JN lib). If you or anyone is able to explain how to make them with PB code, or you can update your lib to support PB4 that will be really appreciated.
Posted: Mon Nov 06, 2006 6:07 am
by mskuma
@krensauce, in the meantime maybe this tool is useful to you
http://www.purebasic.fr/english/viewtopic.php?t=23370
@Justin, thanks alot for the Nero example - very interesting.
Posted: Mon Nov 06, 2006 2:39 pm
by krensauce
Thanks for the tip!
But I already know how to access the ATL.dll interfaces, the problem is how do I get the fired event parameters and how to change them:
http://www.purebasic.fr/english/viewtop ... highlight=
The real problem is how to access the VARIANT structure, I must search more on the forum and do some tests...