當前位置:歷史故事大全網 - 歷史天氣 - 調用ShellExecute,說我未申明頭文件。。。。

調用ShellExecute,說我未申明頭文件。。。。

#include?<windows.h>

#include?<iostream>

#include?<string.h>

#include?<stdlib.h>

#include?<tlhelp32.h>?//?聲明快照函數的頭文件

using?namespace?std;

//#pragma?comment(?linker,?"/subsystem:\"windows\"?/entry:\"mainCRTStartup\""?)?

int?main(int?argc,?char*?argv[])

{

char?join[]="\"";

char?begin[128];?

::GetCurrentDirectory(100,begin);?

char?end[]="\\Maxthon.exe";

strcat(begin,end);

strcat(begin,join);

strcat(join,begin);

::ShellExecute(NULL,"open",join,?NULL,NULL,SW_SHOW?);?

printf("%s\n",join);?

return?0;

}?

右鍵點工程名,選設置,然後選c/c++屬性頁,再選catagory選單中選?precompiled?header?,將選項置成no?use?或者autometic

  • 上一篇:西鐵城機芯c650和u600哪個好,求高手指點
  • 下一篇:房地產組織架構和部門崗位職責
  • copyright 2024歷史故事大全網