Launch Dll using C# program

前端 未结 9 932
你的背包
你的背包 2021-01-06 08:52

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 (*         


        
9条回答
  •  佛祖请我去吃肉
    2021-01-06 09:15

    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.

提交回复
热议问题