| 发表于:2008-01-03 13:45:143楼 得分:30 |
typedef int(__stdcall *validate)(char*); validate pvalidate; hinstance hdll = ::loadlibrary("ffraymarine.dll"); if (hdll != null) { pvalidate = (validate)getprocaddress(hdll,"validate"); if (pvalidate != null) { int result = pvalidate("test");; cstring str; str.format("%d",result); messagebox(str); } freelibrary(hdll); } | | |
|