By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,694 Members | 1,332 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,694 IT Pros & Developers. It's quick & easy.

dll exe question

P: n/a
Roy
Hi all,
I do have a .net dll that needs to call a form from a .net exe.
dim asm as [Assembly] = [Assembly].LoadFrom("MyApp.exe")
MyApp.exe path will be decided when MyApp is installed on the user pc. I
need to be able to set LoadFrom["?"] value based on the user installation
path. This dll is also used in MyApp application. If dll and exe are in one
directory I don't have problem.
Does anyone have any suggestion for this. Thanks in advance.
Roy
Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"Roy" <Ro*@discussions.microsoft.com> schrieb:
I do have a .net dll that needs to call a form from a .net exe.
dim asm as [Assembly] = [Assembly].LoadFrom("MyApp.exe")
MyApp.exe path will be decided when MyApp is installed on the user pc. I
need to be able to set LoadFrom["?"] value based on the user installation
path.


Mhm... If the EXE file is copied to the destination computer separately,
there is no way to get its path without scanning the directories/drives for
the file.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #2

P: n/a
Roy
Dear Herfried,
Is it possible to do this?
1. To write a method in the dll class to get the path for the application
from a text file or table.
2. Install the application.
3. Write path of the application to the text file or database.
Are there other ways to do this?
Thanks again,
Roy

"Herfried K. Wagner [MVP]" wrote:
"Roy" <Ro*@discussions.microsoft.com> schrieb:
I do have a .net dll that needs to call a form from a .net exe.
dim asm as [Assembly] = [Assembly].LoadFrom("MyApp.exe")
MyApp.exe path will be decided when MyApp is installed on the user pc. I
need to be able to set LoadFrom["?"] value based on the user installation
path.


Mhm... If the EXE file is copied to the destination computer separately,
there is no way to get its path without scanning the directories/drives for
the file.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.