为什么QT里面加载不出来资源添加的文件呢?大家帮我看看 [问题点数:20分]

Bbs1
本版专家分:0
结帖率 0%
Bbs4
本版专家分:1107
Bbs1
本版专家分:0
Bbs1
本版专家分:0
QT的qrc资源文件设置的路径没反应
我是初学者,按教程<em>添加</em>了一个qrc<em>文件</em>,在前缀/下<em>添加</em>了一个图片open.jpg,然后在cpp中用setIcon使用。 但是如果我的路径是“:/open.jpg”则图片不能显示,如果我改成绝对路径"B
Qt在vs2013下添加的ui文件中找不到资源图片
用vs2013生成的Qt程序中,生成的ui<em>文件</em>中可以找到<em>添加</em>的<em>资源</em>图片,但是<em>添加</em>现有项(ui<em>文件</em>)中找不到<em>资源</em>,这个时候用Qt Designer打开这个UI<em>文件</em>,在<em>资源</em>浏览器中->编辑<em>资源</em>->导入<em>资源</em><em>文件</em>->选择<em>资源</em><em>文件</em>XX.qrc。大功告成
大家帮我看看为什么GRIDVIEW显示不出来
我在页面上拉了一个gridview进去,然后在后台写上代码rn代码如下:rnusing System;rnusing System.Data;rnusing System.Configuration;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 _Default : System.Web.UI.Page rnrn protected void Page_Load(object sender, EventArgs e)rn rn string connectionString = "Data Source=zonghua;Initial Catalog=Northwind;Persist Security Info=True;User ID=sa;Password=sa";rn string commandString = "select * from Customers";rn SqlConnection conn = new SqlConnection(connectionString);rn tryrn rn conn.Open();rn SqlDataAdapter dataAdapter = new SqlDataAdapter(commandString, connectionString);rn DataSet dataset = new DataSet();rn dataAdapter.Fill(dataset);rn DataTable datatable = dataset.Tables["Customers"];rn GridView1.DataSource = datatable;rn GridView1.DataBind();rn rn catch(Exception exp)rn rn Response.Write(exp.Message);rn rn finallyrn rn conn.Close();rn rn rnrnrn我用的是SQL自带数据库northwind中的cunstomers表,<em>为什么</em>运行之后页面上就是显示<em>不出来</em>gridview,<em>大家</em><em>帮我</em><em>看看</em>哈
大家帮我看看为什么这个程序编译不出来呢?
小弟是个刚学C++的新手,现编了如下程序,用VC++编译的时候出现了如下提示,<em>大家</em>能<em>帮我</em><em>看看</em>错在哪里么,谢谢:rnE:\Documents\ROCK\2008_08_27\2008_08_27.cpp(5) : error C2146: syntax error : missing ';' before identifier 'Option_Price'rnE:\Documents\ROCK\2008_08_27\2008_08_27.cpp(5) : error C2501: 'Class' : missing storage-class or type specifiersrnE:\Documents\ROCK\2008_08_27\2008_08_27.cpp(5) : fatal error C1004: unexpected end of file foundrnError executing cl.exe.rnrn2008_08_27.obj - 3 error(s), 0 warning(s)rnrn#includern#includern#includernusing namespace std;rn Class Option_Price rn double Spot_Price, Strike_Price, Inerest_Rate, Vol, Time;rn public:rn double CND(double x);rn double CallOption(double S, double X, double r, double sigma, double t);rn;rn//------------------------------------------------------------------------------------------------------rn double Option_Price::CND(double x)rn const double b1 = 0.319381530;rn const double b2 = -0.356563782;rn const double b3 = 1.781477937;rn const double b4 = -1.821255978;rn const double b5 = 1.330274429;rn const double p = 0.2316419;rn const double c = 0.39894228;rn double prob;rn if(x >= 0.0) rn rn double t = 1.0 / ( 1.0 + p * x );rn prob=(1.0 - c * exp( -x * x / 2.0 ) * t *rn ( t *( t * ( t * ( t * b5 + b4 ) + b3 ) + b2 ) + b1 ))<
大家帮我看看为什么我的这个属性读不出来呢?
TAlterOrderForm = class(TParentForm)rnprivaternfunction GetCurNodeDataObj : string; rnpublishedrnproperty CurNodeDataObj: string read GetCurNodeDataObj;rnrnrnrnfunction TAlterOrderForm.GetCurNodeDataObj : string;rnbeginrn Result := 'abc'rnend;rnrn我在读的函数内打了断点,可是打开窗体的时候 却不走这个函数.<em>大家</em><em>看看</em>问题在哪啊????rnrnrn
大家帮我看看图片显示不出来
C#rnthis.Dropyp.Attributes.Add("onclick", "yp();");rn---rn [Ajax.AjaxMethod(Ajax.HttpSessionStateRequirement.Read)]rn public DataTable selectmuster(int imgesid)rn rn tryrn rn SqlCommand mycmd = dbobj.Getcommandpro("pro_selectmuster");rn SqlParameter muid = new SqlParameter("@muid", SqlDbType.Int);rn muid.Value = imgesid;rn mycmd.Parameters.Add(muid);rnrn dbobj.ExecNonQuery(mycmd);rn DataTable ad = dbobj.GetDataSet(mycmd);rn return ad;rn rn catch (Exception ex)rn rn throw new Exception(ex.Message, ex);rn rn rnHTMLrn
帮我看看为什么图片显示不出来??
struts2rn工程目录结构如下:rn Project rn --srcrnrn --imagesrn --logo.gifrnrn --WebRootrn --WEB-INFrn --librn --pagern --index.jsprnrn --web.xmlrnrnrnweb.xml里rn rn /WEB-INF/page/index.jsprn rnrnindex.jsp的内容rnrn[code=HTML]rnrnrn rnrnrnrn rn rn 登陆 rn rn rn rn rn rn rn rn rn rn rn rn rnrnrn[/code]rnrnrn通过http://localhost:8080/Project/ 现在可以访问index.jsp页面,但是上面的图片显示<em>不出来</em>,rn直接http://localhost:8080/PaperProject/images/logo.gif也显示不出图片rnrnrn请问哪里有问题,谢谢!
用QT创建了QT项目后不显示cpp文件
<em>为什么</em>我用Qt创建完QT Widgets APPlication 后他就至弹出个pro<em>文件</em>,cpp<em>文件</em>都不显示,可<em>资源</em>管理器里是存在相关的cpp<em>文件</em>,导致运行的时候不能通过,以前用QT写C++从来不会
qt creator 新建空的qt项目,再添加文件,各种错误。
rt。我的<em>qt</em>版本是5.2.1 我新建了一个类,类似如下: #include class MyLabel : public QLabel { public: MyLabel(); }
大家帮我看看为什么会堆栈溢出呢?
PROGRAM CRT_BINARY_TREE;rnrnCONST maxlen=7;rnrnTYPE sqlisttp=RECORDrn elem:ARRAY[1..maxlen] OF char;rn last:0..maxlenrn END;rnrnTYPE bitreptr =^bnodetp;rn bnodetp=RECORDrn data:char;rn lchild,rchild:bitreptr;rn END;rnVARrn bt,q:bitreptr;rn i,lowb,highb:integer;rn pre,ino:sqlisttp;rn rnPROCEDURE Initialize;rnvar rn counter:integer;rnbeginrn pre.elem[1]:='a';rn pre.elem[2]:='b';rn pre.elem[3]:='c';rn pre.elem[4]:='d';rn pre.elem[5]:='e';rn pre.elem[6]:='f';rn pre.elem[7]:='g';rn ino.elem[1]:='c';rn ino.elem[2]:='b';rn ino.elem[3]:='e';rn ino.elem[4]:='d';rn ino.elem[5]:='a';rn ino.elem[6]:='f';rn ino.elem[7]:='g';rn for counter:=1 to 7 do rn write(pre.elem[counter]);rn for counter:=1 to 7 do rn write(ino.elem[counter]);rnrnend;rnrnrnPROCEDURE crt_bt(pre,ino:sqlisttp;lowb,highb:integer;VAR q:bitreptr);rnpre,ino:用数组存储的先序、中序序列,lowb,highb:数组的上下界,q:指向根接点的指针rn,i:根结点位置标记rnbeginrn i:=lowb;rn q^.data:=pre.elem[lowb];rn while(ino.elem[i]<>pre.elem[lowb]) dorn i:=i+1;rn if (i=lowb) then rn q^.lchild:=NILi=lowb时没有左子树rn elsern crt_bt(pre,ino,lowb,i-1,q^.lchild);rn if (i=highb) thenrn q^.rchild:=NILrn elsern crt_bt(pre,ino,i+1,highb,q^.rchild);rn new(q);rnend;rnrnprocedure preorder(bt:bitreptr);rn 先序遍历rnbeginrn if bt<>NIL thenrn beginrn write(bt^.data);rn preorder(bt^.lchild);rn preorder(bt^.rchild);rn endrnend;rnrnprocedure inorder(bt:bitreptr);rn 中序遍历rnbeginrn if bt<>NIL thenrn beginrn inorder(bt^.lchild);rn write(bt^.data);rn inorder(bt^.rchild)rn endrnend;rnrnprocedure output_bt(bt:bitreptr);rnbeginrn writeln('Preorder:');rn preorder(bt);rn writeln('Inorder');rn inorder(bt)rnend;rnrnbeginrn lowb:=1;rn highb:=maxlen;rn initialize;rn new(q);rn q^.lchild:=NIL;rn q^.rchild:=NIL;rn bt:=q;rn crt_bt(pre,ino,lowb,highb,q);rn output_bt(bt)rnend.rn rnrn
大家帮我看看为什么不能连动呢??
rnrn rnrnrnrnrn rn rn rn rn rn rn rn rn <em>添加</em>网址rn rn rn rn rn rn rn 分类:rn rn --请选择--rn rn >rn rn rn rn rn rn 组类:rn rn --请选择--rn rn rn >rn rn rn rn rn 网站名称:rn rn rn rn rn 网址:rn rn rn rn rn 是否属于热门导航:rn rn rn rn rn rn rn rn rn rn rn rn rn rn
大家帮我看看这是为什么呢??
[code=Java]import java.io.IOException;rnimport java.util.*;rnpublic class Client rn public static void main(String[] args) rn try rn int temp=System.in.read();rn if(temp==1)rn System.out.println("不得错"+temp);rn rn if(temp==2)rn System.out.println("真的不得错"+temp);rn rn elsern System.out.println("这是<em>为什么</em>呢?"+temp);rn rn catch (IOException e) rn // TODO Auto-generated catch blockrn e.printStackTrace();rn rnrn rnrnrn[/code]rnrn我很纳闷,<em>为什么</em>输入数字1,结果输出49;输入2,结果输出50.。。。。rn这是<em>为什么</em>呢??
大家帮我看看 为什么会错呢?
#include"stdio.h"rn#include"math.h"rn#include"conio.h"rnvoid main()rnrn int a[16][3],i,j=0,b[3];rn double e=0,d,min=10000;rn for(i=0;i<16;i++) rn rn e=(a[i][0]-b[0])*(a[i][0]-b[0])+(a[i][1]-b[1])*(a[i][1]-b[1])+(a[i][2]-b[2])*(a[i][2]-b[2]);rn d=sqrt(e);rn if(d
大家帮我看看,为什么测试不成功呢?
我用SQL server 7.0建了一个Logindb的库.<em>里面</em>有个login的表.我想把数据库里的数据输出到页面上.但不知道<em>为什么</em>总是测试不成功.是不是DSN的连接有问题呢?rnrn请高手帮忙指点一下,谢谢!!
大家帮我看看为什么
<em>为什么</em>我一个数据库数据MDF<em>文件</em>大小为1.56M,导入数据到另一个新建数据库,查看一下,另一个数据库的MDF<em>文件</em>大小为1.25M,数据库导入导出数据不是就是表和视图的复制吗,中间哪里少了什么内容呢?
大家帮我看看为什么
我在Visual Studio 2005里,用ActiveSync来同步模拟器rn教程上说rn 1、打开 Visual Studio 2005 rn 2、单击 工具 - 连接设备 ,在平台下,选择Windows CE,在Devices 下选择CHS Windows Mobile 5.0 Pocker PC R2 Emulatorrn[img=http://images.cnblogs.com/cnblogs_com/greatandforever/p2.JPG][/img]rnrnrn但是我找不到windows cern[img=http://hi.csdn.net/attachment/201102/26/4621320_1298732904LLOD.jpg][/img]rnWindows Mobile 6 Professional SDK 和Windows Mobile 5.0 Pocket PC SDK都已经安装了rn还要安装什么么?
为什么??大家帮我看看
<em>大家</em>好,我是最近才接触xml,我碰到一个问题,百思不得其解,下面是这段代码,请<em>大家</em><em>看看</em>。rn1.xsl:rnrnrnrn Address Book XML Examplernrnrnrnrnrnrnrnrnrnrnrnrn1.xml:rnrnrnrnFrank Rizzornrnrn程序运行后,未提示出错,屏幕的颜色也变成预定的颜色,但文字确始终出不来。rn相信这是一个简单的入门级别的问题,还望<em>大家</em>忙.
帮我看看这段代码为什么不出来结果呢。
set uP=server.createobject("adodb.recordset")rn uP.Activeconnection=MM_EmpMain_stringrn uP.source="select * from userinf where ID="&request.cookies("ID")&" and ispass=true"rn uP.cursortype=0rn uP.cursorlocation=2rn uP.locktype=1rn uP.open()rn usermg=uP("username")rnrn最后我要得到的就是usermg的值 ,可<em>为什么</em>得不到呢。这里的UP不就果相当记录集吗。
怎么回事呢,大家帮我看看!!!
(这就是第一行)rnrnrnrnrnrn错误信息:rnMicrosoft OLE DB Provider for SQL Server 错误 '80040e14' rnrn第 1 行: '=' 附近有语法错误。 rnrn/foods001_Local/company/people.asp,行7 rnrn
哪位兄弟帮我看看,为什么不出来!
我刚刚接触C#网络编程的例子,今天拿来看了一下,在本地机上运行正常.rn可我把server.exe放到Internet上就不行了,Sorket连接是可以建立起来(Ip地址和tcp端口都没问题,但是从连接缓冲里读数据的时候,却一直阻塞!读<em>不出来</em>!rnclient.csrn******************************rnusing System ;rnusing System.Drawing ;rnusing System.Collections ;rnusing System.ComponentModel ;rnusing System.Windows.Forms ;rnusing System.Data ;rnusing System.Net.Sockets ;rnusing System.Net;rnusing System.IO ;rnusing System.Threading ;rnnamespace Clientrnrn /// rn /// Form1 的摘要说明。rn /// rn public class Form1 : System.Windows.Forms.Formrn rn private System.Windows.Forms.ListBox listBox1;rn private System.Windows.Forms.Button button1;rn private System.Windows.Forms.Label label1;rn private System.Windows.Forms.TextBox textBox1;rn private System.Windows.Forms.Label label2;rn private NetworkStream networkStream ;rn private StreamReader streamReader ;rn private StreamWriter streamWriter ;rn TcpClient myclient ;rn /// rn /// 必需的设计器变量。rn /// rn private System.ComponentModel.Container components = null;rnrn public Form1()rn rn //rn // Windows 窗体设计器支持所必需的rn //rn InitializeComponent();rn Connect();rnrn //rn // TODO: 在 InitializeComponent 调用后<em>添加</em>任何构造函数代码rn //rn rnrn /// rn /// 清理所有正在使用的<em>资源</em>。rn /// rn protected override void Dispose( bool disposing )rn rn if( disposing )rn rn if (components != null) rn rn components.Dispose();rn rn rn base.Dispose( disposing );rn rnrn #region Windows 窗体设计器生成的代码rn /// rn /// 设计器支持所需的方法 - 不要使用代码编辑器修改rn /// 此方法的内容。rn /// rn private void InitializeComponent()rn rn this.listBox1 = new System.Windows.Forms.ListBox();rn this.button1 = new System.Windows.Forms.Button();rn this.label1 = new System.Windows.Forms.Label();rn this.textBox1 = new System.Windows.Forms.TextBox();rn this.label2 = new System.Windows.Forms.Label();rn this.SuspendLayout();rn // rn // listBox1rn // rn this.listBox1.ItemHeight = 12;rn this.listBox1.Location = new System.Drawing.Point(16, 40);rn this.listBox1.Name = "listBox1";rn this.listBox1.Size = new System.Drawing.Size(256, 136);rn this.listBox1.TabIndex = 0;rn // rn // button1rn // rn this.button1.Location = new System.Drawing.Point(176, 224);rn this.button1.Name = "button1";rn this.button1.TabIndex = 1;rn this.button1.Text = "发送信息";rn this.button1.Click += new System.EventHandler(this.button1_Click);rn // rn // label1rn // rn this.label1.Location = new System.Drawing.Point(24, 16);rn this.label1.Name = "label1";rn this.label1.Size = new System.Drawing.Size(80, 23);rn this.label1.TabIndex = 3;rn this.label1.Text = "信息交换:";rn // rn // textBox1rn // rn this.textBox1.Location = new System.Drawing.Point(24, 224);rn this.textBox1.Name = "textBox1";rn this.textBox1.Size = new System.Drawing.Size(128, 21);rn this.textBox1.TabIndex = 3;rn this.textBox1.Text = "";rn // rn // label2rn // rn this.label2.Location = new System.Drawing.Point(24, 200);rn this.label2.Name = "label2";rn this.label2.TabIndex = 4;rn // rn // Form1rn // rn this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);rn this.ClientSize = new System.Drawing.Size(292, 273);rn this.Controls.Add(this.label2);rn this.Controls.Add(this.textBox1);rn this.Controls.Add(this.label1);rn this.Controls.Add(this.button1);rn this.Controls.Add(this.listBox1);rn this.MaximizeBox = false;rn this.MinimizeBox = false;rn this.Name = "Form1";rn this.Text = "C#的网络编程客户器端!";rn this.ResumeLayout(false);rnrn rn #endregionrn private void Connect()rn rn tryrn rn myclient = new TcpClient () ;rn IPHostEntry IPHost = Dns.Resolve("202.98.201.243"); rn string []aliases = IPHost.Aliases; rn IPAddress[] addr = IPHost.AddressList; rnrn IPEndPoint ep = new IPEndPoint(addr[0], 1234);rn myclient.Connect(ep);rn rn catchrn rn MessageBox.Show ( "没有连接到服务器!" ) ;rn return ;rn rn //创建networkStream对象通过网络套节字来接受和发送数据rn // 尝试与服务器连接rn rnrn networkStream = myclient.GetStream ( ) ;rn streamReader = new StreamReader ( networkStream ) ;rn streamWriter = new StreamWriter ( networkStream ) ;rn rn /// rn /// 应用程序的主入口点。rn /// rn [STAThread]rn static void Main() rn rn Application.Run(new Form1());rn rnrn private void button1_Click(object sender, System.EventArgs e)rn rn if ( textBox1.Text == "" )rn rn MessageBox.Show ( "请确定文本框为非空!" ) ;rn textBox1.Focus ( ) ;rn return ;rn rn tryrn rn string s ;rn //往当前的数据流中写入一行字符串rn streamWriter.WriteLine ( textBox1.Text ) ;rn //刷新当前数据流中的数据rn streamWriter.Flush ( ) ;rn //从当前数据流中读取一行字符,返回值是字符串rn s = streamReader.ReadLine ( ) ;rn rn catch ( Exception ee )rn rn MessageBox.Show ( "从服务器端读取数据出现错误,类型为:" + ee.ToString ( ) ) ;rn rn rn private void Form1_Closed ( object sender , System.EventArgs e )rn rn streamReader.Close ( ) ;rn streamWriter.Close ( ) ;rn networkStream.Close ( ) ;rnrn rnrnrn rnrnrn
为什么图片显示不出来帮我看看代码
ReadImage.aspx 代码片断:rnrnusing System;rnusing System.Collections;rnusing System.ComponentModel;rnusing System.Data;rnusing System.Drawing;rnusing System.Web;rnusing System.Web.SessionState;rnusing System.Web.UI;rnusing System.Web.UI.WebControls;rnusing System.Web.UI.HtmlControls;rnusing System.IO;rnrnprivate void Page_Load(object sender, System.EventArgs e)rnrn// 在此处放置用户代码以初始化页面rnstring strFileFullPath = @"D:\办公厅\001\0001\00001.tif";rnFileStream filestream= File.OpenRead(strFileFullPath);rnbyte[] bytfile = new byte[filestream.Length];rnfilestream.Read(bytfile,0,(int)filestream.Length);rnResponse.Clear();rnResponse.ContentType = "application/octet-stream";//设定输出<em>文件</em>类型 rn//输出图象<em>文件</em>二进制数组 rnResponse.BinaryWrite(bytfile);rn//Response.OutputStream.Write(bytfile, 0, bytfile.Length); rnResponse.End(); rnrn======================================================================rnrn我在ShowImage.aspx页面中写的是。rn可是在浏览ShowImage.aspx时图片总是出不来,不知道<em>为什么</em>?
大家帮我看看为什么我的这个消息退不出来
for(int i= 0; i,MB_YESNO+MB_ICONQUESTION) == IDYES)rn return; rn rnrn ... // 这里进行内部的计算处理rnrnrn在上面的for循环进行内部计算处理中,我如果关闭窗体,在接着出现的对话框中,我点“否”,程序的界面就不见了,怎么搞的啊?
大家帮我看看,这个图标为什么显示不出来
import java.awt.*;rnimport java.awt.event.*;rnimport javax.swing.*;rnrnpublic class TestSwingNew implements ActionListener rnrn public static void main(String[] args) rn new TestSwingNew().creatUI();rn rn public void creatUI() rn JFrame jf = new JFrame("TestSwing");rn JMenuBar jmb = new JMenuBar();rn JMenu menu_file = new JMenu("File");rn JMenu menu_help = new JMenu("Help");rn JMenuItem mi_new = new JMenuItem("New");rn JMenuItem mi_open = new JMenuItem("Open");rn JMenuItem mi_save = new JMenuItem("Save");rn mi_new.addActionListener(this);rn mi_save.addActionListener(this);rn mi_open.addActionListener(this);rn menu_file.add(mi_new);rn menu_file.add(mi_open);rn menu_file.add(mi_save);rn jmb.add(menu_file);rn jmb.add(menu_help);rn rn rn JToolBar jtb = new JToolBar();rn JButton button_new = new JButton(new ImageIcon("new.gif"));rn JButton button_open = new JButton(new ImageIcon("open.gif"));rn JButton button_save = new JButton(new ImageIcon("save.gif"));rn button_new.setActionCommand("New");rn button_open.setActionCommand("Open");rn button_save.setActionCommand("Save");rn button_new.setToolTipText("新建<em>文件</em>");rn button_open.setToolTipText("打开<em>文件</em>");rn button_save.setToolTipText("保存<em>文件</em>");rn button_new.addActionListener(this);rn button_open.addActionListener(this);rn button_save.addActionListener(this);rn jtb.add(button_new);rn jtb.add(button_open);rn jtb.add(button_save);rn rn rn JPanel jp = new JPanel();rn JButton button_start = new JButton("start");rn JButton button_stop = new JButton("stop");rn button_start.setToolTipText("开始");rn button_stop.setToolTipText("结束");rn button_start.addActionListener(this);rn button_stop.addActionListener(this);rn jp.add(button_start);rn jp.add(button_stop);rn rn jf.setJMenuBar(jmb);rn jf.add(jtb,"North");rn jf.add(jp,"South");rn jf.setSize(200, 300);rn jf.setLocation(300, 400);rn jf.setVisible(true);rn rn public void actionPerformed(ActionEvent e) rn System.out.println(e.getActionCommand());rn rnrnrn~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~rn我在工具栏中<em>加载</em>的这三个图标rn JButton button_new = new JButton(new ImageIcon("new.gif"));rn JButton button_open = new JButton(new ImageIcon("open.gif"));rn JButton button_save = new JButton(new ImageIcon("save.gif"));rn<em>为什么</em>运行程序的时候显示<em>不出来</em>?只是3个小点,图片没有<em>加载</em>上,我用的是eclipse,图片和这个类<em>文件</em>放在同一个<em>文件</em>夹下,怎么回事啊?谢谢了先!
为什么没人帮我看看呢????
用Delphi 做了一个系统,其中有个数据库恢复模块,我这样写(见下面),如果我单独使用这个模块,可以恢复,可是我把它连入系统就发生异常,异常提示:Table is busy!rn百思不得其解,请各位指点迷津!谢谢!!!!!!!!(有位朋友让我把两个Open都屏蔽,可还是不行!!)rnwith Table1 dornbeginrn close;rn Databasename:=Directorylistbox2.Directory ;rn Tablename:=Edit2.Text;rn Open;rnend;rnwith Table2 dornbeginrn close;rn Databasename:=combobox1.text;rn Tablename:=combobox2.text;rn open;rnend;rn Batchmove1.Execute;
C++里面加载资源
如何在C++<em>里面</em>用压缩包的形式<em>加载</em>图片<em>资源</em>
大家帮我看下CEdit的代码,为什么显示不出来
void CCEDITView::SetADD(CDC * pDC)rnrn int h_variable = 20;rn int h_EmptyLine = 10;rn int w_SPACES = 5;rn int x_origin = 100;rn int y_origin = 100;rn int TextLimit = 10;rnrn CString sa("Variable 1:");rn CString sb("Variable 2:");rn CString ss("Sum:");rnrn int l_sa = sa.GetLength();rn int l_sb = sb.GetLength();rn int l_ss = ss.GetLength();rnrn RECT arect, brect, crect;rn CEdit ea, eb, es; // three edit rnrn arect.left = x_origin+w_SPACES+l_sa;rn arect.top = y_origin;rn arect.right = arect.left+w_SPACES*16;rn arect.bottom = arect.top+h_variable;rn rn DWORD CreateFlag = WS_CHILD|WS_VISIBLE|WS_BORDER;rn int ID_EDIT_EA = 0x111;rn int ID_EDIT_EB = 0x112;rn int ID_EDIT_EC = 0x113;rnrn // displayrn //pDC->Rectangle(&arect);rn //pDC->TextOut(x_origin, y_origin, sa);rn ea.Create(CreateFlag, arect, this, ID_EDIT_EA);rn //ea.SetLimitText(TextLimit);rn ea.SetWindowText("D");rn rn //eb.Create()rnrnrnrn另外,想实现多个编辑框出现的话采用循环的方法是否可行呢
里面加载不出来数据">value=""里面加载不出来数据
刀具库 (current) 登录 铣刀 面铣刀 立铣刀 三面刃铣刀 圆柱式铣刀 角度铣刀 锯片铣刀 ...
大家看看这个程序请教为什么图片不出来的呢
//package com.cn;rnrnimport javax.swing.*;rnimport java.awt.*;rnrnpublic class MyMun rnrn /**rn * @param argsrn */rn JLabel backlabel = null;rn JFrame chuangkou = null;rnrn public MyMun() rn chuangkou = new JFrame("企业管理系统");rn // JPanel jpanel1=new JPanel();rn // jpanel1.setBackground(Color.red);rn backlabel = new JLabel();rn backlabel.setVerticalAlignment(SwingConstants.TOP);rn backlabel.setHorizontalAlignment(SwingConstants.CENTER);rn uptupian();rn JDesktopPane desktoppane = new JDesktopPane();rn desktoppane.add(backlabel, new Integer(Integer.MIN_VALUE));rn JPanel jpanel2 = new JPanel();rn jpanel2.setBackground(Color.black);rn //JPanel jpanel3 = new JPanel();rn //jpanel3.setBackground(Color.blue);rnrn Container conn = chuangkou.getContentPane();rn conn.add(desktoppane);rn // conn.add(jpanel1,BorderLayout.SOUTH);rn conn.add(jpanel2, BorderLayout.NORTH);rn //conn.add(jpanel3, BorderLayout.CENTER);rn JMenuBar caidanlan = new JMenuBar();rn // caidanlan.setBorderPainted(falsh);rn JMenu caidan = new JMenu("基础信息管理");rn JMenu caidan1 = new JMenu("进货管理");rn JMenu caidan2 = new JMenu("销售管理");rn JMenu caidan3 = new JMenu("查询统计");rn JMenu caidan4 = new JMenu("库存管理");rn JMenu caidan5 = new JMenu("系统管理");rn caidanlan.add(caidan);rn caidanlan.add(caidan1);rn caidanlan.add(caidan2);rn caidanlan.add(caidan3);rn caidanlan.add(caidan4);rn caidanlan.add(caidan5);rn chuangkou.setJMenuBar(caidanlan);rn chuangkou.setSize(800, 600);rn chuangkou.setVisible(true);rn rnrn public void uptupian() rn if (backlabel != null) rn int backw = MyMun.this.chuangkou.getWidth();rn int backh = chuangkou.getHeight();rn backlabel.setSize(backw, backh);rn backlabel.setText("");rn rnrn rnstatic rn tryrn rn UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());rn catch(Exception e)rn e.printStackTrace();rn rn public static void main(String[] args) rn // TODO Auto-generated method stubrnrn new MyMun();rn rnrnrn
大家帮我看看这是为什么
这个是我的WebForm1.aspx.vb的一个方法rnPrivate Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Clickrn Dim fs As FileStream = New FileStream("c:/11/a.doc", FileMode.Open)rn Dim fs2 As FileStream = New FileStream("c:/11/2.doc", FileMode.Create)rn Dim br As BinaryReader = New BinaryReader(fs)rn Dim br2 As BinaryWriter = New BinaryWriter(fs2)rn Dim bs As Bytern While br.PeekChar <> -1rn br2.Write(br.ReadByte)rn End Whilern br.Close()rn br2.Close()rn fs.Close()rn fs2.Close()rn End SubrnEnd Classrn但是每次点击按钮都会出错,错误表现如下rn“/WebWord”应用程序中的服务器错误。rn--------------------------------------------------------------------------------rnrn对路径“c:\11\a.doc”的访问被拒绝。 rn说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 rnrn异常详细信息: System.UnauthorizedAccessException: 对路径“c:\11\a.doc”的访问被拒绝。 rnrnASP.NET 未被授权访问所请求的<em>资源</em>。请考虑授予 ASP.NET 请求标识访问此<em>资源</em>的权限。ASP.NET 有一个在应用程序没有模拟时使用的基进程标识(通常,在 IIS 5 上为 MACHINE\ASPNET,在 IIS 6 上为网络服务)。如果应用程序正在通过 模拟,则标识将为匿名用户(通常为 IUSR_MACHINENAME)或经过身份验证的请求用户。 rnrn若要授予 ASP.NET 对<em>文件</em>的写访问权,请在<em>资源</em>管理器中右击该<em>文件</em>,选择“属性”,然后选择“安全”选项卡。单击“<em>添加</em>”<em>添加</em>适当的用户或组。突出显示 ASP.NET 帐户,选中所需访问权限对应的框。rnrn源错误: rnrnrn行 29: rn行 30: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Clickrn行 31: Dim fs As FileStream = New FileStream("c:/11/a.doc", FileMode.Open)rn行 32: Dim fs2 As FileStream = New FileStream("c:/11/2.doc", FileMode.Create)rn行 33: Dim br As BinaryReader = New BinaryReader(fs)rn rnrn源<em>文件</em>: c:\inetpub\wwwroot\WebWord\WebForm1.aspx.vb 行: 31 rnrn堆栈跟踪: rnrnrn[UnauthorizedAccessException: 对路径“c:\11\a.doc”的访问被拒绝。]rn System.IO.__Error.WinIOError(Int32 errorCode, String str) +393rn System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath, Boolean bFromProxy) +888rn System.IO.FileStream..ctor(String path, FileMode mode) +52rn WebWord.WebForm1.Button1_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\WebWord\WebForm1.aspx.vb:31rn System.Web.UI.WebControls.Button.OnClick(EventArgs e)rn System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)rn System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)rn System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)rn System.Web.UI.Page.ProcessRequestMain()rnrn rnrnrn--------------------------------------------------------------------------------rn版本信息: Microsoft .NET Framework 版本:1.1.4322.573; ASP.NET 版本:1.1.4322.573 rnrn我的c:\11 <em>文件</em>夹已经为asp.net用户赋予了完全控制权限了,<em>为什么</em>还会这样?
大家帮我看看这是为什么
我在Visual Studio 2005里,用ActiveSync来同步模拟器rn教程上说rn 1、打开 Visual Studio 2005 rn 2、单击 工具 - 连接设备 ,在平台下,选择Windows CE,在Devices 下选择CHS Windows Mobile 5.0 Pocker PC R2 Emulatorrn[img=http://images.cnblogs.com/cnblogs_com/greatandforever/p2.JPG][/img]rnrnrn但是我找不到windows cern[img=http://hi.csdn.net/attachment/201102/26/4621320_1298732904LLOD.jpg][/img]rnWindows Mobile 6 Professional SDK 和Windows Mobile 5.0 Pocket PC SDK都已经安装了
大家帮我看看这是为什么????
a1.xlst:rnrnrnrnrnrnrnrnrnrnrna1.xmlrnrnrnrnpara1rnpara2rnpara3rnpara4rn rnrna1.xml运行之后,既不报错,但也没出项如期的结果,这是为何??rn我用的是msxml3.dllrnrn
大家帮我看看这个,为什么
#includernrnclass Pointrnrnpublic:rn int x;rn int y;rnrn Point()rn rn x=0;rn y=0;rn rn Point(int a,int b)rn rn x=a;rn y=b;rn rn ~Point()rn void output()rn rn cout<
大家帮我看看为什么多了....
1.htmrnrnrnrn creating an elementrnrnrnrnrnrn rnhello1 domrnhello2 domrnhello3 domrnrnrnhello11 domrnhello22 domrnhello32 domrnrnrnrn rnrnrnrn结果中<em>为什么</em>会多了rnnodename:#textrntype:3rn数量:0rnrn
大家帮我看看为什么不对
这是我刚写的一个验证码程序,不知<em>为什么</em>,最后一行代码最是报错,希望大哥大姐们能帮帮小弟我.谢谢谢了.rnrnprivate void Page_Load(object sender, System.EventArgs e)rn rn Bitmap newBitmap = new Bitmap(36,16,PixelFormat.Format32bppArgb);rn System.Drawing.Graphics g = System.Drawing.Graphics.FromImage(newBitmap);rn g.FillRectangle(new SolidBrush(Color.White),new Rectangle(0,0,36,16));rn System.Drawing.Font textFont = new Font("Times new Roman",10);rn System.Drawing.RectangleF rectangle = new RectangleF(0,0,36,16);rn Random rd = new Random();rn int valationNo = 1000 + rd.Next(8999);rn g.FillRectangle(new SolidBrush(Color.BurlyWood),rectangle);rn g.DrawString(valationNo.ToString(),textFont,new SolidBrush(Color.Blue),rectangle);rn newBitmap.Save(Server.MapPath("img")+"\\19.gif",ImageFormat.Gif);rn
qt添加资源添加背景图片
一,创建<em>资源</em><em>文件</em>  选中项目,<em>添加</em>新<em>文件</em>------》QT----》QT  Resource file ----》choose 名称随便取,但自己要清楚这个是用来干嘛的,填好后下一步 二,往<em>资源</em><em>文件</em>中<em>添加</em><em>资源</em> 打开<em>资源</em><em>文件</em> 右击选择  open in editor 选择<em>添加</em>---》<em>添加</em>前缀(随便取,但  /  不可少)---》在选择<em>添加</em><em>文件</em>---》找到要<em>添加</em>的<em>文件</em>路径即可...
Qt添加资源
Qt<em>添加</em><em>资源</em>记性不好,记一下 <em>添加</em>图片等<em>资源</em>时,在工程三右键后<em>添加</em>Qt Resource File 设置名字完成后 <em>添加</em>前缀后再<em>添加</em><em>文件</em> 然后就可以使用了,使用类似于:QPushButton{background-image: url(:/new/prefix1/png/bk.png);} QPushButton{border-image:url(:/new/prefix1/p
大家帮忙看看为什么logo图片显示不出来
<em>文件</em>是包含一个top.asp的头<em>文件</em>的,logo什么的都包括在这<em>里面</em>,方便其间我给<em>大家</em>看IE里的源<em>文件</em>好了rn"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">rnrnrnrnrnrnrn rn rn rn rn rnrnrnrn 寻卡网 -- fhgfghfrn rn rn rn rn rn rn rn rn rnrnrn rn rnrnrnrnrnrnrnrnrn就是这个地方logo.jpg显示<em>不出来</em>就是这个地方logo.jpg显示<em>不出来</em>就是这个地方logo.jpg显示<em>不出来</em>就是这个地方logo.jpg显示<em>不出来</em>就是这个地方logo.jpg显示<em>不出来</em>就是这个地方logo.jpg显示<em>不出来</em>就是这个地方logo.jpg显示<em>不出来</em>rndiv id="Head">rn rn rn rnrn 首页rn 关于我们rn rn 收藏夹rn rn 退出rn rn 您好,adminrn rn
为什么不能加载系统的位图资源呢?
我查msdn的Windows GDI函数LoadBitmap。上面说:rnAn application can use the LoadBitmap function to access predefined bitmaps. To do so, the application must set the hInstance parameter to NULL and the lpBitmapName parameter to one of the following values.rnBitmap name Bitmap namernOBM_BTNCORNERS OBM_OLD_RESTORErnOBM_BTSIZE OBM_OLD_RGARROWrnOBM_CHECK OBM_OLD_UPARROWrnOBM_CHECKBOXES OBM_OLD_ZOOMrnOBM_CLOSE OBM_REDUCErnOBM_COMBO OBM_REDUCEDrnOBM_DNARROW OBM_RESTORErnOBM_DNARROWD OBM_RESTOREDrnOBM_DNARROWI OBM_RGARROWrnOBM_LFARROW OBM_RGARROWDrnOBM_LFARROWD OBM_RGARROWIrnOBM_LFARROWI OBM_SIZErnOBM_MNARROW OBM_UPARROWrnOBM_OLD_CLOSE OBM_UPARROWDrnOBM_OLD_DNARROW OBM_UPARROWIrnOBM_OLD_LFARROW OBM_ZOOMrnOBM_OLD_REDUCE OBM_ZOOMDrnrnBitmap names that begin with OBM_OLD represent bitmaps used by 16-bit versions of Windows earlier than 3.0.rnrnFor an application to use any of the OBM_ constants, the constant OEMRESOURCE must be defined before the Windows.h header file is included.rnrn 然后我在一个对话框中<em>添加</em>一个按钮<em>资源</em>,定义一个相应的控件变量m_Btn1.rn在OnInitDialog函数加入这样一句代码:rnm_Btn1.SetBitmap(::LoadBitmap(NULL,OBM_ZOOMD));// OBM_ZOOMD为系统一个位图<em>资源</em>rnrn结果却出现OBM_ZOOMD没有定义的错误。那么如何<em>加载</em>系统的位图<em>资源</em>呢?rn
大家帮我看看为什么Image.getWidth(this)为什么要this?
[b]import java.awt.*;rnimport java.io.*;rnimport javax.imageio.*;rnimport javax.swing.*;rnrn/**rn * @version 1.33 2007-04-14rn * @author Cay Horstmannrn */rnpublic class ImageTestrnrn public static void main(String[] args)rn rn EventQueue.invokeLater(new Runnable()rn rn public void run()rn rn ImageFrame frame = new ImageFrame();rn frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);rn frame.setVisible(true);rn rn );rn rnrnrn/**rn * A frame with an image componentrn */rnclass ImageFrame extends JFramernrn public ImageFrame()rn rn setTitle("ImageTest");rn setSize(DEFAULT_WIDTH, DEFAULT_HEIGHT);rnrn // add component to framernrn ImageComponent component = new ImageComponent();rn add(component);rn rnrn public static final int DEFAULT_WIDTH = 300;rn public static final int DEFAULT_HEIGHT = 200;rnrnrn/**rn * A component that displays a tiled imagern */rnclass ImageComponent extends JComponentrnrn public ImageComponent()rn rn // acquire the imagern tryrn rn image = ImageIO.read(new File("blue-ball.gif"));rn rn catch (IOException e)rn rn e.printStackTrace();rn rn rnrn public void paintComponent(Graphics g)rn rn if (image == null) return;rnrn int imageWidth = image.getWidth(this);rn int imageHeight = image.getHeight(this);rnrn // draw the image in the upper-left cornerrnrn g.drawImage(image, 0, 0, null);rn // tile the image across the componentrnrn for (int i = 0; i * imageWidth 0) g.copyArea(0, 0, imageWidth, imageHeight, i * imageWidth, jrn * imageHeight);rn rnrn private Image image;rnrn
flash加载问题,麻烦大家帮我看看
var muLu:Loader=new Loader();rnvar swfURL:String="目录(3).swf";rnvar swfURLReq:URLRequest=new URLRequest(swfURL);rnmuLu.load(swfURLReq);rn rnvar container:Sprite=new Sprite();rnrnaddChild(container);rn rnrnmuLu.contentLoaderInfo.addEventListener(Event.COMPLETE,muLuLoaded);rnfunction muLuLoaded(event:Event):voidrn muLu.contentLoaderInfo.removeEventListener(Event.COMPLETE,muLuLoaded);rn var loadmc=muLu.content;rn container.addChild(loadmc);rnrn我的代码是这么写的写在flash的第一帧上,于是运行时就开始无限<em>加载</em>,我想问下如何让他只<em>加载</em>一次,在不需观看者有任何操作的情况下。
为什么呢 图片显示不出来??
我JSp页面中有如下代码[code=HTML]rn rn rn rn rn 您的相片是:rn rn rn rn rn rn rn rn rn 修改相片rn rn rn rn rn rn rnrn[/code]rnrn初始化的图片能在myeclipse的视图和预览中显示出来,但真的通过IE 访问就不行了 这要怎么解决 rn还有个问题就是 我想让客户端预览自己准备上传的图片 我哪个javascript有没错误,有的话如何更改
为什么显示不出来呢???
我用的是一个OMNIHTTPD的WEB服务器和PHP语言开发的一个网站,别的程序都能在网页上显示,可是编的一个显示图片的网页,能够在本地的机子上访问,而且也能够显示出来,但是在别的机子上却显示<em>不出来</em>,本人实在是想<em>不出来</em>是哪里的问题,哪个高手能帮忙???谢谢!!!!
大家帮我看看为什么我打不开当前目录下的文件夹里的文件
当这样写的时候:pfile.open("1.txt",ios::in|ios::binary);可以打开当前目录下的1.txt<em>文件</em>,可是我想要把<em>文件</em>放在一个Text<em>文件</em>夹<em>里面</em>,于是我这样写: pfile.open("//Text//1.txt",ios::in|ios::binary);却打不开了。rn 而且如果当前目录下的1.txt没有删的话,就算//Text//1.txt,打开的还是当前目录下的txt,不是Text<em>里面</em>的txt,这是<em>为什么</em>呀?rnrn
为什么运行不出来呢?
#includernusing namespace std;rnstruct Piontrn void setxy(double a,double b )rn x=a; y=b;rn void display()rn cout<
为什么运行不出来呢?
以下程序<em>为什么</em>运行<em>不出来</em>,难道LINUX 下没有conio.h? rn #include rn #include rnint main() rn rn int i; rn for(i=0;i ); rn getch(); rn rn return 0; rn
为什么读取不出来呢?
string userName = Request["username"];rn string pwd = Request["pwd"];rn string constr = ConfigurationManager.ConnectionStrings["RegisterConnection"].ConnectionString;rn SqlConnection sql = new SqlConnection(constr);rn sql.Open();rn string selectsql = "SELECT mastername, masterpwd FROM master";rn Console.Write(selectsql);
为什么编译不出来
int main()rnrnconst int count=10;rnint areas[count];rnmemset(areas,0,count*sizeof(int));rnputs("please input 10 areas:");rnfor(int i=0;i
为什么退不出来呢?
#include rn#include rnusing namespace std;rn rnint main()rnrn string temp;rn do rn cout << "input string: " ;rn cin >> temp;rn cout << temp << endl;rn while (!temp.empty());rn cout << "Bye!" << endl;rnrn按理我根据我的while循环我在直接输入回车后(空字符串啦)rn<em>为什么</em>不结束 do while呢?好像要模拟<em>文件</em>结束才行哪。。。。
为什么打印不出来
#includernmain()rnrn int i,j,k;rn for(i=7;i);rn rnrn[img=https://img-bbs.csdn.net/upload/201605/15/1463314978_41651.png][/img]rn<em>为什么</em>打印<em>不出来</em>呢(一个到三角形状)rn
帮我看看怎么查询不出来
写一个显示报刊的分类的页面,rn用的是vs2008,代码如下。默认出现的是“青少教育”下的分类报刊(这个已经正常),但是我在网址中输入?fenlei=青少教育 就不行就是说QueryStringParameter,好像没有起作用。rnrn存储过程rnALTER PROCEDURE [dbo].[畅销报刊分类显示] rn @分类名称 nvarchar(255)rnASrnBEGINrn SELECT * from [dbo].[2009年畅销报刊] where 分类=@分类名称rnENDrnrn页面代码:rnrnrnrnrnrnrnrnrn 无标题页rnrnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrnrn
为什么VS2003添加bmp资源不成功呢?
<em>为什么</em>VS2003<em>添加</em>bmp<em>资源</em>总是按了导入没反应呢?
Qt加载资源的方法
Qt   提供的读取图片的三种方式各有不同: 1、 直接读取:速度相对较慢,图片多时要进行频烦的IO 操作。 2、 QRC方式读取:把图片一次性读入内存,避免了IO操作,但是对内存的压力比较大。           有的时候由于设备内存比较小,导致内存崩溃。 3、 动态<em>加载</em>:就是先把QRC<em>文件</em>通过rcc  -binary *.qrc –o *.rcc 生成相应的RCC<em>文件</em>。    
为什么ImageLoad加载图片加载不出来
String imageUri = "http://example.com/image.png"; // from Web String imageUri = "file:///mnt/sdcard/image.png"; // from SD card String imageUri = "content://media/external/audio/albumart/13"; // from
大家帮我看看这个winform下绑定combobox为什么显示不出来呢?
private void getclass()rn rn rn SqlConnection conn=new SqlConnection(ConfigurationSettings.AppSettings["ConnectionString"]); rn conn.Open();rn string sql="select top 2 * from [class]";rn SqlDataAdapter dap=new SqlDataAdapter(sql,conn);rn DataSet ds=new DataSet();rn dap.Fill(ds,"classid");rn newtype.DataSource=ds.Tables["classid"].DefaultView;rn newtype.DisplayMember="type";rn newtype.ValueMember="class";rn rnrn然后再创立load 里调用了 getclass rn但是combobox还是没有用,<em>里面</em>什么都么有rn<em>大家</em><em>帮我</em><em>看看</em>,我这个combobox绑定了之后怎么不显示的阿?
大家帮我看这,为什么这里无法添加新闻内容呢?
代码是这样的.rnrnrn rn rnrn
qt为什么写了界面显示不出来
刚刚学<em>qt</em>,手一抖把mainWindow的ui->setupUi(this);给删除了。
帮我看看这段css代码为什么不好用呢 大家提点意见
rn dgdgfdfdddgdrnrn我的子div我给设置padding-top:50px;它应该是相对父div向下移50px;但是显示的效果却是 子div的高度增加了50px 子div上边距并没有离父div50px; 问题出现在哪了????
大家帮我看看,这个为什么会出错误呢~
IF EXISTS (SELECT name FROM sysobjects rn WHERE name = 'ComputeJX' AND type = 'P')rn DROP PROCEDURE ComputeJXrnGOrnrnCREATE PROCEDURE ComputeJXrn @OutResult Numeric(14,2) OutputrnASrnBeginrn Declare @TheStr Varchar(1000)rn Set @TheStr = 'Select @TheResult = 8*7*5 'rn Exec sp_executesql @TheStr,'@TheResult Numeric(14,2) output',@TheResult = @OutResult outputrnEndrnrnDeclarern @OutResult1 Numeric(14,2)rnExec ComputeJX @OutResult1 output
大家帮我看看这段代码为什么错误呢?
public class Book rnrn /**rn * @param argsrn */rn rn class Rockrn Rock()rn System.out.println("creating rock");rn rn rn rn public static void main(String[] args) rn // TODO Auto-generated method stubrnrn for (int i=0;i<10;i++)rn new Rock();rn rn rn rn rnrnrnrnrn显示错误在new Rock();部分,不知道<em>为什么</em>rn
大家帮我看看这里的值为什么是空呢?
function hqhtml() rn rn var optionshtml = "";rn $.get("../Ashx/GetSource.ashx", , function (data) rn optionshtml = data;rn , "text");rn return optionshtml;rn rn就是以上这段代码,optionshtml并没有如愿的获取到GetSource.ashx的内容。这是<em>为什么</em>呢?rn(data是一串字符串,肯定是获取到的,但是我给optionshtml 赋值之后,return回去的却是个空置?rn各位大神,可有想法?
求助,为什么点加不上去呢 大家帮我看看代码!
rnSet Lyr = FrmDrawAndShow.Map1.Layers.Item(1)rnrnSet FeaFac = FrmDrawAndShow.Map1.FeatureFactoryrnrn'设置点对象样式rnrnrnWith NewStylern .SymbolType = miSymbolTypeBitmaprn .SymbolFont = 20rn rn .SymbolBitmapSize = 20rn rn .SymbolBitmapTransparent = Falsernrn .SymbolBitmapName = "BANK1-32.BMP"rnEnd Withrnrnrnrnrnx = 497645.918rny = 4239635.866rnFrmDrawAndShow.Map1.AutoRedraw = False '禁止自动刷新rnrnFrmDrawAndShow.Map1.Layers.Item(1).Editable = True '置当前图层为可写状态rnrn'创建点对象rnrnPnt.Set x, yrnrn'<em>添加</em>进当前图层rnrnSet Ftr = FeaFac.CreateSymbol(Pnt, NewStyle) '创建符号rnrn'Set Ftr = FeaFac.CreateSymbol(Pnt, FrmDrawAndShow.Map1.DefaultStyle)rnrn'<em>添加</em>rnrn'FrmDrawAndShow.Map1.Lyr.AddFeature FtrrnrnFrmDrawAndShow.Map1.Layers.Item(1).AddFeature FtrrnrnFrmDrawAndShow.Map1.RefreshrnrnFrmDrawAndShow.Map1.AutoRedraw = TruernrnrnFrmDrawAndShow.Map1.Layers.Item(1).Editable = Falsern
大家帮我看看相互传递的时候,为什么为null呢
package ch7;rnrnpublic class Demo1 rn rn public String a;rn rn rn void a()rn a="public";rn rn rn rn rn rnrnrnrnrn------rnpackage ch7;rnrnpublic class Demo2 rnrn /**rn * @param argsrn */rnrn rn public static void main(String[] args) rn // TODO Auto-generated method stubrn rn Demo1 demo1=new Demo1();rn rn System.out.println(demo1.a);rnrn rnrnrnrnrn但是运行出来显示为nullrnrn
大家帮我看看这段代码为什么得出来的结果不对呢?
package ch5;rnrn class Cleanser rnrn /**rn * @param argsrn */rn private String s=new String("Cleanser");rn rn public void append(String a)rn s =s + a;rn rn rn public void dilute()rn append("dilute");rn rn rn public void apply()rn append(" apply");rn rn rn public void scrub()rn append(" scrub");rn rn rn public String tostring()rn return s;rn rn rn rn public static void main(String[] args) rn // TODO Auto-generated method stubrn rn Cleanser x=new Cleanser();rn x.dilute();rn System.out.println(x);rn rnrn rnrnrnrn最后输出的是:rnch5.Cleanser@de6cedrnrn不知道<em>为什么</em>错误了。谢谢了rn
getRow()为什么一直是0呢(有代码大家帮我看看)
String count = "select count(*) from XT_UnitSet";rnGetOaDb god = new GetOaDb();rnConnection cnn = god.getConnection();rnPreparedStatement pstmt = cnn.prepareStatement(count);rnResultSet resultSet = pstmt.executeQuery();rnint a = resultSet.getRow(); rn这是<em>为什么</em>啊,不论这个表里是否有数据,getRow()一直是0.
大家帮我看看用jmail发邮件为什么出错呢?
代码如下:rnjmail.MessageClass smtp=new jmail.MessageClass();rnsmtp.AddRecipient("xhn_21199@163.com","hzc","");rnsmtp.ContentType="text/html";rnsmtp.From="xhn_1879.student@sina.com";rnsmtp.FromName="asdfas";rnsmtp.Charset="gb2312";rnsmtp.ReplyTo="xhn_1879.student@sina.com";rnsmtp.Subject="你好";rnsmtp.Priority=3;rnsmtp.MailServerUserName="";rnsmtp.MailServerPassWord="";rnsmtp.Logging=true;rnsmtp.Send("smtp.sina.com.cn",false);rnsmtp.Close();rn出错信息为:rnThe message was undeliverable. All servers failed to receive the message
大家帮我看看 为什么不能更新数据呢 怪事了
dim idd,news_title,author,news_type,new_contentrn idd=Request.QueryString("newsid")rn news_title=trim(Request("news_title"))rn author=trim(Request("qk_writer"))rn news_type=trim(Request("news_class"))rn new_content=Request("content")rn sql="select * from qk_news where news_id="&iddrn rs.open sql,conn,1,3rn rs("news_title")=news_title '*********************rn rs("author")=authorrn rs("news_type")=news_typern rs("new_content")=new_contentrn rs.updatern response.Write(" ")rn response.Write("信息修改成功!请返回")rn response.end()rnrn程序一执行到*号那行就好像进入死循环一样 ,怪了事了<em>大家</em><em>帮我</em><em>看看</em>
大家帮我看看,这段代码为什么不能执行呢??
已知jj=1,ii=2:rnrn rn
大家帮我看看?怎么得不出结果呢?
实现波拉德算法rn具体算法是:选一个整数B,求B 的阶乘,再作为2的幂求,2的B的阶乘次方。算出来的数作为a。再求a减1与一个大整数n的最大公约数。求出的数如果大于1小于n则所选的B正确。rn——————————————————————————————————————rn
大家帮我看看这是什么问题呢?
Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnjavax.servlet.ServletExceptionrn org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:516)rn org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:423)rn org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)rn org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)rn org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:710)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rnrnrnroot cause rnrnjava.lang.NullPointerExceptionrn com.action.TalkAction.insertTalk(TalkAction.java:25)rn sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn java.lang.reflect.Method.invoke(Method.java:585)rn org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:276)rn org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:196)rn org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)rn org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)rn org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)rn org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:710)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rnrn
大家帮我看看批量处理怎么不行呢?
程序代码如下:rnCallableStatement cstmt = con.prepareCall("call P_CONSTRACT_ACC_ADD(?,?,?,?)");rnfor (int i=0;i
大家帮我看看这是什么问题呢?
enter.jsprnrn 网上考试系统rnrnrn网上考试系统rn rn rn rn 学号: rn rn 密码: rn rn rn rn rn rnrnrnrnrnrnrnrnrncheck.jsprnrnrnrn运行到check.jsp总是出错:rntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperException: Unable to compile class for JSP: rnrnrnAn error occurred at line: 20 in the jsp file: /keshe/check.jsprnConnection cannot be resolved to a typern17: elsern18: rn19: Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");rn20: Connection con=DriverManager.getConnection("jdbc:odbc:test","","");rn21: Statement smt=con.createStatement();rn22: String sql="select * from student where 学号='"+number+"'";rn23: ResultSet rs=smt.executeQuery(sql);rnrnrnAn error occurred at line: 20 in the jsp file: /keshe/check.jsprnDriverManager cannot be resolvedrn17: elsern18: rn19: Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");rn20: Connection con=DriverManager.getConnection("jdbc:odbc:test","","");rn21: Statement smt=con.createStatement();rn22: String sql="select * from student where 学号='"+number+"'";rn23: ResultSet rs=smt.executeQuery(sql);rnrnrnAn error occurred at line: 21 in the jsp file: /keshe/check.jsprnStatement cannot be resolved to a typern18: rn19: Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");rn20: Connection con=DriverManager.getConnection("jdbc:odbc:test","","");rn21: Statement smt=con.createStatement();rn22: String sql="select * from student where 学号='"+number+"'";rn23: ResultSet rs=smt.executeQuery(sql);rn24: if(!rs.next())rnrnrnAn error occurred at line: 23 in the jsp file: /keshe/check.jsprnResultSet cannot be resolved to a typern20: Connection con=DriverManager.getConnection("jdbc:odbc:test","","");rn21: Statement smt=con.createStatement();rn22: String sql="select * from student where 学号='"+number+"'";rn23: ResultSet rs=smt.executeQuery(sql);rn24: if(!rs.next())rn25: rn26: errortype=3;rnrn请<em>大家</em>指教?
资源文件加载方式
传统方式   public void doGet(HttpServletRequest request, HttpServletResponse response)throws ServletException, IOException { InputStream is = new FileInputStream(&quot;src/config.properties&quot;); Prope...
为什么脚本执行很慢呢,帮我看看
脚本如下rn$(":radio[id*='rdlFirstPoint']").each(function () rn $(this).click(function () rn $("[id$='hidFirstScore']").val("0");rn $(":radio[id*='rdlFirstPoint']").each(function () rn if ($(this).is(":checked")) rn var sum = 0;rn sum = sum + parseInt($(this).val());rn $("[id$='hidFirstScore']").val(parseInt($("[id$='hidFirstScore']").val()) + parseInt($(this).val()));rn sum = $("[id$='hidFirstScore']").val();rn $("[id$='txtTP']").val(sum);rn rn );rn );rn ); rnrn这里用的RadioButtonListrnrn rn 受教育情况与应聘职位匹配度rn rn rn rn rn rn rn rn rn rn rn rn 工作经验与应聘职位匹配度rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn 简历与应聘职位的匹配度rn rn rn rn rn rn rn rn rn rn rn rn 形象气质、态度举止rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn 沟通与语言表达能力rn rn rn rn rn rn rn rn rn rn rn rn 团队协作精神、服务至上理念rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn 工作主动性、企业向心力rn rn rn rn rn rn rn rn rn rn rn rn 总分数rn rn rn rn rn
Qt之加载QSS文件
简述 Qt中关于样式的使用很常见,为了降低耦合性(与逻辑代码分离),我们通常会定义一个QSS<em>文件</em>,然后编写各种部件(例如:QLable、QLineEdit、QPushButton)的样式,最后使用QApplication进行样式<em>加载</em>,这样,就可以让整个应用程序就共享同一个样式。 简述 新建QSS<em>文件</em> 编写QSS <em>加载</em>QSS ...
Qt 翻译文件加载
翻译<em>文件</em>的<em>加载</em>主要有两部分,一个是自己的,另外一个是<em>qt</em>自带的,可以在<em>qt</em>的安装目录下找到!(<em>qt</em>_zh_CN.qm) 一般情况下,我们会把翻译<em>文件</em>都放在一个固定的目录下,下面分享一个接口,指定目录下遍历<em>加载</em>翻译<em>文件</em>! //<em>加载</em>翻译<em>文件</em> bool setTranslator(const QString strPath) { bool bRet = false; if (st
Qt加载qss文件
试验环境:visual studio 2015,Qt5.7.1   1.在自己建立的<em>qt</em>项目的Resource目录下新建一个文本<em>文件</em>,改名为*.qss 例如下面随便编写一个qss,试验运行后是否生效 mainwindow.qss QDockWidget{ border: 20px solid rgb(255,0,0); background: blue; } QWidget{ b...
帮我看看为什么会报错呢
package org.lxh.info.vo;rnrnimport java.util.Date;rnrnpublic class Peron rn private int pid;rn private String name;rn private int age;rn private Date birthday;rn private String address;rn rn public Peron()rn super();rn rn rn public [color=#FF0000]Person(int pid,String name,int age,Date birthday,String address[/color])rn this.pid = pid;rn this.name = name;rn this.age = age;rn this.birthday = birthday;rn this.address = address;rn rnrn public int getPid() rn return pid;rn rnrn public void setPid(int pid) rn this.pid = pid;rn rnrn public String getName() rn return name;rn rnrn public void setName(String name) rn this.name = name;rn rnrn public int getAge() rn return age;rn rnrn public void setAge(int age) rn this.age = age;rn rnrn public Date getBirthday() rn return birthday;rn rnrn public void setBirthday(Date birthday) rn this.birthday = birthday;rn rnrn public String getAddress() rn return address;rn rnrn public void setAddress(String address) rn this.address = address;rn rn rnrn红线部分报错,原因是Return type for the method is missing 怎么解决啊 我想写向构造方法内传入参数
帮我看看,为什么validata验证呢
用struts,做了一个validator验证,用户名和密码是否为空。可是每次都好像不走验证过程。rnrnindex.jsp代码:rnrn rn rn rn rn rn rn rn rn OKrn rn rnrn=============================================rnLogForm.java代码rnrnpackage com.gh.Form;rnrnimport org.apache.commons.validator.ValidatorAction;rnrnpublic class LogForm extends ValidatorAction rnrn public LogForm() rn rn rn private String name;rnrn private String pwd;rnrn public String getName() rn return name;rn rnrn public void setName(String name) rn this.name = name;rn rnrn public String getPwd() rn return pwd;rn rnrn public void setPwd(String pwd) rn this.pwd = pwd;rn rnrnrn=============================================================rnrnstruts-comfig.xml代码:rnrnrnrnrnrn rn rn rn rn rn rn rn rn rn rn rnrn rnrn rn rn rn rnrnrn============================================================rnrnlogAction代码:rnrnpackage com.gh.Action;rnrnimport javax.servlet.http.HttpServletRequest;rnimport javax.servlet.http.HttpServletResponse;rnrnimport org.apache.struts.action.Action;rnimport org.apache.struts.action.ActionForm;rnimport org.apache.struts.action.ActionForward;rnimport org.apache.struts.action.ActionMapping;rnrnpublic class logAction extends Action rnrn @Overridern public ActionForward execute(ActionMapping mapping, ActionForm arg1, HttpServletRequest arg2, HttpServletResponse arg3) throws Exception rn // TODO Auto-generated method stubrn return mapping.findForward("b");rn rn rn rnrn===============================================rnrnvalidation.xml代码:rnrnrnrnrn rn rn rn rn rn rn rn rn rn rn rnrnrn===============================================================rnApplicationResources.properties代码:rnrnname=namernpassword=passwordrnrnerrors.required=0not empty
帮我看看为什么border没有了呢?
[url=http://www.shdog.net/dianping/]http://www.shdog.net/dianping/[/url]rn”推荐商家“和“最新点评”栏右边的border都没有了。这两个div都统一设置过border:1px solid #DDDDDD;rnrn奇怪了
兄弟们帮我看看啊,为什么文件的输出是空白呢??
程序很简单,以vector中的字符串作为<em>文件</em>名绑定到<em>文件</em>流,然后以此<em>文件</em>为中介输出字符。rn<em>为什么</em>输出为空呢?rn请高手解惑。rn#include rn#include rn#include rn#include rn#include rnusing namespace std;rnrnint main(int argc, char *argv[])rnrn vector file;rn file.push_back("this.txt");rn file.push_back("is.txt");rn file.push_back("me.txt");rn ifstream input;rn ofstream output;rn char a='s';rn vector::const_iterator it=file.begin();rn while(it!=file.end())rn string s;rn input.open(it->c_str());rn output.open(it->c_str());rn output<>s; rn cout<
Qt加载QSS文件
QSS:Qt Style Sheets简介QSS和CSS一样 通过样式表控制控件和容器的样式,采用QSS控制可以很容易的实现换肤和美化界面的功能 创建QSS<em>文件</em>在帮助里搜索<em>qt</em> style,可以打开qss的使用例子 QApplication, QMainWindow, QFrame, QDockWidget, QDialog, QFileDialog, QMessageBox, QRadioButt
QT 中添加资源图片
一、在<em>qt</em> creator 项目中<em>添加</em>图片<em>资源</em>项目->Add new ->Qt Resource file,这样就<em>添加</em>了一个.qrc<em>文件</em>了。双击它,先add一个prefix,然后你才能再add file,把要add的图片选中,就okay了。此时选中你add的图片,可以给它起个别名Alias,这样做程序中用这个别名就可以引用这个图片了。.qrc的格式如下welcome.jpg其中prefix指定前缀,alias指定程序中引用的符号,如本例可用":/welcome"来引用<em>文件</em>"/welcome/welcome.
xloadtree 在ext Viewport 里面加载不出来
[code=JScript]rn //选项卡面板rn var tabs = new Ext.TabPanel(rn region:'center',rn resizeTabs:true, // turn on tab resizingrn minTabWidth: 115,rn tabWidth:135,rn enableTabScroll:true,rn margins : '5 5 5 0',rn layoutOnCardChange:true,rn defaults: autoScroll:true,rn activeItem : 0,rn items:gridrn );rn rn /***************主面板****************/rn new Ext.Viewport(rn layout:'border',rn renderTo:Ext.getBody(),rn items: [rn region: 'west',rn title :'网点区域列表',rn width:800,rn collapsible:true,rn autoLoad: '/Util/Tree.aspx'rn ,rn tabsrn ]rn );rnrnrn[/code]rnrntree.aspxrnrn[code=JScript]rnrn webFXTreeConfig.rootIcon = "/Images/xp/totalicon.png";rn webFXTreeConfig.openRootIcon = "/Images/xp/allmanagemenu.png";rn webFXTreeConfig.folderIcon ="/Images/xp/totalicon.png";rn webFXTreeConfig.openFolderIcon ="/Images/xp/allmanagemenu.png";rn webFXTreeConfig.fileIcon = "/Images/xp/file.png";rn webFXTreeConfig.lMinusIcon ="/Images/xp/Lminus.png";rn webFXTreeConfig.lPlusIcon ="/Images/xp/Lplus.png";rn webFXTreeConfig.tMinusIcon ="/Images/xp/Tminus.png";rn webFXTreeConfig.tPlusIcon ="/Images/xp/Tplus.png";rn webFXTreeConfig.iIcon ="/Images/xp/I.png";rn webFXTreeConfig.lIcon ="/Images/xp/L.png";rn webFXTreeConfig.tIcon ="/Images/xp/T.png";rnrn var tree = new WebFXTree("订单管理");rntree.add(new WebFXTreeItem("Tree Item 1"));rntree.add(new WebFXLoadTreeItem("区域", "/Util/Area.aspx"));rntree.add(new WebFXTreeItem("Tree Item 4"));rntree.write(); rn[/code]rnrn在页面中不显示出来。<em>为什么</em>?
.lib里面怎么添加资源
一个.lib的工程,<em>里面</em><em>添加</em>了一个<em>资源</em>,rn但我看生成的.lib<em>文件</em>好像不带<em>资源</em>的,只不过是在同个目录里生成一个.res,rn然后把这个.lib链接到其他工程里的时候,这个<em>资源</em>并没有一起链接进去,rn应该怎么设呢?rn只能把这个<em>资源</em>直接<em>添加</em>到最终的工程里?
大家帮我看看这个超级链接为什么下载不了文件?
rnrn rn testrnrnrnrn building.dbfrn rnrnrnrnIE提示“请求的站点不可用,或找不到,请以后再试”。如果把“building.dbf”重新改名为rn"building.rar",链接语句也改为building.dbf,则可以下载。rn
为什么我的文件打开总是错误?大家帮我看看
/*打开<em>文件</em>模块*/rnvoid dakai(char text[])rn system("cls"); rn FILE *fp;rn char ch,pd;rn char name[30];rn int i=0;rn printf("输入A:确定打开<em>文件</em>(未保存的数据将会丢失) 任意键:返回主菜单");rn fflush(stdin);rn pd=getchar();rn if (pd=='A'||pd=='a')rn printf("请输入要打开<em>文件</em>名字(例如c:\\a.txt)");rn scanf("%s",name);rn fp=fopen(name,"r");rn if (fp==NULL)rn printf("打开<em>文件</em>失败\n");rn system("PAUSE"); rn rn else rn cs(text);rn while(!feof(fp))rn rn ch=fgetc(fp);rn if(ch!=EOF)rn text[i]=ch;rn i++;rn rn rn ntext=i; rn fclose(fp);rn printf("<em>文件</em>读取成功\n<em>文件</em>内容为\n");rn dayin(text,1); rn rn rnrn哪里有问题?
大家帮我看看为什么这个计数器文件不能使用
一个图形计数器软件,源码如下:rnrnrn将它插在网页中的源码如下:rnrnrnrnrn你是第 位来客rnrnrn但运行这个网页<em>文件</em>后却不会显示计数图标,我将图标放在同目录的images目录下,请<em>大家</em>指教,哪里成就呢?是那个计数器<em>文件</em>语法错误吗?恳请<em>大家</em>指教。
大家帮我看看下面两个文件为什么会出错
http://wap.yivan.net/index.asprn这个页面错误内容如下:rn无法显示 XML 页。 rn使用 XSL 样式表无法查看 XML 输入。请更正错误然后单击 刷新按钮,或以后重试。 rnrnrn--------------------------------------------------------------------------------rnrn名称以无效字符开头。处理<em>资源</em> 'http://wap.yivan.net/index.asp' 时出错。第 1 行,位置: 2 rnrnrn-^rnrnrn这个<em>文件</em>的代码如下:rnrnrnrnrnrn rn rnrn rn 返回上级 rn rnrnrnrnrnrnrn说明:这个<em>文件</em>在我本地的服务器运行的很好,也可以用手机模拟器得到正确的输出!rn但是在免费的服务器空间就不行了!rnrnrnrn第二个<em>文件</em>是:rnhttp://wap.yivan.net/index1.asprn在浏览器中可以显示xml的东西,但是在手机模拟器中不能显示,说“Unsupported Content-Type:applic ation/octet-stream”rnrn代码如下:rn rn rnrn rn rn Hello world! rn rnrn
大家帮我看看为什么不执行到这个文件,急!!
我要把图片和文字混合输出,图片和文字都存在sqlserver中,按照通常的说法,输出图片要独立用一个asp<em>文件</em>,我把这个<em>文件</em>照着例子抄了下来,起名为GetImg.asprn然后在另一asp<em>文件</em>(起名为图文显示.asp)中写rnrn但它就是不执行GetImg.asp中的代码(或者说,根本没进去执行getimg.asp),但网上和书上都推荐这种写法的,何故?如果改写?很急,谢谢rnrn完整的代码如下,请各位多多指点。rn1.Table的脚本:rnif exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tblImageNews]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)rndrop table [dbo].[tblImageNews]rnGOrnrnCREATE TABLE [dbo].[tblImageNews] (rn [fldID] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,rn [fldImg] [image] NULL ,rn [fldHead] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,rn [fldText] [ntext] COLLATE Chinese_PRC_CI_AS NULL rn) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]rnGOrn2.图文显示.asp的代码rnrnrnrnrnrn 图文显示rn rnrnrnrn rn rn rn rn rn rn rn rn rn rn rn rn rnrnrnrn3.GetImg.asp代码rnrnrn0 thenrn response.contenttype="image/gif"rn response.binarywrite ador.fields("fldImg").getChunk(ador.fields("fldImg").actualSize)rn end ifrn end ifrn ador.closern set ador=nothingrn adoc.closern set adoc=nothingrnend subrn%>rn
为什么会出错?请大家帮我看看
void __fastcall TForm1::Button1Click(TObject *Sender)rnrn AnsiString sSql;rn sSql = "CREATE TABLE" +Edit1->Text+ "(编号 int IDENTITY (1, 1) NOT NULL PRIMARY KEY CLUSTERED,姓名 varchar(64) NULL , 职称 varchar(64) NULL )";rn Query1->Close();rn Query1->SQL->Clear();rn Query1->SQL->Add(sSql);rn Query1->ExecSQL();rnrn弹出错误:Invaild use of keyword.rn Token:IDENTITY rn Line Number:1.
大家帮我看看为什么页面无法显示???
我做了一个页面,使用了iframe,可是在有些机子上无法显示,而在我的机子上正常,<em>为什么</em>?rn页面地址:http://www.scesp.com/sichuan/manager/noadmin.jsprn
大家帮我看看这个程序为什么不行
import javax.servlet.*;rnimport javax.servlet.http.*;rnimport java.util.*;rnimport java.io.*;rnrnpublic class vote extends HttpServlet implements Runnable rn long candidate1=0;rn long candidate2=0;rn long candidate3=0;rn boolean stopflag=false;rn Thread t;rn public void init()rn t=new Thread(new vote());rn t.start();rn rn rn rn public void run() rn while(true)rn candidate1=100;rn candidate2=(long) (candidate2+ Math.random()*10);rn candidate3=(long) (candidate3+ Math.random()*10);rnSystem.out.println("c1:"+candidate1);rnrn try rn Thread.sleep(1000);rn catch (InterruptedException e) rn e.printStackTrace();rn rn rn rn rnrn rn rn rn public void doGet(HttpServletRequest request,HttpServletResponse response)rn throws ServletException,IOExceptionrn response.setContentType("text/html"); rn response.setHeader("refresh","5");rn PrintWriter out =response.getWriter();rnSystem.out.println(candidate1);rn out.println(rn ""+rn " show vote rate! "+rn ""+rn " Vote"+rn new Date()+" "+rn "candidate1:"+candidate1+" "+rn "candidate2:"+candidate2+" "+rn "candidate3:"+candidate3+" "+rn ""rn rn );rn rn rnrnrnrn就是线程<em>里面</em>产生的数在doGet<em>里面</em>读不到
大家帮我看看,为什么插入不了记录
SqlDataSource5.InsertParameters.Clear()rn strsql = "insert into unitsInfo(unitsID,unitsName,unitsAdd,unitsAdd,county,owner,linkman,tel,fax,characters,industry,state) values('" & strID & "','" & Me.txtDWname.Text & "','" & Me.txtDWAddress.Text & "','" & Me.ddlQu.Text & "','" & Me.txtFaRen.Text & "','" & Me.txtLianXiRen.Text & "',,'" & Me.txtTel.Text & "','" & Me.txtFax.Text & "','" & Me.ddlXingZhi.Text & "','" & Me.ddlHangYe.Text & "',1)"rn SqlDataSource5.InsertCommand = strsqlrnrn执行这段代码无效果,也不报错,就是插入不进去
大家帮我看看,这个错误提示是为什么
rn实时错误'-2147467259 (80004005)'rn找不到可安装地 ISAMrnrn我只有30分可送,<em>大家</em>一定要<em>帮我</em>啊?我现在特别着急!!rnrn
SVS(Software Virtualization Solution)_v2.1.3062(官方中文版_附使用说明)下载
SVS(Software Virtualization Solution)是赛门铁克公司出品的一款应用程序虚拟化软件。 如果不知道什么是应用程序虚拟化的朋友,可以百度一下。如果你用过“云端”的话,应该会比较容易理解应用程序虚拟化的定义。 但SVS比云端的内核要先进得多,不存在拖慢系统的问题。而且开发的时间也比云端要早得多。是一款真正成熟的应用程序虚拟化软件。 PS:SVS唯一不足的地方是不能在WIN7下运行,但后续版本SWV(Symantec Workspace Virtualization)已经解决了这个问题。 有兴趣的朋友可以下载SVS的升级版本SWV http://download.cs 相关下载链接:[url=//download.csdn.net/download/shumii26s/3103710?utm_source=bbsseo]//download.csdn.net/download/shumii26s/3103710?utm_source=bbsseo[/url]
MC68HC908GP32单片机908GP32下载
MC68HC908GP32单片机908GP32完整中文介绍 相关下载链接:[url=//download.csdn.net/download/a10164/4087860?utm_source=bbsseo]//download.csdn.net/download/a10164/4087860?utm_source=bbsseo[/url]
PRD成品-轻博客下载
PRD原型,关于轻博客的,可以用于Axure初学者 相关下载链接:[url=//download.csdn.net/download/slxiaohao/4186808?utm_source=bbsseo]//download.csdn.net/download/slxiaohao/4186808?utm_source=bbsseo[/url]
我们是很有底线的