- 博客(3)
- 收藏
- 关注
原创 C#调用C的DLL
/**//*==C==*/__declspec(dllexport) long __stdcallPrintMsg(char* name)...{ if (name == NULL) return -1; printf("Hello,%s",name); return 0;} Complile ==> test1.dll/**//*==C#==*/class P
2007-07-19 17:59:00 949
原创 ruby与bat交互!
# 为了更好控制批处理文件执行,用ruby与bat交互.require Win32API# wrap win32 apisystem = Win32API.new("msvcrt","system",[p],i)# execute batret = system.call("w.bat")if ret != 0 puts "Error occured!"endsy
2007-07-17 21:15:00 3170 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人