TypeLib Explorer [Windows COM Stuff]

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
Kiffi
Addict
Addict
Posts: 1484
Joined: Tue Mar 02, 2004 1:20 pm
Location: Amphibios 9

Re: TypeLib Explorer

Post by Kiffi »

@RE-A: after creating the PB-source from MSXML3.DLL
i get Procedures like this one:

Code: Select all

Procedure.i MSXML2IXMLDOMDocument3CreateInstance(lContext.l)
  Protected Tmp.MSXML2IXMLDOMDocument3
  If CoCreateInstance_(GUID_IXMLDOMDocument3, #Null, lContext, IID_IXMLDOMDocument3, @Tmp) = #S_OK
    ProcedureReturn Tmp
  EndIf
EndProcedure
but GUID_IXMLDOMDocument3 is not declared (as a GUID) in the source.

Thanks in advance & Greetings ... Kiffi
Hygge
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Re: TypeLib Explorer

Post by netmaestro »

I just noticed that this thread is posted in the Tips & Tricks forum. It really doesn't belong here as you haven't shared the source code. I find this particularly frustrating as your event processing doesn't work properly and no code gets generated here. Imho you should either share the source or ask a moderator to move it to Announcements or Applications Feedback.
BERESHEIT
User avatar
Rings
Moderator
Moderator
Posts: 1435
Joined: Sat Apr 26, 2003 1:11 am

Re: TypeLib Explorer

Post by Rings »

netmaestro wrote:I just noticed that this thread is posted in the Tips & Tricks forum. It really doesn't belong here as you haven't shared the source code. I find this particularly frustrating as your event processing doesn't work properly and no code gets generated here. Imho you should either share the source or ask a moderator to move it to Announcements or Applications Feedback.
moving.....

done!

;)
SPAMINATOR NR.1
RE-A
User
User
Posts: 39
Joined: Thu Aug 21, 2008 4:19 pm
Location: Belgium
Contact:

Re: TypeLib Explorer [Windows COM Stuff]

Post by RE-A »

but GUID_IXMLDOMDocument3 is not declared (as a GUID) in the source.
strange, except the interface order it gets generated just fine.
I just noticed that this thread is posted in the Tips & Tricks forum. It really doesn't belong here as you haven't shared the source code. I find this particularly frustrating as your event processing doesn't work properly and no code gets generated here. Imho you should either share the source or ask a moderator to move it to Announcements or Applications Feedback.
You are right but I didn't thought it would get that mush attention. What system do you use because as I mentioned before I have at this time no Win7 or 64bit system available and this is also why I posted it in the tips & trics.

Have someone tested this with Win7 32bit? (to exclude the Win7 part)
User avatar
Kiffi
Addict
Addict
Posts: 1484
Joined: Tue Mar 02, 2004 1:20 pm
Location: Amphibios 9

Re: TypeLib Explorer [Windows COM Stuff]

Post by Kiffi »

RE-A wrote:
but GUID_IXMLDOMDocument3 is not declared (as a GUID) in the source.
strange, except the interface order it gets generated just fine.
just correct the interface order (it affects only two interfaces)
an type 'EnableExplicit' in the first line of the generated code.
Then try to start the code.
Debugger wrote:With 'EnableExplicit', variables have to be declared: GUID_IXMLDOMDocument2.
(same with GUID_IXMLDOMDocument3, GUID_IXMLDOMSchemaCollection, GUID_IXMLDOMSchemaCollection2, and so on)

concerns to all ...CreateInstance() - Procedures.

(tested on XP and Vista Business)

Greetings ... Kiffi
Hygge
RE-A
User
User
Posts: 39
Joined: Thu Aug 21, 2008 4:19 pm
Location: Belgium
Contact:

Re: TypeLib Explorer [Windows COM Stuff]

Post by RE-A »

Kiffi, you are right, it's a bug. I'll insert an "EnableExplicit" for every generated code :wink:

It will be corrected with the next version which will have an option window to select what code that should be generated.
User avatar
Kiffi
Addict
Addict
Posts: 1484
Joined: Tue Mar 02, 2004 1:20 pm
Location: Amphibios 9

Re: TypeLib Explorer [Windows COM Stuff]

Post by Kiffi »

@RE-A: Great! Thanks! :D

A little feature request: it would be a little bit more comfortable
if there is a StringGadget which acts as a kind of filter.

e.g.: i type in this StringGadget 'XML' and the list shows all
entries, related to xml (MSXML3.DLL, MSXML4.DLL, ...)

Greetings ... Kiffi
Hygge
RE-A
User
User
Posts: 39
Joined: Thu Aug 21, 2008 4:19 pm
Location: Belgium
Contact:

Re: TypeLib Explorer [Windows COM Stuff]

Post by RE-A »

New version 1.3.0 8)

Changes:
- More error trapping
- Option window
e.g.: i type in this StringGadget 'XML' and the list shows all
entries, related to xml (MSXML3.DLL, MSXML4.DLL, ...)
- Prefix choice :)
User avatar
Kiffi
Addict
Addict
Posts: 1484
Joined: Tue Mar 02, 2004 1:20 pm
Location: Amphibios 9

Re: TypeLib Explorer [Windows COM Stuff]

Post by Kiffi »

RE-A wrote:New version 1.3.0 8)
Great, thanks! :D
RE-A wrote:- Prefix choice :)
i think you missunderstood me.

i mean something like this:

Image

In this case, the filterstring is 'XML' (green Box) and all related items
are listed (red boxes).

Greetings ... Kiffi
Hygge
RE-A
User
User
Posts: 39
Joined: Thu Aug 21, 2008 4:19 pm
Location: Belgium
Contact:

Re: TypeLib Explorer [Windows COM Stuff]

Post by RE-A »

Kiffi, at your service ;)

I think this does it for now or someone has some good idea for generic event, example, etc… functions or maybe COMate code that can be reproduced for several typelibs (like the “CreateInstance” functions)?
User avatar
Kiffi
Addict
Addict
Posts: 1484
Joined: Tue Mar 02, 2004 1:20 pm
Location: Amphibios 9

Re: TypeLib Explorer [Windows COM Stuff]

Post by Kiffi »

RE-A wrote:Kiffi, at your service ;)
wonderful! Image

(perhaps do a search also in the description?) ;-)

Thanks & Greetings ... Kiffi
Hygge
Project Mayu
User
User
Posts: 20
Joined: Sun Mar 06, 2011 4:58 pm

Re: TypeLib Explorer [Windows COM Stuff]

Post by Project Mayu »

I selected a anything from the list, pressed Create PB Code and nothing happens.
Type Lib Explorer V1.4
tlbinf32.dll - File version 1.1.81.69 - Product Version 6.00.8169
Windows XP Mode
Nico
Enthusiast
Enthusiast
Posts: 274
Joined: Sun Jan 11, 2004 11:34 am
Location: France

Re: TypeLib Explorer [Windows COM Stuff]

Post by Nico »

Same thing :?:
RSrole
User
User
Posts: 71
Joined: Fri Apr 29, 2022 8:27 pm

Re: TypeLib Explorer [Windows COM Stuff]

Post by RSrole »

The link is broken. Anyone have this or one like it? I've used Com in powerbasic and c#, but struggling a bit in purebasic. Converting from the powerbasic typelib viewer to purebasic is a project in itself.

TIA
Russ
Post Reply