我用skinmagic 给我的程序做个界面,在没加什么以前运行正常。
但是当我在头文件加入
#include <string>
#include <vector>
这两个后
在CPP文件用std::vector<std::string> v;这行时
编译通过,但是软件界面出不来。
请高手帮忙啊。关于skinmagic请看 http://masterdog.blogchina.com/245825.html

解决方案 »

  1.   

    第三方库都有一些BUG, 如果实在找不到原因, 建议, 改用 MFC 提供的模板#include <afxtempl.h>CArray<CString,CString>  v;用法扔点不同,效果一样的
      

  2.   

    to:krh2001(边城浪子)
    不好意思
    我用boost库的regex正则:expr.Grep(v, wholeFileStr);这个函数的参数1一定要是这个类型的 boost::RegEx expr("(<\\s*(A class=M)\\s[^>]+>[^<>]*(</(A)>)?)", TRUE); // Create a vector to hold all matches
    std::vector<std::string> v;//这里一定要用???、 // Pass the vector and the STL string that hold the file contents
    // to the RegEx.Grep method.
    expr.Grep(v, wholeFileStr);
      

  3.   

    using namespace std  试试看,可以将 std:: 也省去
      

  4.   

    to:Practise_Think(时代“过客”) 
    谢谢你,我试过了,还是不行。
      

  5.   

    编译通过但界面出不来,这个问题是没法解决的
    你只有看看skinmagic的动态库是否存在于应用程序所能够搜索的目录
    是否在system32或当前目录
    有可能是因为缺少动态库造成的,你可以跟踪程序运行,多使用断点的方法来找到问题的症结
    既然编译通过就不应该是 <vector> 的问题
      

  6.   

    to:qrlvls(空 气) 
    我调试了,就是vector的问题,因为我将std::vector<std::string> v;这行删除后,界面就出来了。