c# - Using variable number of functions -
ex: in app1 user creates function_1() , function_2(). in app2 user wants call function_2(). searched on google , thing found write code:
class program { [dllimport("functions.dll")] public static extern void function_1(); static void main(string[] args) { function_1(); } }
you'll have use pinvoke code dll loaded (loadlibrary) , function pointer (getprocaddess) , marshal.getdelegateforfunctionpointer obtain delegate can invoke.
Comments
Post a Comment