473,387 Members | 1,535 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

reference path of dll

I have a dll that is used from word.
I'd like to have an xml file with some config settings.
This xml file I'd like to place in the same folder as the dll.

How do I read the path of the dll form the dll so I can find the xml
file?

Han
Nov 21 '05 #1
2 1318
Dim _Assembly As [Assembly]
_Assembly.GetExecutingAssembly().Location

Han Sen wrote:
I have a dll that is used from word.
I'd like to have an xml file with some config settings.
This xml file I'd like to place in the same folder as the dll.

How do I read the path of the dll form the dll so I can find the xml
file?

Han


--

Best,
_____________
Bharat Sharma

* TEN Technologies.
* Official Web: _www.ten-technologies.com_
<http://www.ten-technologies.com/>
Personal Web: _www.bharatsharma.net_ <http://www.bharatsharma.net/>

Nov 21 '05 #2
Thanks a lot :)

On Thu, 30 Dec 2004 19:08:45 +0530, Bharat Sharma
<bh****@bharatsharma.net> wrote:
Dim _Assembly As [Assembly]
_Assembly.GetExecutingAssembly().Location

Han Sen wrote:
I have a dll that is used from word.
I'd like to have an xml file with some config settings.
This xml file I'd like to place in the same folder as the dll.

How do I read the path of the dll form the dll so I can find the xml
file?

Han


Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Pratik Mehta | last post by:
Hi Friends, I am facing trouble with dynamically compiling C# source files. Here is the example: Following command works: csc.exe /out:test.dll /target:library...
1
by: normd | last post by:
I have a text file which contains VB.NET code. The VB.NET code is actually a Class that can contain code, which simply displays a message box or does something more complicated (i.e Excel/Word...
6
by: freddy | last post by:
I would like to load a path to a file when the form loads like this: public void Form1_Load(object sender, System.EventArgs e) { string path = "G:\\\\Freddy\\vb.net\\c#\\football.txt";...
4
by: Richard | last post by:
We are distributing a VS2003 solution to our customers that includes a .NET assembly (dll file) and a sample project for how to use the dll. The customer can then customize the sample or add a new...
5
by: Robert | last post by:
I have a series of web applications (configured as separate applications) on a server. There is a main application at the root and then several virtual directories that are independant...
1
by: dei1c3 | last post by:
I've written a simple web service and deployed it to a server on my local network. However, when I try to add a web reference to it in a VS2005 project on my dev machine, I am unable to. When I...
2
by: DE3A10 | last post by:
How do I change my reference Path in ASPX.NET 2.0?. I already look at http://msdn2.microsoft.com/en-us/library/6taasyc6(VS.80).aspx and I din't find reference path on the properties. Can some one...
0
by: drinkevich | last post by:
I have a complete solution file that compiles and builds fine on my machine. In the solution, I have a reference to an external dll (IBM.Data.DB2.dll). When I take the solution file to another...
5
by: colin | last post by:
Hi, I need to cache various resource objects such as images for example, wich might be referenced from multiple objects (wich could be considered documents for ease of discusion) and the idea is...
11
by: =?Utf-8?B?UGFycm90?= | last post by:
I get an error when trying to add a reference to a DLL program from a Realia COBOL program that is 32 bit. The error message says "Please make sure the file is accessible and that it is a valid...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.