How to compile dll loadable in tcl
问题 After trying many and searching web option to compile and load dll I could not able to create dll for tcl. Can you explain me how to do this. 回答1: Ok, here is a simple example. This code compiles and works for Tcl8.5 and VS2008. To start with I created a WIN32 dll project called BasicTclExtn that exported symbols. // BasicTclExtn.h #ifdef BASICTCLEXTN_EXPORTS #define BASICTCLEXTN_API __declspec(dllexport) #else #define BASICTCLEXTN_API __declspec(dllimport) #endif int BasicExtnCmd(ClientData