Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling Program's Path problem 1

Status
Not open for further replies.

ToeJamNEarl

Programmer
Jan 26, 2004
91
US
Hey Guys,

I have a question. I have made an ActiveX Dll and inside of it makes a call to an Executable that may or maynot be stored in the same path on install.

My question to you is this. How would I be able to in my code have the Executable's path be whatever the calling program's common path is?

For example I have an application with it's exe located in
"c:\Program Files\Application\bin\"
But I won't necessarily know that, that path is always where it will be installed to?

Any ideas?
 
App.Path

*****************************************
May the Code Be With You...[lightsaber]
----------
x50-8 (X Fifty Eigt)
 
Since this is a DLL that I will be storing elsewhere and registering somewhere else. Will App.Path be related to where the DLL is stored and compiled to?
 
Yup, it will reflect the path where your dll is running from.

If you want the dll to use the path where your app is running from, use App.Path in your app and pass it to the dll

Hope this helps

*****************************************
May the Code Be With You...[lightsaber]
----------
x50-8 (X Fifty Eigt)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top