CallCom question (@Danilo)

Everything else that doesn't fall into one of the other PB categories.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by ricardo.

Hi,

Im trying to learn how to call an activex. Using the Activex Control Pad from Microsoft (freeware) i can get the needed info to insert any activex in an html page.

Suppousing i was trying to call MSAgent (or any other) i get this code:

Code: Select all


In a past topic Danilo said:

Code: Select all

DataSection  
CLSID_TaskbarList:    
 Data.l $56FDF344    
 Data.w $FD6D,$11D0    
 Data.b $95,$8A,$00,$60,$97,$C9,$A0,$90  
IID_ITaskbarList:    
 Data.l $56fdf342    
 Data.w $FD6D,$11D0    
 Data.b $95,$8A,$00,$60,$97,$C9,$A0,$90
EndDataSection
How can i get this numbers out of the GUID?

If i check the VB project that calls this same ActiveX i see:


Reference=*\G{00020430-0000-0000-C000-000000000046}#2.0#0#..\System32\stdole2.tlb#OLE Automation
Object={F5BE8BC2-7DE6-11D0-91FE-00C04FD701A5}#2.0#0; agentctl.dll


Its this usefull to get the info needed for the DataSection?




Best Regards

Ricardo

Dont cry for me Argentina...
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by ricardo.

Nobody at home?

Best Regards

Ricardo

Dont cry for me Argentina...
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by El_Choni.

I think it would be:

Code: Select all

DataSection
Data.l $F5BE8BC2
Data.w $7DE6
Data.w $11D0
Data.w $91FE
Data.b 0, $C0, $4F, $D7, $01, $A5
EndDataSection
Data is separated with "-" in the reference you posted. GUID and CLSID structures are like this:

Code: Select all

Structure GUID/CLSID
  Data1.l
  Data2.w[2]
  Data3.b:)
EndStructure
But something must be wrong, because in your reference there are only six bytes of data, not eight.

El_Choni
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by ricardo.
But something must be wrong, because in your reference there are only six bytes of data, not eight.

El_Choni
Thanks friend,

I take the reference from Microsoft Activex Control Pad, dont know nothing more...

Best Regards

Ricardo

Dont cry for me Argentina...
Post Reply