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 -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -