Passing paramter to Assembly.

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

Mattias Sjögren

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
 
H

Herfried K. Wagner [MVP]

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top