我用skinmagic 给我的程序做个界面,在没加什么以前运行正常。
但是当我在头文件加入
#include <string>
#include <vector>
这两个后
在CPP文件用std::vector<std::string> v;这行时
编译通过,但是软件界面出不来。
请高手帮忙啊。关于skinmagic请看 http://masterdog.blogchina.com/245825.html
但是当我在头文件加入
#include <string>
#include <vector>
这两个后
在CPP文件用std::vector<std::string> v;这行时
编译通过,但是软件界面出不来。
请高手帮忙啊。关于skinmagic请看 http://masterdog.blogchina.com/245825.html
不好意思
我用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);
谢谢你,我试过了,还是不行。
你只有看看skinmagic的动态库是否存在于应用程序所能够搜索的目录
是否在system32或当前目录
有可能是因为缺少动态库造成的,你可以跟踪程序运行,多使用断点的方法来找到问题的症结
既然编译通过就不应该是 <vector> 的问题
我调试了,就是vector的问题,因为我将std::vector<std::string> v;这行删除后,界面就出来了。