Call function from DLL?

后端 未结 5 782
灰色年华
灰色年华 2020-12-14 06:36

I\'m new to C# and I\'m trying to learn to usage of DLLs. I\'m trying to wrap my objects in a DLL, and then use it in my program.

public class Foo   // its in         


        
5条回答
  •  温柔的废话
    2020-12-14 07:26

    you need to actually load the DLL into your application at run time, thus the Dynamic part of DLL. You also need the header file that defines what functions are in the DLL so your compile knows what functions have been defined. My knowledge here is based on C++ so how this works for C# I am not to sure, but it will be something like that...

提交回复
热议问题