Launch Dll using C# program

前端 未结 9 928
你的背包
你的背包 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 08:58

    The terms launching and DLL are somewhat incompatible concepts. The operating system launches programs which are binaries that have a defined entry point: the main method. DLLs are better viewed as binaries which have multiple entry points in the form of APIs. Launching in this case would require the operating system to pick between these many entry points.

    Were you trying to use a particular object from a DLL? If so then try the following

    • Right click on the project in "Solution Explorer" and select "Add Reference"
    • Choose the "Browse" Tab
    • Navigate to the DLL in question and hit OK

    Now you will be able to use the types from the DLL within your project.

    MyOtherDLLNamespace.TheType local = ...
    

提交回复
热议问题