vc GetModuleFileName的运用

来源:互联网 发布:贵州云谷数据有限公司 编辑:程序博客网 时间:2024/05/18 23:54

char szCurPath[MAX_PATH];
        GetModuleFileName(NULL,szCurPath,_MAX_PATH);
        char* p = szCurPath;
        while(strchr(p,'//'))
        {
            p = strchr(p,'//');
            p++;
        }
        *p = '/0';
        CString strSwfname = szCurPath;
        //    GetCurrentDirectory(256, testfilename);
    //strcat(strSwfname.data,"//TestPic.xml");
        strSwfname+="/TestPic.xml";

原创粉丝点击