Passing paramter to Assembly.

  • Thread starter Thread starter Ibrahim.
  • Start date Start date
I

Ibrahim.

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.
 
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?


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
 
:> 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).

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