OLE/COM Interface generator v0.2

Developed or developing a new product in PureBasic? Tell the world about it.
S.M.
Enthusiast
Enthusiast
Posts: 118
Joined: Sat Apr 24, 2004 1:11 pm
Contact:

OLE/COM Interface generator v0.2

Post 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
Last edited by S.M. on Thu Sep 21, 2006 6:25 pm, edited 1 time in total.
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post 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
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
techjunkie
Addict
Addict
Posts: 1126
Joined: Wed Oct 15, 2003 12:40 am
Location: Sweden
Contact:

Post by techjunkie »

Great tool! :D Thanks!!
Image
(\__/)
(='.'=) This is Bunny. Copy and paste Bunny into your
(")_(") signature to help him gain world domination.
S.M.
Enthusiast
Enthusiast
Posts: 118
Joined: Sat Apr 24, 2004 1:11 pm
Contact:

Post 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:
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

S.M. wrote:@ts-soft
That's a good idea. :D I included it see options.
thanks, very good
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
User avatar
Kiffi
Addict
Addict
Posts: 1484
Joined: Tue Mar 02, 2004 1:20 pm
Location: Amphibios 9

Post by Kiffi »

Hello Stefan,

great piece of software! Thanks for sharing! Image

Greetings ... Kiffi
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

That is very impressive. Two thumbs up :D
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
Sub-Routine
User
User
Posts: 82
Joined: Tue May 03, 2005 2:51 am
Location: Wheeling, Illinois, USA
Contact:

Post by Sub-Routine »

Thank you! I wish you would have done this about six months ago ;)

Rand
We now return to our regularly scheduled programming...
mskuma
Enthusiast
Enthusiast
Posts: 573
Joined: Sat Dec 03, 2005 1:31 am
Location: Australia

Post by mskuma »

Hi Stefan - thanks alot for this - it's extremely useful! :D
S.M.
Enthusiast
Enthusiast
Posts: 118
Joined: Sat Apr 24, 2004 1:11 pm
Contact:

Post by S.M. »

thanks, nice to hear that! :D
Amundo
Enthusiast
Enthusiast
Posts: 200
Joined: Thu Feb 16, 2006 1:41 am
Location: New Zealand

Post by Amundo »

Thank you, very nice!
Win10, PB6.x, okayish CPU, onboard video card, fuzzy monitor (or is that my eyesight?)
"When the facts change, I change my mind" - John Maynard Keynes
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post 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 :)
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

Small Bug:
Some created Interface a incomplete, the last parameter for result ist
missing.
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
S.M.
Enthusiast
Enthusiast
Posts: 118
Joined: Sat Apr 24, 2004 1:11 pm
Contact:

Post 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.
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post 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
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
Post Reply