Serving the Quantitative Finance Community

 
User avatar
MaxCohen
Topic Author
Posts: 0
Joined: June 13th, 2007, 2:44 pm

GUID from DLL

June 2nd, 2011, 8:10 am

If I have a DLL is it possible to find outs it GUID?
 
User avatar
jikan
Posts: 0
Joined: April 9th, 2008, 10:07 am

GUID from DLL

June 2nd, 2011, 8:54 am

Google "oleview", it's a tool from MSFT. With that tool File | View TypeLib menu option.
 
User avatar
Cuchulainn
Posts: 23029
Joined: July 16th, 2004, 7:38 am

GUID from DLL

June 2nd, 2011, 9:07 am

You can also goto VS command line and type 'oleview' BTW why do you want GUID which is for the machine? ProgID is the human equivalent. And if the dll is a .NET assembly you can use Reflection API to navigate in all modules.
Attachments
guid.zip
(125.1 KiB) Downloaded 78 times
Last edited by Cuchulainn on June 1st, 2011, 10:00 pm, edited 1 time in total.
 
User avatar
MaxCohen
Topic Author
Posts: 0
Joined: June 13th, 2007, 2:44 pm

GUID from DLL

June 9th, 2011, 10:06 am

I was looking at automating the early binding a reference in VBA where I needed the GUID of the DLL.
 
User avatar
Cuchulainn
Posts: 23029
Joined: July 16th, 2004, 7:38 am

GUID from DLL

June 9th, 2011, 10:34 am

QuoteOriginally posted by: MaxCohenI was looking at automating the early binding a reference in VBA where I needed the GUID of the DLL.If I have understood, you call DLL function from VBA? Or do you need the GUID in order to access the code?
Last edited by Cuchulainn on June 8th, 2011, 10:00 pm, edited 1 time in total.
 
User avatar
MaxCohen
Topic Author
Posts: 0
Joined: June 13th, 2007, 2:44 pm

GUID from DLL

June 9th, 2011, 10:58 am

I don't need to access the code altough that would be useful.It was more a case of being able to add references to the VB project via code and have the reference saved with the project. You add some library/reference/DLL in Excels VBE (Tools->References) e.g. 'Microsoft Scripting Runtime' which is required if you want to early bind the Scripting objectIf you dont add the reference then late binding we have to write (and have no intelli-sense on the object)Dim d As ObjectSet d = CreateObject("Scripting.Dictionary")Add the reference early binding we haveDim d As Scripting.DictionarySet d = New Scripting.Dictionary