VBS获取程序自身的路径很简单
WScript.Echo WScript.ScriptFullName
C语言其实也也很简单,只可惜以前太菜
TCHAR szFileName[MAX_PATH]; GetModuleFileName(NULL, szFileName, MAX_PATH); MessageBox(NULL, szFileName, TEXT(""), 0);
VBS获取程序自身的路径很简单
WScript.Echo WScript.ScriptFullName
C语言其实也也很简单,只可惜以前太菜
TCHAR szFileName[MAX_PATH]; GetModuleFileName(NULL, szFileName, MAX_PATH); MessageBox(NULL, szFileName, TEXT(""), 0);
传说中最后支持Visual C++ 6.0的PSDK版本,微软在MSDN博客上说
Perhaps you want to install a version of the PSDK that will work with VS6, the last version of the PSDK to work with VS6 was the following version:
Microsoft Platform SDK, February 2003 Edition
The only way you can get this SDK is by ordering it (for about $10 — you only pay shipping costs) from…
http://www.qmedia.ca/launch/psdk.htm
也许你想安装一个依然支持VS6的PSDK版本,最后一个能在VS6下工作的PSDK版本是下面的版本:Microsoft Platform SDK, February 2003 版。你得到这个SDK的唯一方式是向http://www.qmedia.ca/launch/psdk.htm订购(大概$10,你仅需支付邮递的钱)。
难道微软真的就不提供下载地址了吗?我不死心,Google啊Google,终于搜索到了,那个人太牛了,怎么找到的。下载下来安装了一下,果然是Windows Server 2003 PSDK。