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

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

spring cloud - How to configure SpringCloud Eureka instance to point to https on non standard port -

javascript - Bootstrap Popover: iOS Safari strange behaviour -