OLE/COM Interface generator v0.2
OLE/COM Interface generator v0.2
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
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.
Very good, thanks
Can you add compilerdirectives?
to avoid conflicts with existing Interfaces
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
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.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

-
- Addict
- Posts: 1126
- Joined: Wed Oct 15, 2003 12:40 am
- Location: Sweden
- Contact:
thanks, very goodS.M. wrote:@ts-soft
That's a good idea.I included it see options.
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.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

-
- User
- Posts: 82
- Joined: Tue May 03, 2005 2:51 am
- Location: Wheeling, Illinois, USA
- Contact:
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
Oh and welcome back, can't wait for the update/fixes to your DX9 code

Small Bug:
Some created Interface a incomplete, the last parameter for result ist
missing.
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.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

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.
@Shannara
Sorry, I have no example.
But, I think for msscript.ocx you could use CoCreateInstance(), as it has no graphical surface.
@ts-soft
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.

@Shannara
Sorry, I have no example.
But, I think for msscript.ocx you could use CoCreateInstance(), as it has no graphical surface.
@ts-soft
Can you show me one of these Interfaces and if possible how it should look like.Small Bug:
Some created Interface a incomplete, the last parameter for result ist
missing.
For example here: http://www.purebasic.fr/english/viewtopic.php?t=23651S.M. wrote: Can you show me one of these Interfaces and if possible how it should look like.
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.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
