Qt 3D绘图的时候用纹理贴图不运行但是也不报错

有大佬能帮忙解决这个问题吗?我是按照Qt creator快速入门的代码写的,但是不知道为什么就是显示不出来,

图片说明

0
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
不报错!但是不能运行
#includern#includern#define NULL 0rntypedef struct linknodernrn int data;rn struct linknode *next;rnnode;rnnode *p,*q,*s,*head;//定义全部变量rnint j=0,i;rn//主函数rnvoid main()rn rn int x,y,cord;rn node *creat();rn void print(node *head);rn void insert(node *head,int x,int y);rn void search(node *head,int x);rn int length(node *head);rn void deletes(node * head,int x);rn head=creat();rn print(head);rn dorn printf("\n 主菜单 \n");rn printf(" 1 求链表长度 \n");rn printf(" 2 插入一个元素 \n");rn printf(" 3 查找一个元素 \n");rn printf(" 4 删除一个元素 \n");rn printf(" 0 结束程序运行 \n");rn printf("-----------------------------------------\n");rn printf(" 请输入您的选择(1, 2, 3, 4, 0)\n");rn scanf("%d",&cord);rn switch(cord)rn rn case 1:printf("链表长度为j=%d",j=length(head));break;rn case 2:rn rn printf("请输入要插入元素的位置x:");rn scanf("%d",&x);rn printf("请输入插入的数据y:");rn scanf("%d",&y);rn insert(head,x,y);rn print(head);rn break;rn case 3:rn rn printf("请输入要查找的元素x");rn scanf("%d",&x);rn search(head,x);rn break;rn case 4:rn rn printf("删除的数x=?");rn scanf("%d",&x);rn deletes(head,x);rn print(head);rn break;rn case 0:rn rn exit(0);rn break;rn rn while(cord<=4&&cord>=0);rnrn//*函数菜单rnrnrnrn//建立一个单链表!rnnode * creat()rn rn node *head,*p,*s;rn int x;rn head=(node*)malloc(sizeof(node));rn p=head;rn printf("请输入链表数据!\n");rn while(x!=0)rn rn scanf("%d",&x);rn s=(node*)malloc(sizeof(node));rn s->data=x;rn p->next=s;rn p=s;rn rn head=head->next;rn p->next=NULL;rnreturn(head);rnrn//输出链表rnvoid print(node *head)rn rn node *p;rn p=head;rn printf("输出链表!\n");rn if(head==NULL)rn printf("链表为空!");rn elsern rn while(p->next!=NULL)rn rn printf("%d->",p->data);rn p=p->next;rn rn printf("%d",p->data);// 输出链表结束标志!rn rn printf("\n");rnrn//*查找某个结点rnvoid search(node *head,int x)rnrn node *p;rn p=head;rn while(p->data!=x&&p!=NULL)rn p=p->next;rn if(p!=NULL)rn printf("找到了!\n");rn elsern printf("未找到!\n");rnrn//求链表的长度rnint length(node *head)rnrn int n=0;rn node *p;rn p=head;rn while(p!=NULL)rn rn p=p->next;rn n++;rn rn return(n);rnrn//插入某个结点rnvoid insert(node *head,int y)rnrn node *p,*q;rn s=(node*)malloc(sizeof( node));rn s->data=y;rn q=head;p=head->next;rn if(p!=NULL)rn rn q=p;rn p=p->next;rn rn elsern q->next=s;rn s->next=p;rn rnrn//删除结点rnvoid deletes(node * head,int x)rnrn node *p,*q;rn if(head==NULL) printf("链表为空!\n");rn if(head->data==x)rn rn p=head;rn head=head->next;rn free(p);rn rn elsern rn p=head;rn while(p->next!=NULL&&p->next->data!=x) p=p->next;rn if(p==NULL)rn printf(" x 不存在!\n");rn elsern rn q=p->next;rn p->next=q->next;rn free(q);rn rn rnrnrn rnrnrn rnrnrn rnrnrnrnrnrn rn
这样也报错,不运行?
protected void Page_Load(object sender, EventArgs e)rn rn if(!Page.IsPostBack)rn rn DropDownList2.Enabled = false;rn Button1.Enabled = false;rn rn rn protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)rn rn DropDownList2.Enabled = true;rn rn protected void DropDownList2_SelectedIndexChanged(object sender, EventArgs e)rn rn Button1.Enabled = true;rn rnrn运行完PAGA_LOAD,随便怎么点DROPDOWNLIST1,,,DropDownList1_SelectedIndexChanged这个都不运行.
编译不报错 但是运行没有结果
[code=c]rn#include rn#include rnrnrntypedef struct LNodern int color;rn int data;rn struct LNode *next;rnLNode, *LinkList;rnrnrnvoid InitList(LinkList &L)rn L = (LinkList)malloc(sizeof(LNode));rn L->color = 0;rn L->data = 0;rn L->next = NULL;rnrnrnvoid CreateList(LinkList &L)rn LinkList p, q;rn q = L;rn int i = -1, j = 1;rn while (1)rn int flag = 1; rn p = (LinkList)malloc(sizeof(LNode));rn q->next = p;rn p->next = NULL;rn p->color = j;rn p->data = i;rn q = p;rn rn if (i < 13)rn i++;rn rn rn else if (i == 13 && j != 4)rn i = 1;rn j++;rn rn rn else if (i == 13 && j == 4 && flag)rn i = -1;rn j = 1;rn// count++;rn flag = 0;rn rn rn if (i == 13 && j == 4 && !flag)rn break;rn rn rn rnrnrnrnvoid filltrate(LinkList &L)rn LinkList p, q, r;rn q = L;rn p = L->next;rn int count = 1;rn rn r = L;rn while (r->next)rn r = r->next;rn rn rn while (p->next)rn if (count&2 != 0)rn q->next = p->next;rn free(p);rn p = q->next;rn p->next = q->next->next;rn count++;rn rn rn else if (count&2 == 0)rn q->next = p->next;rn r->next = p;rn r = p;rn p->next = NULL;rn p = q->next;rn count++;rn rn rn rn switch (p->color)rn case 1:rn printf("黑桃"); rn break;rn rn case 2:rn printf("红桃");rn break;rn rn case 3:rn printf("方块");rn break;rn rn case 4:rn printf("梅花");rn break;rn rn rn rn switch (p->data)rn case -1:rn printf("大王\n");rn break;rn rn case 0:rn printf("小王\n");rn break;rn rn default:rn printf("%d\n", p->data);rn break;rn rn rn rnrnrnrnint main()rnrn LinkList L;rn rn InitList(L);rn CreateList(L);rn filltrate(L);rn rn return 0;rn rn[/code]rnrn[b]初学,请大神帮忙看看是什么问题![/b]
Qt 不运行
我安装好了Qt后,运行的时候就出现“qtcreator.exe Bad Image"的对话框,请问我该怎么办?有人也遇到过同样的问题吗?
Android项目运行不起来也不报错,什么原因
RT。rnrn08-06 17:18:53.457: I/AndroidRuntime(4060): Heap size: -Xmx32mrn08-06 17:18:54.167: W/ActivityManager(185): No content provider found for: rn08-06 17:18:54.197: I/PackageHelper(3197): Size of container 3 MB 1244286 bytesrn08-06 17:18:54.287: I//system/bin/newfs_msdos(131): /system/bin/newfs_msdos: warning, /dev/block/dm-1 is not a character devicern08-06 17:18:54.287: I//system/bin/newfs_msdos(131): /system/bin/newfs_msdos: Skipping mount checksrn08-06 17:18:54.287: I//system/bin/newfs_msdos(131): Bogus heads from kernel - setting sane valuern08-06 17:18:54.287: I//system/bin/newfs_msdos(131): Bogus sectors from kernel - setting sane valuern08-06 17:18:54.287: I//system/bin/newfs_msdos(131): /dev/block/dm-1: 6248 sectors in 781 FAT32 clusters (4096 bytes/cluster)rn08-06 17:18:54.287: I//system/bin/newfs_msdos(131): bps=512 spc=8 res=32 nft=2 sec=6300 mid=0xf0 spt=63 hds=64 hid=0 bspf=7 rdcl=2 infs=1 bkbs=2rn08-06 17:18:54.317: I/Vold(131): Filesystem formatted OKrn08-06 17:18:54.327: I/PackageHelper(3197): Created secure container smdl2tmp1 at /mnt/asec/smdl2tmp1rn08-06 17:18:54.327: I/DefContainer(3197): Created container for smdl2tmp1 at path : /mnt/asec/smdl2tmp1rn08-06 17:18:54.748: I/DefContainer(3197): Copied /data/local/tmp/edu.cmu.pocketsphinx.demo.PocketSphinxDemo.apk to /mnt/asec/smdl2tmp1/pkg.apkrn08-06 17:18:54.768: I/DefContainer(3197): Finalized container smdl2tmp1rn08-06 17:18:54.778: I/DefContainer(3197): Unmounting smdl2tmp1 at path /mnt/asec/smdl2tmp1rn08-06 17:18:55.088: W/ActivityManager(185): No content provider found for: rn08-06 17:18:55.909: W/PackageManager(185): Mounting container edu.cmu.pocketsphinx.demo-2rn08-06 17:18:56.390: I/PackageManager(185): Succesfully renamed smdl2tmp1 to edu.cmu.pocketsphinx.demo-2 at new path: /mnt/asec/edu.cmu.pocketsphinx.demo-2rn08-06 17:18:56.390: I/PackageHelper(185): Forcibly destroying container edu.cmu.pocketsphinx.demo-2rn08-06 17:18:56.810: I/AndroidRuntime(4060): NOTE: attach of thread 'Binder Thread #3' failedrnrn———————————————————————————————————————————————————————rnrn以上是LOG
selenium用java代码写,运行不报错,但是页面出不来
1、我的java代码是这样紫的: 2、Firefox是这样的 3、但是把*firefox E:\\FireFox\\firefox.exe改成 *iexplore 4、再运行就是成功的 5、为什么会这样?我也不知道,希望知道的大牛告诉我T_T
用CDONTS发邮件不报错,但是收不到!
已经发过一个帖子了,可没有两个人回答,希望大家指点,谢谢!rn附我的代码:rnSet objCDOMail = Server.CreateObject("CDONTS.NewMail") rnrnobjCDOMail.From = "bersun@bersun.com" rnobjCDOMail.To = "tdl982324@163.com" rnobjCDOMail.Subject = "ASP Test new ID - Mail Subject" rnobjCDOMail.Body = "two ASP Test new ID - Mail Body111" rnobjCDOMail.Send rn其中bersun@bersun.com是我公司的邮件地址, rntdl982324@163.com是我在新浪申请的一个免费邮件地址. rn我运行上面的这段代码,没有报错, 但是收不到rnrn我已经注册了cdonts组件,并且安装了SMTPrn
Hadoop跑不起来也不报错
rnrun不起来 补报错 debug后 阻塞在admin.createTable(desc );rnrn不知道什么原因???
分页不显示,也不报错
Fpage 类:rn using System;rnusing System.Data;rnusing System.Configuration;rnusing System.Collections;rnusing System.Web;rnusing System.Web.Security;rnusing System.Web.UI;rnusing System.Web.UI.WebControls;rnusing System.Web.UI.WebControls.WebParts;rnusing System.Web.UI.HtmlControls;rnusing System.Data.SqlClient;rnrnpublic partial class fenye : System.Web.UI.Pagernrn public string con_str, sql_str;rn protected void Page_Load(object sender, EventArgs e)rn rnrnrn con_str = "server=.;uid=sa;pwd=sa;database=pubs";rn sql_str = "select * from titles";rn Fpage fenye = new Fpage(con_str,sql_str);rn //fenye.fkai(con_str,sql_str);rn rn Repeater1.DataSource = fenye.Pds;rn Repeater1.DataBind();rnrn Label1.Text = fenye.dqy;rn Label2.Text = fenye.ygy;rn Firstpage.NavigateUrl = fenye.syy;rn Nextpage.NavigateUrl = fenye.xyy;rnrn rnrnrnrnrncs : rnrnusing System;rnusing System.Data;rnusing System.Configuration;rnusing System.Collections;rnusing System.Web;rnusing System.Web.Security;rnusing System.Web.UI;rnusing System.Web.UI.WebControls;rnusing System.Web.UI.WebControls.WebParts;rnusing System.Web.UI.HtmlControls;rnusing System.Data.SqlClient;rnrnpublic partial class fenye : System.Web.UI.Pagernrn public string con_str, sql_str;rn protected void Page_Load(object sender, EventArgs e)rn rnrnrn con_str = "server=.;uid=sa;pwd=sa;database=pubs";rn sql_str = "select * from titles";rn Fpage fenye = new Fpage(con_str,sql_str);rn //fenye.fkai(con_str,sql_str);rn rn Repeater1.DataSource = fenye.Pds;rn Repeater1.DataBind();rnrn Label1.Text = fenye.dqy;rn Label2.Text = fenye.ygy;rn Firstpage.NavigateUrl = fenye.syy;rn Nextpage.NavigateUrl = fenye.xyy;rnrn rnrnrn
Qt笔记_3D绘图
3D绘图 OpenGL绘图介绍 QOpenGLWidget类用来渲染OpenGL图形部件,提供了在Qt应用中显示OpenGL图形的功能。 Qt中的QOpenGLShader类用来创建和编译着色器 使用图形内存 QOpenGLBuffer类用来创建并管理OpenGL缓存对象 QOpenGLTexture类封装了一个OpenGL纹理对象,可以用来设置纹理。...
Qt 3D绘图插件
QT 3D绘图插件,主要用于在qt5版本上面进行3D绘图,结合C++语法
mysql--insert 失败也不报错
我debug 一路前行也没碰到出错也是没有进到catch里面 然后又将日志输出的sql语句放到Navicat 测试一下一下,也是没有出错! 然后我根据时间去查询了一下,新增的数据是存在数据库的,是因为数据太多,然后分页,没有看到那条新增的数据!!害的我纠结了好长时间! ...
eclipse无法启动也不报错
一直停在如下的这个界面输出中:org.eclipse.m2e.logback.configuration: The org.eclipse.m2e.logback.configuration bundle was activated before the state location was initialized. Will retry after the state location is i
没有写入数据,也不报错
[code=Java]<%rn FileInputStream fi = null;rn FileOutputStream fo = null;rntryrnString path=request.getParameter("path");rnrnfi = new FileInputStream(path);rnout.print(path);rnSAXBuilder sb = new SAXBuilder();rnDocument doc = sb.build(fi);rnElement root = doc.getRootElement(); //得到根元素rnList books = root.getChildren(); //得到根元素所有子元素的集合rnString user=request.getParameter("user");rnString username=request.getParameter("username");rnString password=request.getParameter("password");rnText newtext;rnElement newbook= new Element("ybuser");rnElement newname= new Element("user");rnnewname.setText(user);rnnewbook.addContent(newname);rnElement newauthor= new Element("username");rnnewauthor.setText(username);rnnewbook.addContent(newauthor);rnElement newpub= new Element("password");rnnewpub.setText(password);rnnewbook.addContent(newpub);rnbooks.add(newbook);//增加子元素rn//XMLOutputter outp=new XMLOutputter();rnrnFormat fr = Format.getPrettyFormat(); rn fr.setEncoding("gb2312"); rn fr.setLineSeparator("\r\n"); rn fr.setNewlines(true);rn // fr.setIndent(true); rnXMLOutputter outputter = new XMLOutputter(fr); rnfo=new FileOutputStream(path);rnrnoutputter.output(doc,fo);rnrnrncatch(Exception e)rnSystem.err.println(e+"error");rnrnfinallyrntryrnfi.close();rnfo.close();rnrncatch(Exception e)rne.printStackTrace();rnrn rn rn %>[/code]
Nginx无法启动也不报错
非安装Nginx,使用start nginx.exe命令启动,但是没有开启下图所示的两个线程 说明Nginx并没有启动。 解决办法: 1.查看是否80端口被其他程序占用 详细见http://jingyan.baidu.com/article/cd4c2979f77163756e6e608e.html 2.但是由于看到的进程是pid=4,不用于一般的结束线程的解决办法 详
事件不执行,也不报错
在ftl里面的如下语句,双击事件既不执行,也不报错   &amp;lt;TR class=&quot;tdbg&quot; id=&quot;row${bean_index}&quot; onClick=&quot;onTrClick(this);&quot; ondblclick=&quot;onGetInfo('${key}');&quot;  /&amp;gt;   最后发现上次修改的时候tr后面多了一个/,去掉就好了。 &amp;lt;TR class=&quot;tdbg&quot; i
junit测试没反应也不报错
因为我的junit是在spring下测试的,看了配置文件,原来配置了数据源,但是服务器数据库没有开启,所以数据源连接不上,把数据库地址换成本地的,junit测试成功。 但是为什么数据库连接不上也不报错呢?原来是自己用了log4j,但是没有配置文件,所以没有输出任何信息。 加上一个配置文件。 #log4j.rootLogger=DEBUG,A1 log4j.rootLogger=INFO,A...
Process.Start调试模式可以运行IIS下不能运行,也不报错
System.Diagnostics.Process.Start(@"D:\Program Files\StormII\Storm.exe", @"D:\ada\1.rmvb");rnrn在调试模式运行正常,一放到IIS上就不运行了,也不报错。
myeclipse6.5 浏览器报错但是控制台不报错
为什么我的myeclipse6.5 浏览器报错但是控制台不报错
realplayer不运行也无法删除
不知什么原因,realplayer无法运行了,双击桌面图标,鼠标仅以“忙”状态显示1秒,就无任何动静了。在“添加或删除程序“中删除时,winxp提示“缺少卸载程序组件”。双击“rm"格式的文件,系统无任何反应。
web项目不报错,页面也不报错。但是页面就是出不来。
今天碰到了一个很奇怪的问题。我web项目昨天还好好的没有问题。今天下午来了之后运行时,发现登录成功,但是主页加载不出来。后台没有报错。前台也没有报错。然后同事提示看看F12的NotWork下面那耗时了。打开后发现都是毫秒级的。换了Tomcat7-8,也没有效果。在eclipse上运行也不行。在idea上也还是同样的问题,页面加载不出来或者要好几分钟才能出来。 经过一个多年的经验的前辈指点后,成功...
ssm+maven不报错,但是也查询不到结果
今天碰到一个很奇怪的问题 , 我用的是maven+ssm框架, 去后台查询列表的时候一直取不到值 , 我就打断点跟进去, 于是发现 , mapper注入进来了 , 但是调用mapper去查询的时候断点就停了 , 我反复想 , 一直怀疑是mapper没有扫描到 , 一边又一遍 , 突然想到了一个很简单的问题 , 数据库名称是不是写错了 , 检查了以下 , 于是改了过来 , 结果出来了 , 很郁闷 ,
如何让绘图一点也不闪烁
在单文档的View类的OnDraw()函数中加入如下代码,在拖动窗口的时候为什么会闪烁,OnEraseBkgnd()函数也重载了,返回的TRUE。 rn CRect rect;rn GetWindowRect(&rect);rn CBrush hBrush(RGB(255,0,0));rn CBrush* pOldBrush = pDC->SelectObject(&hBrush);rn DWORD count = 0;rn DWORD dwArg = 0;rnrn dorn rn dwArg = (dwArg + 100) % 500;rn count++; rn pDC->Rectangle(dwArg + 200, rect.bottom - (count/10) - 200,dwArg+0x40 + 200, rect.bottom - 200);rn Sleep(1);rn rn while (count < 2000); rnrn pDC->SelectObject(pOldBrush);
mybatis逆向工程不成功,但是也不报错。解决办法
mybatis逆向工程不成功,但是也不报错。控制台显示如下语句: 2018-12-05 08:51:34,310 [main] DEBUG [org.mybatis.generator.internal.db.DatabaseIntrospector] - Retrieving column information for table &quot; M_CNC_LOG&quot; 后台,经过检查发现。 是我在g...
这样一句模糊查询不能按预期工作,但是也不报错
set rs = conn.execute("select * from main where 版号 like '%" &No& "%'") 我用这样一条语句,希望进行模糊查询,程序能运行,能显示一条相关记录,但数据库里明明有两条符合条件的。而且我在打印Response.write rs.MaxRecords结果的时候,输出值为0,这个是不是也不正常。如果模糊查询成功,它应该等于2,就算只查出一条记录是不是也应该先于1。为什么会是0
eclipse启动的时候吧,不报错,但是一直Strating
eclipse启动的时候吧。一直卡着的。publish clean都没用。时间设置长点也不行。。也不报错。
没有报错,但是运行的时候程序崩溃
#includernint main()rnrn void hanoi(int n,char one,char two,char three);rn int m;rn printf("input the number of diskes");rn scanf("%d,&m");rn printf("the step to move %d diskes:\n",m);rn hanoi(m,'A','B','C');rnrnvoid hanoi(int n,char one,char two,char three)rnrn void move(char x, char y);rn if(n==1)rn move(one,three);rn elsern rn hanoi(n-1,one,three,two);rn move(one,three);rn hanoi(n-1,two,one,three);rn rnrnvoid move(char x,char y)rnrn printf("%c-->%c\n",x,y);rn
编译不报错,但是不能运行,求高手!!!
// 哪里错了,求解释.cpp : 定义控制台应用程序的入口点。rn#include "stdafx.h"rn#include rn#includernusing namespace std;rnclass rectangle// 长方形rnrnprivate:rn float length,height;rn double s;rnpublic:rn string name;rn rectangle(float length=5.0,float height=7.0);rn ~rectangle();rn void draw();rn double area();rn string what();rn;rnrectangle::rectangle(float l,float h): name("rectangle"),length(l),height(h)rnrectangle::~rectangle()rnvoid rectangle::draw()rnrn cout << what() <<": length = " << length << ", height = " << height << endl;rnrndouble rectangle::area()rnrn s=length*height;rn return s;rnrnstring rectangle::what()rnrn return name;rnrnclass square//正方形rnrnprivate:rn float length;rn double s;rnpublic:rn string name;rn square(float length=5.0);rn ~square();rn void draw();rn double area();rn string what();rn;rnsquare::square(float l): name("square"),length(l)rnsquare::~square()rnvoid square::draw()rnrn cout << what() <<": length = "<(quad); rn p2->draw();rn cout << "area = " << p2->area() << endl;rn rn else if(quad->name=="square")rn rn square *p = reinterpret_cast(quad); rn p->draw();rn cout << "area = " << p->area() << endl;rn rn else if(quad->name=="parallelogram")rn rn parallelogram *p = reinterpret_cast(quad); rn p->draw();rn cout << "area = " << p->area() << endl;rn rn else if(quad->name=="trapezoid")rn rn trapezoid *p = reinterpret_cast(quad); rn p->draw();rn cout << "area = " << p->area() << endl;rn rn else if(quad->name=="diamond")rn rn diamond *p = reinterpret_cast(quad); rn p->draw();rn cout << "area = " << p->area() << endl;rn rnrnint main()rnrn list li;rn rectangle rec(5.0,7.0);//长方形对象 rn li.pushback(reinterpret_cast(&rec)); rn /*square squ(5.0);//正方形对象 rn li.pushback(reinterpret_cast(&squ));rn parallelogram par(6.0,8.0);//平行四边形对象 rn li.pushback(reinterpret_cast(&par));rn trapezoid tra(6.0,8.0,10.0);//梯形对象 rn li.pushback(reinterpret_cast(&tra));rn diamond dia(6.0,5.0);//菱形对象rn li.pushback(reinterpret_cast(&rec));*/rn li.traverse(access);rn return 0;rnrnrnrnrn rnrn rnrnrnrnrnrnrnrn
expct脚本执行,不报错,但是运行不过去。
   第一次写shell脚本#!/usr/bin/expect spawn ssh-keygen expect {         &quot;Enter &quot;{         send &quot;\r&quot;         exp_continue         }         &quot;Enter &quot;{          send &quot;\r&quot;         exp_continue         }        ...
