TB Lib: COM Event handler

Developed or developing a new product in PureBasic? Tell the world about it.
Justin
Addict
Addict
Posts: 948
Joined: Sat Apr 26, 2003 2:49 pm

TB Lib: COM Event handler

Post 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.
User avatar
Kiffi
Addict
Addict
Posts: 1485
Joined: Tue Mar 02, 2004 1:20 pm
Location: Amphibios 9

Re: TB Lib: COM Event handler

Post 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
Justin
Addict
Addict
Posts: 948
Joined: Sat Apr 26, 2003 2:49 pm

Post 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.
PolyVector
Enthusiast
Enthusiast
Posts: 499
Joined: Wed Sep 17, 2003 9:17 pm
Location: Southern California
Contact:

Post by PolyVector »

it's about 9k because you're downloading the angelfire error404 page :)
User avatar
Kiffi
Addict
Addict
Posts: 1485
Joined: Tue Mar 02, 2004 1:20 pm
Location: Amphibios 9

Post 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. :shock:

> if you have problems downloading right click on the link and save target
> as.

that's was i have done.

Greetings ... Kiffi
Justin
Addict
Addict
Posts: 948
Joined: Sat Apr 26, 2003 2:49 pm

Post 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
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

Wow, it's definitely a must have library. Congratulations !
Justin
Addict
Addict
Posts: 948
Joined: Sat Apr 26, 2003 2:49 pm

Post 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.
PolyVector
Enthusiast
Enthusiast
Posts: 499
Joined: Wed Sep 17, 2003 9:17 pm
Location: Southern California
Contact:

Post by PolyVector »

Nice work Justin... This really expands what can be done with COM 8)
krensauce
User
User
Posts: 18
Joined: Sun Nov 05, 2006 10:24 pm

Post 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.
mskuma
Enthusiast
Enthusiast
Posts: 573
Joined: Sat Dec 03, 2005 1:31 am
Location: Australia

Post 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.
krensauce
User
User
Posts: 18
Joined: Sun Nov 05, 2006 10:24 pm

Post by krensauce »

mskuma wrote:@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.
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...
Post Reply