Serving the Quantitative Finance Community

 
User avatar
fbag
Topic Author
Posts: 0
Joined: May 21st, 2002, 11:24 am

Get location of standard DLL.

June 6th, 2002, 11:16 am

Hi AllI am trying to get the location of a standard DLL I created in Delphi 6.To get location of a com server is OK.if I use the paramstr(0) it returns the host Excel.exe path. This DLL is an addin for excel.The reason for this is that I want to place the DLL in any location with its accompanied DBtable directory. When DLL loads it must pick up the DBtable directory in the same location as the DLL, to make it robust.Any advise.Thanks.
 
User avatar
OTM
Posts: 0
Joined: April 19th, 2002, 1:35 pm

Get location of standard DLL.

June 21st, 2002, 12:15 am

Have a look at the type library component and registry manipulation component on the VB site under VB6. They are com components but should help you out.Look up the object in the registry and find its loction from there.
Last edited by OTM on June 20th, 2002, 10:00 pm, edited 1 time in total.