DLL中动态调用char FAR *类型的函数
要在DLL 中调用ws2_32.dll中的 inet_ntoa函数
具体定义:
char FAR * inet_ntoa( struct in_addr in );
请问我这样写对不对?
typedef char FAR *(_stdcall * Procinet_ntoa)(struct in_addr);
Procinet_ntoa inet_ntoa=(Procinet_ntoa)GetProcAddress(hinstLib,"inet_ntoa");