沒有很多東西,就是為了自己方便,編寫啦一段代碼,用來一鍵開啟博客園主頁。
#ifndef STRICT
#define STRICT
#endif
#include <windows.h>
#include <tchar.h>
#include <assert.h>
/*
_T宏:
#define __T(x) L##x
#define _T(x) __T(x)
這裡的_T宏用到了 ## 字符串粘貼符,當用 ## 的時候,可以將
一些字符粘貼到 字符串前面
*/
const TCHAR szOperation[]=_T("open");
const TCHAR szAddress[]=_T("www.cnblogs.com");
int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR lpCmdLine,int iShowCmd)
{
HINSTANCE hResult=ShellExecute(NULL,szOperation,szAddress,NULL,NULL,SW_SHOWNORMAL);
assert(hResult>(HINSTANCE)HINSTANCE_ERROR);
return 0;
}
---恢復內容結束---