I have a C# form application...i created a Dll...now i want to launch that dll using this program. how do i do it?
#include
typedef int (*
You can use different methods, one is
Assembly.Load
another is using a DllImport attribute:
[DllImport("mylib.dll)]
You could do this for an exe:
Process.Start("yourProcess");
You could also use the AppDomain object if you want to load a dll into your process and then consume it.
And finally you can use the
Assembly.Load(...)
Each serves its own purpose and I would suggest to read up on all of them on msdn for starters.
I assume you want to use the functionality of the DLL? If so, create a reference to the DLL and consume it in your C# forms application. In other words, create a "user" interface for application logic contained in a DLL. If this does not make sense, you should look up how to add a reference to a project.