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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DLLImport question

Status
Not open for further replies.

ShRosario

Programmer
Joined
Jun 10, 2004
Messages
1
Location
US
When using DLLImport to load a dll is there a way to pass it a string variable instead of a constant. I tried giving it a string variable and it will throw a exception saying it needs a constant expression, typeof expression or a array expression. The reason I am asking this question is because I would like to change the location from a dll by a database setting so If I need to change it, I wont have to change the code and rerelease it. I'm using cSharp and .net.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top