Page 1 of 2

OLE/COM Interface generator v0.2

Posted: Thu Aug 24, 2006 7:30 pm
by S.M.
Hi
I wrote this tool some time ago, i made it public because it could be also useful for you.
It's a small program, which reads the TypeLib of OLE/COM objects.
It supports interfaces,functions,structures and constants.
If you find mistakes in interfaces,functions, structures... then please report them. I can't say whether all of them are correct. (The tool wasn't tested really well)
Feedback is welcome.

Link: http://www.stefanmoebius.de/OLE_COM_GEN.zip
regards
Stefan

Posted: Fri Aug 25, 2006 6:51 am
by ts-soft
Very good, thanks

Can you add compilerdirectives?

Code: Select all

CompilerIf Defined(IBlaBLa, #PB_Interface) = #False
Interface IBlaBla
  QueryInterface(a.l,b.l)
  AddRef()
  Release()
  BlaBla(blatxt.p-bstr)
EndInterface
CompilerEndIf
to avoid conflicts with existing Interfaces

Posted: Fri Aug 25, 2006 4:57 pm
by techjunkie
Great tool! :D Thanks!!

Posted: Sat Aug 26, 2006 11:28 am
by S.M.
@ts-soft
That's a good idea. :D I included it see options.
@techjunkie
Thanks, nice to hear! :D
@All
Thanks for downloading (70 downloads till now).
A small feedback would be nice. :wink:

Posted: Sat Aug 26, 2006 11:36 am
by ts-soft
S.M. wrote:@ts-soft
That's a good idea. :D I included it see options.
thanks, very good

Posted: Sat Aug 26, 2006 2:19 pm
by Kiffi
Hello Stefan,

great piece of software! Thanks for sharing! Image

Greetings ... Kiffi

Posted: Sat Aug 26, 2006 3:40 pm
by GeoTrail
That is very impressive. Two thumbs up :D

Posted: Sun Aug 27, 2006 3:46 pm
by Sub-Routine
Thank you! I wish you would have done this about six months ago ;)

Rand

Posted: Mon Aug 28, 2006 3:11 am
by mskuma
Hi Stefan - thanks alot for this - it's extremely useful! :D

Posted: Mon Aug 28, 2006 12:58 pm
by S.M.
thanks, nice to hear that! :D

Posted: Mon Sep 04, 2006 11:04 pm
by Amundo
Thank you, very nice!

Posted: Tue Sep 05, 2006 9:54 pm
by Shannara
It looks nice, but all the examples require an atl.dll .. I ran this up against msscript.ocx (resulting file found @ http://www.quadonline.org/msscript.zip ) and it did not provide any atl.dll nor aX.... commands. A quick search on these forums mentioned ATL is for the web browser ... most activex do not need a web browser to run. Do you have any samples on how to use activex controls via your tool w/o needing the atl.dll?

Oh and welcome back, can't wait for the update/fixes to your DX9 code :)

Posted: Tue Sep 12, 2006 6:34 pm
by ts-soft
Small Bug:
Some created Interface a incomplete, the last parameter for result ist
missing.

Posted: Thu Sep 21, 2006 6:24 pm
by S.M.
hi
Sorry for the late late answer...
But at least there is a new version available(just download the file again)
It has many improvements, just try it out. :wink:

@Shannara
Sorry, I have no example.
But, I think for msscript.ocx you could use CoCreateInstance(), as it has no graphical surface.

@ts-soft
Small Bug:
Some created Interface a incomplete, the last parameter for result ist
missing.
Can you show me one of these Interfaces and if possible how it should look like.

Posted: Thu Sep 21, 2006 7:07 pm
by ts-soft
S.M. wrote: Can you show me one of these Interfaces and if possible how it should look like.
For example here: http://www.purebasic.fr/english/viewtopic.php?t=23651
The generated Interface for AutoItX, mostly the last parameter missing. In
the example in the zip file, i have added the parameter and all is running.
http://www.ts-soft.eu/dl/autoitx3_activex.zip

regards
Thomas