#include <QtGui/QApplication> #include "ui_widget.h" int main(int argc, char *argv[]) { QApplicatio

我用的是qtcreator路径是全英文的但是编译还是出错,请问是什么问题F:/station/qt_test_creator/test_creator/main.cpp:... 我用的是qt creator 路径是全英文的但是编译还是出错,请问是什么问题
F:/station/qt_test_creator/test_creator/main.cpp:7: error: 'Qwidget' was not declared in this scope

F:/station/qt_test_creator/test_creator/main.cpp:7: error: 'widget' was not declared in this scope

F:/station/qt_test_creator/test_creator/main.cpp:7: error: expected type-specifier before 'Qwidget'

F:/station/qt_test_creator/test_creator/main.cpp:7: error: expected ';' before 'Qwidget'

F:/station/qt_test_creator/test_creator/main.cpp:8: error: 'Form' is not a member of 'Ui'

F:/station/qt_test_creator/test_creator/main.cpp:8: error: expected ';' before 'ui'

F:/station/qt_test_creator/test_creator/main.cpp:9: error: 'ui' was not declared in this scope
展开
 我来答
vpitvo
2010-12-05 · TA获得超过705个赞
知道小有建树答主
回答量:1709
采纳率:0%
帮助的人:841万
展开全部
对asp 3.0增加了server.excute的方法,这种方法在以前的版本中是不存在的。
<include file="<%=var%>.asp">这种用法是不行的。
凡是include语句,都不可以使用asp变量,参见《ASP宝典》。

但你一定要用include,也是有方法的:
思路:把<include file="<%=var%>.asp">整个作为一个字符串变量,然后自己写需要显示的asp程序。

比如需要动态显示、含有include的文件是MyProduct.asp
那么在转到MyProduct.asp之前,我在另一个文件中写入:

如:
<%

写入文件名变量
FilePath="../viewreports/info"&pid&".htm"

''将文件写入myproduct.asp以供调用
set fs=server.CreateObject("Scripting.FileSystemObject")
AbPath=Server.MapPath("/mysite/viewreports/MyProduct.asp")

set ts=fs.CreateTextFile(AbPath,true)

TxtStr="<html><body><table><!--#include File=""" & FilePath & """ --></table></body></html>"
ts.writeline TxtStr
ts.close
set ts=nothing
set fs=nothing

''将页面转向myproduct.asp
response.redirect "/mysite/viewreports/MyProduct.asp"
end if
%>
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式