Groups | Blog | Home
all groups > dotnet windows forms > november 2007 >

dotnet windows forms : Passing paramter to Assembly.



Ibrahim.
11/24/2007 7:18:01 AM
Hello,

I have DLL library, this DLL im invoking from Client application, I need to
pass some paramter to the DLL library (user id).

something like static Main method declared in the assembly (DLL library).

how can i achieve this?

thanks.

Mattias Sjögren
11/24/2007 8:04:40 PM
[quoted text, click to view]


There's no Main method for a DLL so you have to add a class and a
constructor or or regular method that takes the user ID.


Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Herfried K. Wagner [MVP]
11/24/2007 8:08:02 PM
"Ibrahim." <Ibrahim@discussions.microsoft.com> schrieb
:> I have DLL library, this DLL im invoking from Client application, I need
to
[quoted text, click to view]

Simply add a class and a method that expects the user ID and then pass the
user ID to the method from the client.

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