'WinApi::shellExecute'에 해당되는 글 1건

제목 날짜
WinApi::shellExecute를 사용하여 외부 프로그램을 실행할 수 있습니다. 아래 샘플코드는 인터넷 익스플로러를 실행시키면서 시작페이지로 네이버를 지정한 예입니다. 

static void shellExecute(Args _args)
{
    #WinAPI

    WinApi::shellExecute("C:\\Program Files\\Internet Explorer\\iexplore.exe",
                                "http://www.naver.com");   // 실행파일의 경로를 정확히 알고 있는 경우

    WinApi::shellExecute(strfmt("%1\\Internet Explorer\\iexplore.exe",
                                WinApi::getFolderPath(#CSIDL_PROGRAM_FILES)),
                                "http://www.naver.com");
}


 

Posted by Isaac Lee