如何写一个控制台程序,但是运行的时候不出现对话框
rnrn 如题,也就是只运行,没有cmd框出现
ShellExecute 在xp下可以运行,vista下不能成功,也不报错
ShellExecute(GetParentHandle(), "open", AnsiString(args).c_str(), NULL, NULL, SW_SHOWNORMAL);rn这句化在Xp能vista不能,我的程序也提升了成管理员权限,都可以修改注册表了。就是这句话不能正常运行
在oracle11g运行超长的sql无反应,也不报错
sql语句如下,这个sql在以前的低版本oracle是可以运行的,现在升级11g后就有问题。特点是查询没反应,但也不报错。另外运行其它的简单sql是可以正常查询出数据。大家看看啥回事。rnselect distinct tc.ym,tab.* from (rn select ta.no,ta.pk_detail,explanation,deptcode,localcreditamount,localdebitamount,ta.free1,tb.valuecode from rn (SELECT v.no, d.pk_detail,d.explanation,dpt.deptcode, d.localcreditamount, d.localdebitamount, d.free1rn FROM BD_ACCSUBJ a, gl_detail d, BD_DEPTDOC dpt, gl_voucher v, gl_freevalue f, bd_glorgbook g, bd_glorg c rn where c.entitytype = 0 and c.pk_entityorg = '1020' and c.dr <> 1 rn and dpt.pk_corp = c.pk_entityorg and c.pk_glorg = g.pk_glorg and a.pk_glorgbook = g.pk_glorgbook rn and v.pk_glorgbook = g.pk_glorgbook rn and d.pk_voucher = v.pk_voucher and a.PK_ACCSUBJ = d.PK_ACCSUBJ rn and d.assid = f.freevalueid and f.valuecode = dpt.deptcode rn and a.subjcode = '113307'rn and v.discardflag <> 'Y' and v.dr <> 1 rn and (d.free1 is not null or trim(d.free1) <> '') rn and (v.errmessage is null or trim(v.errmessage) = '')rn --and (d.free2 is null or trim(d.free2) = '')rn -- and to_number(concat(v.year, v.period)) = 200808rn order by v.year, v.period, v.no, d.pk_detail) ta,rn rn (SELECT v.no, d.pk_detail, f.valuecodern FROM BD_ACCSUBJ a, gl_detail d, gl_voucher v, bd_glorgbook g, bd_glorg c, gl_freevalue f, bd_subjass sa, bd_bdinfo bd, bd_currtype curr rn where c.entitytype = 0 and c.pk_entityorg = '1020' and c.dr <> 1 rn and c.pk_glorg = g.pk_glorg and a.pk_glorgbook = g.pk_glorgbook rn and v.pk_glorgbook = g.pk_glorgbook rn and d.pk_voucher = v.pk_voucher and a.PK_ACCSUBJ = d.PK_ACCSUBJ rn --and to_number(concat(v.year, v.period)) = 200810rn and v.discardflag <> 'Y' and v.dr <> 1 rn and d.assid = f.freevalueid(+) rn and (d.free1 is not null or trim(d.free1) <> '') rn --and (d.free2 is null or trim(d.free2) = '')rn and bd.bdcode = '73' and a.subjcode = '113307'rn and sa.pk_bdinfo=f.checktype and bd.pk_bdinfo=sa.pk_bdinfo and a.pk_accsubj=sa.pk_accsubj rn and d.pk_currtype = curr.pk_currtype rn order by v.year, v.period, v.no, d.pk_detail) tbrn where tb.pk_detail = ta.pk_detail ) tab,rn rn (SELECT d.free1,concat(v.year, v.period) ymrn FROM BD_ACCSUBJ a, gl_detail d, gl_voucher v, bd_glorgbook g, bd_glorg c, gl_freevalue f, bd_subjass sa, bd_bdinfo bd, bd_currtype curr rn where c.entitytype = 0 and c.pk_entityorg = '1020' and c.dr <> 1 rn and c.pk_glorg = g.pk_glorg and a.pk_glorgbook = g.pk_glorgbook rn and v.pk_glorgbook = g.pk_glorgbook rn and d.pk_voucher = v.pk_voucher and a.PK_ACCSUBJ = d.PK_ACCSUBJ rn and to_number(concat(v.year, v.period)) >= 201003rn and to_number(concat(v.year, v.period)) <= 201003rn and v.discardflag <> 'Y' and v.dr <> 1 rn and d.assid = f.freevalueid(+) rn and (d.free1 is not null or trim(d.free1) <> '') rn --and (d.free2 is null or trim(d.free2) = '')rn and bd.bdcode = '73' and a.subjcode = '113307'rn and sa.pk_bdinfo=f.checktype and bd.pk_bdinfo=sa.pk_bdinfo and a.pk_accsubj=sa.pk_accsubj rn and d.pk_currtype = curr.pk_currtype rn and valuecode = 'C04'rn --and d.localdebitamount > 0.000001rn order by v.year, v.period, v.no, d.pk_detail) tcrn where tc.free1 like replace(tab.free1,tab.deptcode,'%')rnrnrn
python代码正确,运行不出结果,也不报错的可能原因
原因1: 仔细检查是否有多余空格,自己遇到的坑:if __name __ == "__main__":,'name'和'_'之间多了一个空格。 持续更新中。。。。。。
使用vue1.0写法不报错但是模块不加载
vue1.0老写法 new Vue({ el: '#app', components: { App } }); 在2.0上没有报错,但是模块不加载,找了一天的问题,最后才想起来应该 new Vue({ el: '#app', template: '', components: { App } }); 自己SB了一天,喵了个咪的。
前后台调试不报错但是不走action问题处理
今天新做一个功能,因为与之前一个功能相近就直接copy了原来的代码,但是调试的时候发现不走action但是也没有报错,后经高人指点发现是因为页面js上传的参数是string类型但是action里面声明的字段类型为long类型的,因为类型不匹配所以无法调action。
编译后 连接数据库 不报错 但是不显示内容
pb10+ slq anywhere9 调试状态都正常 编译成exe后 连接数据库 也不报错 登陆窗口应该显示职工列表的 结果什么都没有 请问是怎么回事 rnrnrnrnrnUlong ul_numrnInt answer,answer1,answer2,answer3,answer4,answer5,ansapprnString ls_driver,ls_start,ls_location,app_path,db_path,odbcstrrnrn//判断Sybase SQL Anywhere5.0的驱动程序是否正确安装rnls_driver=GetCurrentDirectory()+'\dbodbc9.dll'rnls_start=GetCurrentDirectory()+'\dbsrv9.EXE'rnrnIF NOT (FileExists(ls_driver) or FileExists(ls_start)) THENrnMessagebox('错误','系统中没有安装SQL Anywhere的驱动程序,系统将终止运行!',StopSign!)rnRETURNrnEND IFrn//设置ODBC\ODBCINST.INI\ODBC DRIVERSrnanswer=RegistrySet('HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\ODBC Drivers','Adaptive Server Anywhere 9.0',RegString!,'Installed')rnIF answer=-1 THENrnMessagebox('错误','应用程序无法设置ODBC DRIVERS,系统将终止运行!',StopSign!)rnRETURNrnEND IFrn//设置ODBC\ODBCINST.INI\rnanswer1=RegistrySet('HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\Adaptive Server Anywhere 9.0','CPTimeout',RegString!,'not pooled')rnanswer2=RegistrySet('HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\Adaptive Server Anywhere 9.0','Driver',RegString!,ls_driver)rnanswer3=RegistrySet('HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\Adaptive Server Anywhere 9.0','Setup',RegString!,ls_driver)rnIF answer1=-1 OR answer2=-1 OR answer3=-1 THENrnMessagebox('错误','应用程序无法设置ODBCINST.INI,系统将终止运行!',StopSign!)rnRETURNrnEND IFrn//设置ODBC DATA SOURCE名称(anysql为数据源名)rnanswer=RegistrySet('HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources','anysql',RegString!,'Adaptive Server Anywhere 9.0')rnIF answer=-1 THENrnMessagebox('错误','应用程序无法设置ODBC DATA SOURCE名称,系统将终止运行!',StopSign!)rnRETURNrnEND IFrnrndb_path=GetCurrentDirectory()+'\lr.db'rnrn//设置ODBC.INI的细节rnanswer1=RegistrySet('HKEY_current_user\software\odbc\odbc.ini\anysql','driver',RegString!,ls_driver)rnanswer2=RegistrySet('HKEY_current_user\software\odbc\odbc.ini\anysql','start',RegString!,ls_start)rnanswer3=RegistrySet('HKEY_current_user\software\odbc\odbc.ini\anysql','autostop',RegString!,'yes')rnanswer4=RegistrySet('HKEY_current_user\software\odbc\odbc.ini\anysql','DataBaseFile',RegString!,db_path)rnanswer5=RegistrySet('HKEY_current_user\software\odbc\odbc.ini\anysql','DataBaseName',RegString!,'lr')rnIF answer1=-1 OR answer2=-1 OR answer3=-1 OR answer4=-1 OR answer5=-1 THENrnMessagebox('错误','应用程序无法设置ODBC.INI细节,系统将终止运行!',StopSign!)rnRETURNrnEND IFrnodbcstr='dsn=anysql;databasename=lr;databasefile='+db_pathrnsqlca.dbms='odbc'rnsqlca.database='lr'rnsqlca.dbparm="connectstring='"+odbcstr+";uid=dba;pwd=780712'"rnconnect using sqlca;rnrn if sqlca.sqlcode <> 0 then rn MessageBox ("", sqlca.sqlerrtext) rn return rn end if rnrnopen(w_login)rnrn
【急】tomcat启动不报错,但是不加载Spring的配置文件!!
[code=text]十二月 30, 2016 2:24:46 下午 org.apache.catalina.core.AprLifecycleListener initrn信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.8.0_77\jre\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files\Java\jdk1.8.0_77\jre\bin;C:/Program Files/Java/jre1.8.0_77/bin/server;C:/Program Files/Java/jre1.8.0_77/bin;C:/Program Files/Java/jre1.8.0_77/lib/amd64;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Java\jdk1.8.0_77\bin;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Common Files\Autodesk Shared\;C:\Program Files (x86)\Autodesk\Backburner\;E:\mysql\bin;C:\Program Files (x86)\VanDyke Software\Clients\;G:\迅雷下载\UltraCompare;E:\;estination\bin;E:\Subversion\bin;E:\apache-maven-3.3.9\bin;E:\VisualSVN\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files\TortoiseGit\bin;C:\Program Files\OpenVPN\bin;C:\Program Files (x86)\VanDyke Software\Clients\;E:\dshlEclipse\eclipse;;.rn十二月 30, 2016 2:24:47 下午 org.apache.tomcat.util.digester.SetPropertiesRule beginrn警告: [SetPropertiesRule]Server/Service/Engine/Host/Context Setting property 'source' to 'org.eclipse.jst.j2ee.server:numen' did not find a matching property.rn十二月 30, 2016 2:24:47 下午 org.apache.coyote.AbstractProtocol initrn信息: Initializing ProtocolHandler ["http-bio-80"]rn十二月 30, 2016 2:24:47 下午 org.apache.coyote.AbstractProtocol initrn信息: Initializing ProtocolHandler ["ajp-bio-8009"]rn十二月 30, 2016 2:24:47 下午 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 453 msrn十二月 30, 2016 2:24:47 下午 org.apache.catalina.core.StandardService startInternalrn信息: Starting service Catalinarn十二月 30, 2016 2:24:47 下午 org.apache.catalina.core.StandardEngine startInternalrn信息: Starting Servlet Engine: Apache Tomcat/7.0.52rn十二月 30, 2016 2:24:50 下午 org.apache.catalina.core.ApplicationContext logrn信息: No Spring WebApplicationInitializer types detected on classpathrnlog4j:WARN No such property [maxFileSize] in org.apache.log4j.DailyRollingFileAppender.rnlog4j:ERROR A "org.apache.log4j.xml.DOMConfigurator" object is not assignable to a "org.apache.log4j.spi.Configurator" variable.rnlog4j:ERROR The class "org.apache.log4j.spi.Configurator" was loaded by rnlog4j:ERROR [org.apache.catalina.loader.StandardClassLoader@6cc4c815] whereas object of type rnlog4j:ERROR "org.apache.log4j.xml.DOMConfigurator" was loaded by [WebappClassLoaderrn context: /numenrn delegate: falsern repositories:rn /WEB-INF/classes/rn----------> Parent Classloader:rnorg.apache.catalina.loader.StandardClassLoader@6cc4c815rn].rnlog4j:ERROR Could not instantiate configurator [org.apache.log4j.xml.DOMConfigurator].rn十二月 30, 2016 2:24:51 下午 org.apache.catalina.core.ApplicationContext logrn信息: Initializing Spring root WebApplicationContextrnlog4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).rnlog4j:WARN Please initialize the log4j system properly.rntry to load 'net/contentobjects/jnotify/lib/jnotify_win_64.dll' from classpathrnload finished![/code]rnrnrn下面是web.xmlrn[code=text]rnrnrn elfrn elf Systemrn rn rn rn rn contextConfigLocationrn classpath*:core.xmlrn rn rn rn rn org.springframework.web.context.ContextLoaderListenerrn rnrn rn org.springframework.web.util.Log4jConfigListenerrn rnrn rn org.springframework.web.util.IntrospectorCleanupListenerrn rn rn rn com.netease.numen.core.web.listener.InitListener rn rn rnrn rn rn numenPlatformrn org.springframework.web.servlet.DispatcherServletrn rn contextConfigLocationrn classpath*:views.xmlrn rn 1rn rn rn rn numenPlatformrn *.dorn rn rn rn rn MemcachedSessionFilter rn com.netease.numen.base.web.filter.MemcachedSessionFilter rn rn rn MemcachedSessionFilter rn /* rn rnrn rn rn CharacterEncodingFilterrn org.springframework.web.filter.CharacterEncodingFilterrn rn encodingrn UTF-8rn rn rn rn CharacterEncodingFilterrn /*rn rn rn rn VisitFilterrn com.netease.numen.base.web.filter.VisitFilterrn rn rn VisitFilterrn *.dorn rn rn VisitFilterrn *.prn rn rn rn rn SessionTimeoutFilter rn com.netease.numen.base.web.filter.SessionTimeoutFilter rn rn rn excludeUrirn /api/*rn rn rn rn SessionTimeoutFilter rn *.dorn rn rn SessionTimeoutFilter rn *.prn rn rn rn rn PrivateApiFilterrn com.netease.numen.base.web.filter.PrivateApiFilterrn rn rn PrivateApiFilterrn /api/private/*rn rn rn rn Log4jMDCFilter rn com.netease.numen.base.web.filter.Log4jMDCFilter rn rn rn Log4jMDCFilter rn /* rn rn rn rn log4jConfigLocationrn classpath:log4j.xmlrn rnrn rn webAppRootKeyrn elfrn rn rn rn rn rn pillowConfigLocationrn rn classpath*:com/netease/numen/*/pillow-*.xml rn rn rn rn com.netease.pillow.listener.DefaultLoaderListenerrn rn rn rn dispatcherControllerrn com.netease.pillow.dispatcher.PillowDispatchControllerrn rn contextConfigLocationrn classpath*:pillow-views.xmlrn rn 3rn rn rn dispatcherControllerrn *.prn rn rn rn rn 120rn rnrn rn /index.jsprn rn rn rn 404rn /error/404.dorn rn rn rn 500rn /500.dorn rnrn[/code]rnrn什么原因???
3D图形Texture(纹理贴图)
“` package com.example.tyxiong.myapplication;import android.app.Activity; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.open
打开附件时,不报错,也不打开。
[code=C#]rn public void OpenPath() //查看附件rn rn string Path = Session["FilePath"].ToString();//路径为:~/upload/2011-6-9/01003720110609T143951.jpgrn Path = Server.MapPath(Path);rn if (Path.Length > 1)rn rn rn tryrn rn rn System.Diagnostics.Process.Start(Path);rn rn catch (Exception ee)rn rn Page.RegisterStartupScript("script", " ");rn rn rn elsern rn rn Page.RegisterStartupScript("script", " ");rn rn rn//rn//发布到服务器上是这样的:当我点击附件连接,调用上面的函数,路径已经存在,没有问题,也不弹出窗体,也不打开图片,系统中图片查看器是有的。rn//本地vs2005中运行:没有问题,可以直接打开,为什么呢?rn//难道是权限问题??? 哪里可以改??rn//如果打开附件的方式不对,请告诉好的方式。rn[/code]rnrnrn[color=#FF0000]谢谢各位的回复,均有分,但是请看清现在的问题。[/color]
netbean不报错也不继续执行程序是什么情况?
控制台没有错误信息,程序也不继续执行了。是不是那里设置有问题?rnrn程序不继续执行了应该是遇到什么错误了,但是不给我报错我也不知道问题在那里啊、
相关热词 c#异步发送kafka c#窗体编号 c# 操作二进制文件 c# 反射 机制 c#线程 窗体失去响应 c#角度转弧度 c# 解析gps数据 c# vs设置 语法版本 c# json含回车 c#多线程demo