Android运行报错 求大神指导

12-01 20:49:04.872: D/AndroidRuntime(2097): Shutting down VM
12-01 20:49:04.872: W/dalvikvm(2097): threadid=1: thread exiting with uncaught exception (group=0xb4addb90)
12-01 20:49:04.922: E/AndroidRuntime(2097): FATAL EXCEPTION: main
12-01 20:49:04.922: E/AndroidRuntime(2097): Process: com.doudou, PID: 2097
12-01 20:49:04.922: E/AndroidRuntime(2097): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.doudou/com.doudou.DadoudouActivity}: java.lang.ClassNotFoundException: Didn't find class "com.doudou.DadoudouActivity" on path: DexPathList[[zip file "/data/app/com.doudou-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.doudou-1, /system/lib]]
12-01 20:49:04.922: E/AndroidRuntime(2097): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2102)
12-01 20:49:04.922: E/AndroidRuntime(2097): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2226)
12-01 20:49:04.922: E/AndroidRuntime(2097): at android.app.ActivityThread.access$700(ActivityThread.java:135)
12-01 20:49:04.922: E/AndroidRuntime(2097): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1397)
12-01 20:49:04.922: E/AndroidRuntime(2097): at android.os.Handler.dispatchMessage(Handler.java:102)
12-01 20:49:04.922: E/AndroidRuntime(2097): at android.os.Looper.loop(Looper.java:137)
12-01 20:49:04.922: E/AndroidRuntime(2097): at android.app.ActivityThread.main(ActivityThread.java:4998)
12-01 20:49:04.922: E/AndroidRuntime(2097): at java.lang.reflect.Method.invokeNative(Native Method)
12-01 20:49:04.922: E/AndroidRuntime(2097): at java.lang.reflect.Method.invoke(Method.java:515)
12-01 20:49:04.922: E/AndroidRuntime(2097): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:777)
12-01 20:49:04.922: E/AndroidRuntime(2097): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:593)
12-01 20:49:04.922: E/AndroidRuntime(2097): at dalvik.system.NativeStart.main(Native Method)
12-01 20:49:04.922: E/AndroidRuntime(2097): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.doudou.DadoudouActivity" on path: DexPathList[[zip file "/data/app/com.doudou-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.doudou-1, /system/lib]]
12-01 20:49:04.922: E/AndroidRuntime(2097): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
12-01 20:49:04.922: E/AndroidRuntime(2097): at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
12-01 20:49:04.922: E/AndroidRuntime(2097): at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
12-01 20:49:04.922: E/AndroidRuntime(2097): at android.app.Instrumentation.newActivity(Instrumentation.java:1061)
12-01 20:49:04.922: E/AndroidRuntime(2097): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2093)
12-01 20:49:04.922: E/AndroidRuntime(2097): ... 11 more
12-01 20:49:07.812: I/Process(2097): Sending signal. PID: 2097 SIG: 9

suannai0314
鹳狸媛 楼主的这个问题解决了么?下边的答案能解决问题么?如果可以麻烦点击答案旁的√采纳哦~如果没有也可以将自己的答案贴上然后进行采纳的。
接近 6 年之前 回复

24个回答

1.删除bin再编译调试
2.项目Properties>Java Build Path>Order and export,调整library顺序,把其他library都提前试试

yuanquan323
yuanquan323 正解~
4 年多之前 回复
crazy1235
月盡天明 ok
接近 5 年之前 回复
Jary163
Crazy_soldier 确实 问题解决了
5 年多之前 回复

Properties>Java Build Path>Order and export 中的android-support-v4.jar选中

标准答案:clean一把,
一把先看Caused by: java.lang.ClassNotFoundException: 还有空指针异常,都是去clean一把,非常的有效果

12-01 20:49:04.922: E/AndroidRuntime(2097): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.doudou.DadoudouActivity" on path: DexPathList[[zip file "/data/app/com.doudou-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.doudou-1, /system/lib]]

com.doudou.DadoudouActivity 这个Activity没有找到,看看是否在manifest.xml里面注册。

Manifest.xml 中声明了吗?仔细看看声明是否正确

如果这个DadoudouActivity没有找到,(1)看看是不是这个程序的AndroidManifest.xml文件里面没有生命这个activity。(2)或者看看这个是不是调用的另外一个应用啊,然后没有安装这个apk,所以找不到。或者安装了这个apk,这个apk的清单文件里面没有声明此activity。

java.lang.ClassNotFoundException 类没有找到啊,应该缺少了依赖库

如果这个DadoudouActivity没有找到,可能有以下三种情况:(1在这个程序的AndroidManifest.xml文件里面没有注册这个activity。(2)看看这个是不是调用的另外一个应用,而另一个应用没有安装,所以找不到。或者安装了那个应用了,可是那个应用里面没有声明此activity。(3)如果说是导入的另一个应用程序jar包的话,有可能你在打jar是把DadoudouActivity这个类给遗漏了,所以提示找不到这个类。

我之前AndroidManifest.xml 里面的application 属性设置里面android:label="@string/app_name" 写成了android:name="@string/app_name" 也会报类似的错误

去看看manifast 的xml 中对应 的类名 和 包名写对嘛

共24条数据 1 3 尾页
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
xcode7beta6 运行报错 ,求大神指导
rn在Xcode6.4上跑的好好的代码,用Xcode7beta6运行就报错rn*** Assertion failure in -[UIApplication _runWithMainScene:transitionContext:completion:],rn/BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3505.4/UIApplication.m:3267rnrn本人小白,请教为何出错?我在别的Xcode版本能用啊,另外Xcode7也能运行别的demo不出错。。。
求大神指导求大神指导求大神指导
1>main.obj : error LNK2019: 无法解析的外部符号 "public: __thiscall CSpeechRecognition1::CSpeechRecognition1(void)" (??0CSpeechRecognition1@@QAE@XZ),该符号在函数 "public: __thiscall main::main(class CWnd *)" (??0main@@QAE@PAVCWnd@@@Z) 中被引用rn1>main.obj : error LNK2001: 无法解析的外部符号 "public: virtual int __thiscall main::OnInitDiaLog(void)" (?OnInitDiaLog@main@@UAEHXZ)rn1>main.obj : error LNK2019: 无法解析的外部符号 "public: virtual __thiscall CSpeechRecognition1::~CSpeechRecognition1(void)" (??1CSpeechRecognition1@@UAE@XZ),该符号在函数 "public: virtual __thiscall main::~main(void)" (??1main@@UAE@XZ) 中被引用rn1>D:\tttttt\RecordSpeech\Debug\RecordSpeech.exe : fatal error LNK1120: 3 个无法解析的外部命令
真机运行报错!!!求大神解决问题
[img=https://img-bbs.csdn.net/upload/201604/25/1461562092_581149.png][/img]rnrn电脑系统从10.11升级到10.11.4真机就运行不了,其他项目都可以,就这个以前在真机上跑过得项目不可以,一直报这个错误rnThe application does not have a valid signature.
代码运行报错,求大神指点
filename、fennei_name、gc_name是从帆软报表中传递过来的参数,是中文的,先转换成cjkEkcode,再转换回去,不然就无法下载,代码如下:rn rn rn<%@page language="java" contentType="application/x-msdownload" pageEncoding="gb2312" %>rn<% rn response.reset(); rn response.setContentType("application/x-download"); rn String downloadfile = "E:/文件/"+gc_name+"/"+fennei_name+"/"+filename; //设置下载文件的路径及名称 rn response.setHeader("Content-disposition","attachment; filename="+gc_name+"_"+fennei_name+"_"+filename); //设rnrn置下载文件的名称 rn java.io.OutputStream outp = null; rn java.io.FileInputStream in = null; rn try rn rn outp = response.getOutputStream(); rn in = new java.io.FileInputStream(downloadfile); rn rn byte[] b = new byte[1024]; rn int i = 0; rn rn while((i = in.read(b)) > 0) rn rn outp.write(b, 0, i); rn rn outp.flush(); rn rn catch(Exception e) rn rn System.out.println("Error!"); rn e.printStackTrace(); rn rn finally rn rn if(in != null) rn rn in.close(); rn in = null; rn rn if(outp != null) rn rn outp.close(); rn outp = null; rn rn rn%> rnrn错误如下:rntype 异 常 报 告rnrn信 息rnrn描 述 服务器遇到内部错误,无法满足这个访问请求rnrn异 常rnrnorg.apache.jasper.JasperException: 无法编译JSPrnrnAn error occurred at line: 8 in the jsp file: /downfile.jsprnGenerated servlet error:rngc_name cannot be resolvedrnrnAn error occurred at line: 8 in the jsp file: /downfile.jsprnGenerated servlet error:rnfennei_name cannot be resolvedrnrnAn error occurred at line: 8 in the jsp file: /downfile.jsprnGenerated servlet error:rnfilename cannot be resolvedrnrnAn error occurred at line: 8 in the jsp file: /downfile.jsprnGenerated servlet error:rngc_name cannot be resolvedrnrnAn error occurred at line: 8 in the jsp file: /downfile.jsprnGenerated servlet error:rnfennei_name cannot be resolvedrnrnAn error occurred at line: 8 in the jsp file: /downfile.jsprnGenerated servlet error:rnfilename cannot be resolvedrnrnrn org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn起 因rnrnorg.apache.jasper.JasperException: 无法编译JSPrnrnAn error occurred at line: 8 in the jsp file: /downfile.jsprnGenerated servlet error:rngc_name cannot be resolvedrnrnAn error occurred at line: 8 in the jsp file: /downfile.jsprnGenerated servlet error:rnfennei_name cannot be resolvedrnrnAn error occurred at line: 8 in the jsp file: /downfile.jsprnGenerated servlet error:rnfilename cannot be resolvedrnrnAn error occurred at line: 8 in the jsp file: /downfile.jsprnGenerated servlet error:rngc_name cannot be resolvedrnrnAn error occurred at line: 8 in the jsp file: /downfile.jsprnGenerated servlet error:rnfennei_name cannot be resolvedrnrnAn error occurred at line: 8 in the jsp file: /downfile.jsprnGenerated servlet error:rnfilename cannot be resolvedrnrnrn org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)rn org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)rn org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:414)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:297)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)rn org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn注 意 完整的起因在Apache Tomcat/5.5.20里。
求大神指导指导一下
[img=https://img-bbs.csdn.net/upload/201505/27/1432717312_644686.jpg][/img][b][img=https://img-bbs.csdn.net/upload/201505/27/1432717340_762836.jpg][/img][img=https://img-bbs.csdn.net/upload/201505/27/1432717366_514225.jpg][/img][/b]
android图像处理问题,求大神指导,急!!!
最近在做一个图像放缩的毕业设计,求各位大神指点一下,以下是我遇到的问题:rn rn 我对图像放缩的了解是这样的,每个图片都可以看做的一个矩阵,矩阵里有很多的像素点,当rn 一个图片进行放大时,当然是矩阵的长和宽都要扩大,原有图像的像素点显然不够填充放大后的矩阵,rn 这就要求用的一系列的差值算法,对新矩阵进行像素插值。rn 于是一个问题产生了,现在手机的像素动不动就是500万以上,如果真的要对这样的图像进行放rn 大,那么无论插值算法多简单,这个计算量都要吓死人吧,(因为我对这样的图片进行操作后程序直接rn 卡掉),但是为什么安卓系统自带的相册程序,对拍下的照片就能够做到很快的放缩呢?是不是因为它并rn 没有使用对像素的插值算法,而是直接对矩阵进行了操作?是不是因为像素足够多,在手机这么小的屏幕上rn 根本不需要进行像素的插值呢?如果是,那么系统里自带程序对图片矩阵有进行了怎样的变换呢? 如果不是,rn 请告诉我系统用的是什么方法? rn rn我在网上搜了很多关于Android图像放缩的程序例子,都有这么一句代码:Matrix.postSacle(),rn 从而实现了对图片的快速放缩,我想知道,这个函数对图片的矩阵究竟做了什么操作?这个函数的内部不需要rn 进行像素插值吗?
求大神指导,android listview问题
现在要做一个界面,就是30行,每行都可以输入一个数,我打算用listview做,然后在最后添加一个button。可是做出了效果是每一行都有一个button,求大神指导一下怎么把最后添加button。谢谢。[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/monkey/20.gif][/img]
初学者求大神指导
小弟初学Java遇到一个难题,求大神指导。rnrn题目:从键盘输入三个数,并赋值,比较之后按从小到大的顺序输出。
求大神指导
小弟用人大金仓是,建立了一个模式mystudy,然后我怎么将建好的一个选课表SC,保存到mystudy这个模式下呢,再有就是怎样可以将表格的打开结果保存到电脑桌面哦??
求大神指导~~
//对象创建rn shopmodel.GoodsBean goods=new shopmodel.GoodsBean();rn ToolBean.DB db=new ToolBean.DB();rn String info="";rn String forward="";rn String ext="";rn String url="upload/";rn String picurl="/uploadimage";rn FileInputStream imagefile=null;rn PreparedStatement pstmt=null;rn Connection conn=null;rn rn //处理上传的图片文件rn SmartUpload su=new SmartUpload(); //创建新的上传对象rn long maxsize=200*1024; //设置每个上传文件的大小为200KB rn tryrn su.initialize(this.getServletConfig(),request,response);//初始化rn rn su.setMaxFileSize(maxsize); //限制上传文件的大小rn su.setDeniedFilesList("exe,bat,jsp,htm,html,,");//设定禁止上传的文件。禁止上传罗列的那些及没有扩展名的文件。rn su.setAllowedFilesList("jpg,JPG,gif,GIF"); //设定允许上传的格式rn su.upload(); //上传文件rn //将上传文件保存到指定目录rn su.save(picurl,SmartUpload.SAVE_VIRTUAL);rn rn //获取上传的文件,因为只上传了一个文件,所以可直接获取 rn com.jspsmart.upload.File myfile=su.getFiles().getFile(0);rn if(!myfile.isMissing()) rn String filename=myfile.getFilePathName(); //获取完整的带路径的文件名rn imagefile=new FileInputStream(filename);rn //获取用户提交的其他数据rn Request req=su.getRequest(); rn String cid=req.getParameter("cid");rn String cname=req.getParameter("cname");rn String number=req.getParameter("cnumber");rn String price=req.getParameter("cprice");rn String cintro=req.getParameter("cintro");rn //转换数量和价格的格式rn int cnumber=Integer.parseInt(number);rn float cprice=Float.parseFloat(price);rn rn //将图片存到upload文件夹中,并重命名rn ext=myfile.getFileExt();rn Calendar cal=Calendar.getInstance();rn String newfilename=String.valueOf(cal.getTimeInMillis());rn //String saveurl=request.getRealPath("/")+url;rn //saveurl+=newfilename+"."+ext;rn rn //设置存到数据库中的路径rn String cimage=url+newfilename+"."+ext;rn rn rn rn// java.io.File iofile = new java.io.File(filename); rn// java.io.FileInputStream fis = new java.io.FileInputStream(iofile); rn //写入到GoodsBean中rn// goods.setCid(cid);rn// goods.setCname(cname);rn// goods.setCnumber(cnumber);rn// goods.setCprice(cprice);rn// goods.setCintro(cintro);rn// goods.setCimage(cimage);rn rn int cmark=0;rn rn String sql="insert into goods(cid,cname,cnumber,cprice,cintro,cimage,cpic) values (?,?,?,?,?,?,?)";rn rn conn=db.createConn();rn conn.setAutoCommit(true);rn pstmt=conn.prepareStatement(sql); rn pstmt.setString(1,cid);rn pstmt.setString(2,cname);rn pstmt.setInt(3,cnumber);rn pstmt.setFloat(4,cprice);rn pstmt.setString(5,cintro);rn pstmt.setString(6,cimage);rn //pstmt.setBinaryStream(parameterIndex, x, length)rn //pstmt.setBinaryStream(6,fis,419);rn pstmt.setBinaryStream(7,imagefile,imagefile.available());rn //cmark=pstmt.execute();rn cmark=pstmt.executeUpdate();rn if(cmark==1)rn //myfile.saveAs(saveurl,SmartUpload.SAVE_PHYSICAL); //su.SAVE_PHYSICALrn info="添加成功!";rn //conn.commit();rn forward="c_manager.jsp";rn elsern info="添加失败!";rn forward="c_add.jsp";rn rn rn elsern info="请选择要上传的文件!";rn forward="c_add.jsp";rn rn rn catch(Exception e)rn e.printStackTrace();rn info="添加异常!";rn forward="c_add.jsp";rn finallyrn try pstmt.close();catch(Exception e)rn try imagefile.close();catch(Exception e)rn try conn.close();catch(Exception e)rn rnrn rn request.setAttribute("info",info);rn RequestDispatcher rd=request.getRequestDispatcher(forward);rn rd.forward(request,response);rn rn rnrnrn为什么我添加的时候出现添加异常????
求c#大神指导
我想指导为什么创建不了用户 (NGUSER)?????rnrnrnrnrn private void btnSetNg_Click(object sender, EventArgs e)rn rn string strSql = "create user NGUSER identified by '9003' default tablespace std; grant connect,resource to NGUSER ; grant create any sequence to NGUSER ; grant create any table to NGUSER ; grant delete any table to NGUSER ; grant insert any table to NGUSER ; grant select any table to NGUSER ; grant unlimited tablespace to NGUSER ; grant execute any procedure to NGUSER ; grant update any table to NGUSER ; grant create any view to NGUSER ; "; rn rn //"CREATE USER NGUSER PROFILE DEFAULT IDENTIFIED BY 9003 DEFAULT TABLESPACE USERS TEMPORARY TABLESPACE TEMP ACCOUNT UNLOCK;GRANT CREATE ANY TABLE TO NGUSER;GRANT UNLIMITED TABLESPACE TO NGUSER;GRANT CONNECT TO NGUSER;GRANT RESOURCE TO NGUSER;";rn rn tryrn rn Form1.oclConnection.Open();rn rn OracleCommand oclCommand = new OracleCommand(strSql, Form1.oclConnection);rn rnrn MessageBox.Show("创建成功");rnrn /*rn rn rn create user NGUSER identified by 9003; grant create session to NGUSER; grant create table to NGUSER; grant create tablespace to NGUSER; grant create view to NGUSER; rn rn */rnrnrn rn catch (Exception ex)rn rnrn MessageBox.Show("SQL语句出错!\n" + strSql.ToString() + "\n请检查:\n" + ex.ToString());rnrn rn finallyrn rn Form1.oclConnection.Close();rn rn FormEnterDatabase_Load(this,e);rn rn
求jstree大神指导
用jstree插件,遇到一个问题 ,使用jstree checkbox的时候,选中父节点下的所有子节点,父节点才是selected状态,才能拿到父节点的id。 我想知道  怎么只选中父节点下的一个或多个子节点 ,也能拿到父节点的id。如下图 父节点是半选状态  也能拿到父节点和子节点的id。 求大神指导~
求大神指导,十万火急!!!
如何只用action调用别的网站的查找功能查找地址所在位置?n如:输入自定义接口http://127.0.0.1:8080/WebManagePlatform/inter/hc_ip.do?ip=121.199.26.86n就可以查找ip地址所在位置。n求大神指导........n
求大神指导啊
我们需要弹出一个窗口,输入一行字符串,统计其中的单词个数rnrnrn#includern /*输入一行字符串,统计其中有多少单词,单词之间用空格分隔开*/rnvoid main() rnrn char string[81];rn int i,num=0,word=0;rn char c;rn rn gets(string);rn for(i=0;(c=string[i])!='\0';i++)rn if(c=='')rn word=0;rn rn else if(word==0)rn rn word=1;rn num++;rn rn rnprintf("There are %d words in the line.\n",num);rn
菜鸟求大神指导
C++builder 中如何实现树状图,就好像迅雷这样子的[img=https://img-bbs.csdn.net/upload/201308/17/1376730023_128130.jpg][/img]
myeclipse6.5求大神指导
安装了myeclipse6.5版本的,比如在写System.的时候不能带出System这个类中的方法,求解决办法。已重新安装。
求大神指导!!!
五月 05, 2017 3:41:57 下午 org.apache.tomcat.util.digester.SetPropertiesRule beginrn警告: [SetPropertiesRule]Server/Service/Engine/Host/Context Setting property 'source' to 'org.eclipse.jst.jee.server:manage' did not find a matching property.rn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Server version: Apache Tomcat/7.0.77rn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Server built: Mar 28 2017 16:01:48 UTCrn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Server number: 7.0.77.0rn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: OS Name: Windows 7rn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: OS Version: 6.1rn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Architecture: amd64rn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Java Home: C:\Program Files\Java\jre7rn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: JVM Version: 1.7.0_04-b22rn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: JVM Vendor: Oracle Corporationrn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: CATALINA_BASE: E:\yangran\code\manage1\.metadata\.plugins\org.eclipse.wst.server.core\tmp0rn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: CATALINA_HOME: D:\develop\apache-tomcat-7.0.77rn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:51933rn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Dcatalina.base=E:\yangran\code\manage1\.metadata\.plugins\org.eclipse.wst.server.core\tmp0rn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Dcatalina.home=D:\develop\apache-tomcat-7.0.77rn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Dwtp.deploy=E:\yangran\code\manage1\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebappsrn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Djava.endorsed.dirs=D:\develop\apache-tomcat-7.0.77\endorsedrn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Dfile.encoding=GBKrn五月 05, 2017 3:41:57 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEventrn信息: Loaded APR based Apache Tomcat Native library 1.2.12 using APR version 1.5.2.rn五月 05, 2017 3:41:57 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEventrn信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].rn五月 05, 2017 3:41:58 下午 org.apache.catalina.core.AprLifecycleListener initializeSSLrn信息: OpenSSL successfully initialized (OpenSSL 1.0.2k 26 Jan 2017)rn五月 05, 2017 3:41:58 下午 org.apache.coyote.AbstractProtocol initrn信息: Initializing ProtocolHandler ["http-apr-8080"]rn五月 05, 2017 3:41:58 下午 org.apache.coyote.AbstractProtocol initrn信息: Initializing ProtocolHandler ["ajp-apr-8009"]rn五月 05, 2017 3:41:58 下午 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 1758 msrn五月 05, 2017 3:41:58 下午 org.apache.catalina.core.StandardService startInternalrn信息: Starting service Catalinarn五月 05, 2017 3:41:58 下午 org.apache.catalina.core.StandardEngine startInternalrn信息: Starting Servlet Engine: Apache Tomcat/7.0.77rn五月 05, 2017 3:41:59 下午 org.apache.catalina.core.ContainerBase startInternalrn严重: A child container failed during startrnjava.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/manage]]rn at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source)rn at java.util.concurrent.FutureTask.get(Unknown Source)rn at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1119)rn at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:819)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1571)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1561)rn at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)rn at java.util.concurrent.FutureTask.run(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rnCaused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/manage]]rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:162)rn ... 7 morernCaused by: java.lang.IllegalArgumentException: The servlets named [manage1.Single2Search] and [manage1.Single2Search2] are both mapped to the url-pattern [/Single2Search] which is not permittedrn at org.apache.catalina.deploy.WebXml.addServletMapping(WebXml.java:293)rn at org.apache.catalina.startup.ContextConfig.processAnnotationWebServlet(ContextConfig.java:2458)rn at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2133)rn at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:2094)rn at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:2086)rn at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1303)rn at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:888)rn at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:388)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5522)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)rn ... 7 morernrnrn
求大神指导!谢谢!!
一张Excel表:序号 姓名 时间 备注 第1周描述rn 1 小明 9.15 .. ....rn 2 小红 9.15 aa dddddrn ...rn要把这个界面做到Delphi中去,可以简单修改查询,现在要在数据库里建2张表,第1张表包含前面的几列内容:序号、姓名、时间、备注,还有1张表就是每周描述,因为每周都要更新,请问第2张表怎么建,界面里的“第1周描述”可以变成第2(3、4、5...)周描述,还是也建到第一张表里去,2张的话Delphi的query中SQL语句怎么写???
求大神指导!!~~急
Linux挂载存储服务器失败rn存储服务器已经映射到主机,Linux可以发现,并且登录.rn[root@master /]# iscsiadm -m session -o show rntcp: [17] 10.1.1.2:3260,3 iqn.1986-03.com.ibm:2145.cunchu02.node1 (non-flash)rntcp: [18] 10.1.1.21:3260,3 iqn.1986-03.com.ibm:2145.cunchu01.node2 (non-flash)rntcp: [19] 10.1.1.1:3260,3 iqn.1986-03.com.ibm:2145.cunchu01.node1 (non-flash)rn使用的是multipath多路径,配置如下rnblacklist rn devnode "^sda"rnrndefaults rn user_friendly_names yesrn path_grouping_policy multibusrn failback immediatern no_path_retry failrnrn可是在fdisk和partitions中没有发现,我不知道哪里出现错误了rnrn[root@master /]# cat /proc/partitions rnmajor minor #blocks namernrn 8 0 1169920000 sdarn 8 1 204800 sda1rn 8 2 1048576 sda2rn 8 3 1168664576 sda3rn 253 0 52428800 dm-0rn 253 1 4194304 dm-1rn 253 2 1112039424 dm-2rn 7 0 2880 loop0rn 7 1 488281 loop1rn 253 3 204800 dm-3rn[root@master /]# fdisk -lrnWARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.rnrnDisk /dev/sda: 1198.0 GB, 1197998080000 bytes, 2339840000 sectorsrnUnits = sectors of 1 * 512 = 512 bytesrnSector size (logical/physical): 512 bytes / 512 bytesrnI/O size (minimum/optimal): 262144 bytes / 262144 bytesrnDisk label type: gptrnDisk identifier: 795E086A-1F39-4BD1-B589-FB71E3F07825rnrnrn# Start End Size Type Namern 1 2048 411647 200M EFI System EFI System Partitionrn 2 411648 2508799 1G Microsoft basic rn 3 2508800 2339837951 1.1T Linux LVM rnrnDisk /dev/mapper/cl-root: 53.7 GB, 53687091200 bytes, 104857600 sectorsrnUnits = sectors of 1 * 512 = 512 bytesrnSector size (logical/physical): 512 bytes / 512 bytesrnI/O size (minimum/optimal): 262144 bytes / 262144 bytesrnrnrnDisk /dev/mapper/cl-swap: 4294 MB, 4294967296 bytes, 8388608 sectorsrnUnits = sectors of 1 * 512 = 512 bytesrnSector size (logical/physical): 512 bytes / 512 bytesrnI/O size (minimum/optimal): 262144 bytes / 262144 bytesrnrnrnDisk /dev/mapper/cl-home: 1138.7 GB, 1138728370176 bytes, 2224078848 sectorsrnUnits = sectors of 1 * 512 = 512 bytesrnSector size (logical/physical): 512 bytes / 512 bytesrnI/O size (minimum/optimal): 262144 bytes / 262144 bytesrnrnYou must set cylinders.rnYou can do this from the extra functions menu.rnrnDisk /dev/loop0: 2 MB, 2949120 bytes, 5760 sectorsrnUnits = sectors of 1 * 512 = 512 bytesrnSector size (logical/physical): 512 bytes / 512 bytesrnI/O size (minimum/optimal): 512 bytes / 512 bytesrnDisk label type: dosrnDisk identifier: 0x00000000rnrn Device Boot Start End Blocks Id SystemrnrnDisk /dev/loop1: 499 MB, 499999744 bytes, 976562 sectorsrnUnits = sectors of 1 * 512 = 512 bytesrnSector size (logical/physical): 512 bytes / 512 bytesrnI/O size (minimum/optimal): 512 bytes / 512 bytesrnrnrnDisk /dev/mapper/vg1-data1: 209 MB, 209715200 bytes, 409600 sectorsrnUnits = sectors of 1 * 512 = 512 bytesrnSector size (logical/physical): 512 bytes / 512 bytesrnI/O size (minimum/optimal): 512 bytes / 512 bytesrnrnrnrn
新手求大神指导~~~
public class SimpleTypesrn public static void main(String[] args)rn System.out.printf("byte \t数值范围: %d ~ %d\n",Byte.MAX_VALUE, Byte.MIN_VALUE);rn System.out.printf("short \t数值范围:%hd ~ %hd\n",Short.MAX_VALUE, Short.MIN_VALUE);rn System.out.printf("int \t数值范围: %d ~ %d\n",Integer.MAX_VALUE, Integer.MIN_VALUE);rn System.out.printf("long \t数值范围:%ld ~ %ld\n",Long.MAX_VALUE, Long.MIN_VALUE);rn System.out.printf("char \t数值范围: %c ~ %c\n",Character.MAX_VALUE, Character.MIN_VALUE);rn System.out.printf("float \t数值范围: %f ~ %f\n",Float.MAX_VALUE, Float.MIN_VALUE);rn System.out.printf("double \t数值范围:%lf ~ %lf\n",Double.MAX_VALUE, Double.MIN_VALUE);rn rn rnrn为啥char,float,double都不能用呢?我看过这三个都有MAX_VALUE和MIN_VALUE啊。。。求指导。。。rn运行结果如下:rnbyte 数值范围: 127 ~ -128rnshort 数值范围:7fffd ~ ffff8000drnint 数值范围: 2147483647 ~ -2147483648rnException in thread "main" java.util.UnknownFormatConversionException: Conversion = 'l'rn at java.util.Formatter$FormatSpecifier.conversion(Formatter.java:2606)rn at java.util.Formatter$FormatSpecifier.(Formatter.java:2634)rn at java.util.Formatter.parse(Formatter.java:2480)rn at java.util.Formatter.format(Formatter.java:2414)rn at java.io.PrintStream.format(PrintStream.java:920)rn at java.io.PrintStream.printf(PrintStream.java:821)rn at SimpleTypes.main(SimpleTypes.java:7)
oracle大神求指导
怎么同时执行查询语句和修改语句
急~~大神求指导
我现在在做一个注册登录,用vc#窗体编程,要求用户注册后信息写入txt,修改密码时需要匹配txt中的部分信息,如果匹配成功,可以修改密码;为什么匹配非汉字行的时候可以,匹配汉字行的时候不可以;而且有时候能匹配成功,有时候匹配不成功~~
求大神指导SQL
Public Function LoadEQPDailyReport(Optional ByVal AreaNo As String = defString, Optional ByVal EquipmentNo As String = defString, _rn Optional ByVal StartTime As Date = defDateTime, Optional ByVal EndTime As Date = defDateTime, Optional ByVal AdditionalXml As String = "") As Stringrn Dim cnnTemp As OleDb.OleDbConnectionrn Dim daTemp As OleDb.OleDbDataAdapterrn Dim dsTemp As DataSetrn Dim drTemp As OleDb.OleDbDataReaderrn Dim strSQL As Stringrn Dim StartEndTime As Doublern Dim Rows() As DataRowrn Tryrn '//Create connectionrn cnnTemp = objLic.CreateConnection(strConnectionString)rn strSQL = "Select * From tblEQPStateBasis Order By EquipmentState"rn cmmTemp = New OleDb.OleDbCommand(strSQL, cnnTemp)rn drTemp = cmmTemp.ExecuteReader()rn strSQL = " Select (Select ContainareaNo From tblSMDAreaRelation Where ObjectNo = Z.EquipmentNo And ObjectType = 2) AreaNo," & _rn " (Select EquipmentType From tblEQPEquipmentBasis Where EquipmentNo = Z.EquipmentNo) EquipmentType," & _rn " Z.EquipmentNo," & _rn " 0 Moves"rn StartEndTime = DateDiff(DateInterval.Second, StartTime, EndTime)rn Do While drTemp.Readrn If strDataBaseType = "oracle" Thenrn rn strSQL = strSQL & " ,Nvl(Round(( Select Sum(Least(A.EndTime,To_Date('" & Format(CDate(EndTime), "yyyy/MM/dd HH:mm:ss") & "','YYYY/MM/DD HH24:MI:SS')) -" & _rn " Greatest(A.StartTime,To_Date('" & Format(CDate(StartTime), "yyyy/MM/dd HH:mm:ss") & "','YYYY/MM/DD HH24:MI:SS')))*24*60*60" & _rn " From (Select EquipmentType, EquipmentNo, EquipmentState, StartTime, EndTime From tblEMSEquipmentStateLog" & _rn " UNION All" & _rn " Select EquipmentType, EquipmentNo, EquipmentState, StartTime, SysDate EndTime From tblEMSEquipmentState" & _rn " ) A" & _rn " Where A.StartTime <= to_date('" & Format(CDate(EndTime), "yyyy/MM/dd HH:mm:ss") & "','YYYY/MM/DD HH24:MI:SS')" & _rn " And A.EndTime > to_date('" & Format(CDate(StartTime), "yyyy/MM/dd HH:mm:ss") & "','YYYY/MM/DD HH24:MI:SS')" & _rn " And A.EquipmentState = " & drTemp("EquipmentState") & _rn " And A.EquipmentNo = Z.EquipmentNo" & _rn " Group By A.EquipmentNo, A.EquipmentState)/" & StartEndTime & "*100,2),0) """ & drTemp("StateName") & """"rn ElseIf DataBaseType = "mssql" Or DataBaseType = "msaccess" Thenrn strSQL = strSQL & " ,ISNull(Round((CAST((Select Sum(DateDiff(Second," & _rn " (Case" & _rn " When A.StartTime > '" & Format(CDate(StartTime), "yyyy/MM/dd HH:mm:ss") & "' Then A.StartTime" & _rn " Else '" & Format(CDate(StartTime), "yyyy/MM/dd HH:mm:ss") & "'" & _rn " End)," & _rn " (Case" & _rn " When A.EndTime < '" & Format(CDate(EndTime), "yyyy/MM/dd HH:mm:ss") & "' Then A.EndTime" & _rn " Else '" & Format(CDate(EndTime), "yyyy/MM/dd HH:mm:ss") & "'" & _rn " End)))" & _rn " From (Select EquipmentType, EquipmentNo, EquipmentState, StartTime, EndTime From tblEMSEquipmentStateLog" & _rn " UNION All" & _rn " Select EquipmentType, EquipmentNo, EquipmentState, StartTime, GetDate() EndTime From tblEMSEquipmentState" & _rn " ) A" & _rn " Where A.StartTime <= '" & Format(CDate(EndTime), "yyyy/MM/dd HH:mm:ss") & "'" & _rn " And A.EndTime > '" & Format(CDate(StartTime), "yyyy/MM/dd HH:mm:ss") & "'" & _rn " And A.EquipmentState = " & drTemp("EquipmentState") & _rn " And A.EquipmentNo = Z.EquipmentNo" & _rn " Group By A.EquipmentNo, A.EquipmentState) as float) /CAST(" & StartEndTime & " AS float))*100,2),0) " & drTemp("StateName")rn End Ifrn Looprn drTemp.Close()rn cmmTemp.Dispose()rn strSQL = strSQL & " From tblEQPEquipmentBasis Z" & _rn " Where Z.EquipmentNo Is Not Null"rn rn If AreaNo <> defString Thenrn strSQL = strSQL & " And (Select ContainareaNo From tblSMDAreaRelation Where ObjectNo = Z.EquipmentNo And ObjectType = 2) = '" & AreaNo & "'"rn End Ifrn rn If EquipmentNo <> defString Thenrn strSQL = strSQL & " And EquipmentNo In ('" & Replace(EquipmentNo, ",", "','") & "')"rn End Ifrn rn If AdditionalXml <> "" Thenrn '//additionalconditionrn strSQL = strSQL & SeparateAddXML_Condition(AdditionalXml)rn End Ifrn strSQL = strSQL & " Order By EquipmentNo"rn '//Select Datarn cmmTemp = New OleDb.OleDbCommand(strSQL, cnnTemp)rn daTemp = New OleDb.OleDbDataAdapter(cmmTemp)rn dsTemp = New DataSetrn daTemp.Fill(dsTemp, "EQPDailyReport")rn If strDataBaseType = "oracle" Thenrn strSQL = " Select EquipmentNo, Sum(B.GoodQty) Moves" & _rn " From tblWIPCont_Equipment A, tblWIPLotLog_Report B" & _rn " Where A.LogGroupSerial = B.LogGroupSerial" & _rn " And A.EndTime Is Not Null " & _rn " And A.EndTime >= To_Date('" & Format(CDate(StartTime), "yyyy/MM/dd HH:mm:ss") & "','YYYY/MM/DD HH24:MI:SS') " & _rn " And A.EndTime < To_Date('" & Format(CDate(EndTime), "yyyy/MM/dd HH:mm:ss") & "','YYYY/MM/DD HH24:MI:SS') " & _rn "Group By EquipmentNo"rn ElseIf DataBaseType = "mssql" Or DataBaseType = "msaccess" Thenrn strSQL = " Select EquipmentNo, Sum(B.GoodQty) Moves" & _rn " From tblWIPCont_Equipment A, tblWIPLotLog_Report B" & _rn " Where A.LogGroupSerial = B.LogGroupSerial" & _rn " And A.EndTime Is Not Null " & _rn " And A.EndTime >= '" & Format(CDate(StartTime), "yyyy/MM/dd HH:mm:ss") & "'" & _rn " And A.EndTime < '" & Format(CDate(EndTime), "yyyy/MM/dd HH:mm:ss") & "'" & _rn "Group By EquipmentNo"rn End Ifrn cmmTemp = New OleDb.OleDbCommand(strSQL, cnnTemp)rn drTemp = cmmTemp.ExecuteReader()rn Do While drTemp.Readrn Rows = dsTemp.Tables("EQPDailyReport").Select("EquipmentNo = '" & drTemp("EquipmentNo") & "'")rn If Rows.Length <> 0 Thenrn Rows(0).Item("Moves") = drTemp("Moves")rn End Ifrn Looprn drTemp.Close()rn cmmTemp.Dispose()rn '//Combine Return Valuern LoadEQPDailyReport = CombineXMLReturnValue("loadeqpdailyreport", "EQPDailyReport", _rn "DataSet", FormatXMLSchema(dsTemp.GetXmlSchema), dsTemp.GetXml, "")rn Catch e1 As Exceptionrn LoadEQPDailyReport = "fail"rn rn Throw 'New Exception("clsReport.LoadEQPDailyReport: " & e1.Message)rn Finallyrn Call objLic.CloseConnection(cnnTemp)rn If Not daTemp Is Nothing Thenrn daTemp.Dispose()rn End Ifrn If Not dsTemp Is Nothing Thenrn dsTemp.Dispose()rn End Ifrn End Tryrn End Functionrnrnrn谁能帮我从里面抠出最终的SQL来,用的是ORACLE数据库
求occi大神指导
我使用的是vs2012 orcale11g客户端 编译时出现链接错误:rn1>------ 已启动生成: 项目: ConnectDatabase, 配置: Release Win32 ------rnrn1> ConnectDatabase.cpprnrn1>ConnectDatabase.obj : error LNK2001: 无法解析的外部符号 "public: static class oracle::occi::Environment * __cdecl oracle::occi::Environment::createEnvironment(enum oracle::occi::Environment::Mode,void *,void * (__cdecl*)(void *,unsigned int),void * (__cdecl*)(void *,void *,unsigned int),void (__cdecl*)(void *,void *))" (?createEnvironment@Environment@occi@oracle@@SAPAV123@W4Mode@123@PAXP6APAX1I@ZP6APAX11I@ZP6AX11@Z@Z)rnrn1>ConnectDatabase.obj : error LNK2001: 无法解析的外部符号 "public: static void __cdecl oracle::occi::Environment::terminateEnvironment(class oracle::occi::Environment *)" (?terminateEnvironment@Environment@occi@oracle@@SAXPAV123@@Z)rnrn1>C:\Users\my\documents\visual studio 2012\Projects\ConnectDatabase\Release\ConnectDatabase.exe : fatal error LNK1120: 2 个无法解析的外部命令rn========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========rnrn代码如下:rn[code=c]rnrn// ConnectDatabase.cpp : 定义控制台应用程序的入口点。rn//rn#include "stdafx.h"rnrn#define WIN32COMMON //避免函数重定义错误rnrn#include rnrnusing namespace std;rnrnusing namespace oracle::occi;rnrnint main()rnrnrnrn Environment *env=Environment::createEnvironment();rnrn cout<<"success"<createConnection("bsm3", "bsm3", "BSM3");rnrn cout<<"conn success"<terminateConnection(conn);rnrn rnrn catch(SQLException& e)rnrn rnrn cout<
求大神指导?编译预处理
为什么要进行编译预处理?n编译预处理是怎么进行的?特别想知道这是怎么样一回事!
求大神指导怎么做
939. 占位~rn题目描述rn(0分中...)rn输入格式:rn占位rn输出格式:rn占位rn输入样例rn占位rn输出样例rn占位
求大神 指导
rn rnrn[img=https://img-bbs.csdn.net/upload/201603/30/1459302126_60264.png][/img]rn[img=https://img-bbs.csdn.net/upload/201603/30/1459302174_955188.png][/img]rn 求大神知道哪里错了
求大神指导,Android计步器问题
如果不开网络,不开GPS,做计步器的时候,手机动了很多下以后,要判断它是不是还在原地,这个有可能是用什么判断的rn
android布局问题,求大神指导
我想在手机屏幕上用listview显示一些列表信息,然后再在屏幕下端添加一个按钮,方便执行删除部分列表信息操作,可是运行结果只能显示listview内容,不能显示按钮,我还特意加了背景方便查看,可是背景设置也不能显示。一下是layout的xmlrnrnrnrn rnrn rn rnrn rnrn rn rnrn
求大神指导,安卓!!!!
我标记的1,2,3处不理解,求大神可以解释下,谢谢^ω^![图片](https://img-ask.csdn.net/upload/201611/15/1479217669_412896.jpg)
求PS大神指导
怎么样使用图片上的人祛斑
求大神指导,感激不尽。
我按书上给的源程序编译时却出现了错误。怎么了?下面是源代码:rn#include rnrnLRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM) ;rnrnrnint WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,rn PSTR szCmdLine, int iCmdShow)rnrn static TCHAR szAppName[] = TEXT ("HelloWin") ;rn HWND hwnd ;rn MSG msg ;rn WNDCLASS wndclass ;rnrn wndclass.style = CS_HREDRAW | CS_VREDRAW ;rn wndclass.lpfnWndProc = WndProc ;rn wndclass.cbClsExtra = 0 ;rn wndclass.cbWndExtra = 0 ;rn wndclass.hInstance = hInstance ;rn wndclass.hIcon = LoadIcon (NULL, IDI_APPLICATION) ;rn wndclass.hCursor = LoadCursor (NULL, IDC_ARROW) ;rn wndclass.hbrBackground= (HBRUSH) GetStockObject (WHITE_BRUSH) ;rn wndclass.lpszMenuName = NULL ;rn wndclass.lpszClassName= szAppName ;rnrn if (!RegisterClass (&wndclass))rn rn MessageBox ( NULL, TEXT ("This program requires Windows NT!"),rn szAppName, MB_ICONERROR) ;rn return 0 ;rn rnrn hwnd = CreateWindow( szAppName, // window class namern TEXT ("Full Screen Display"), // window captionrn// WS_OVERLAPPEDWINDOW, // window stylern WS_POPUP,rn// CW_USEDEFAULT,// initial x positionrn// CW_USEDEFAULT,// initial y positionrn// CW_USEDEFAULT,// initial x sizern// CW_USEDEFAULT,// initial y sizern 0,rn 0,rn ::GetSystemMetrics(SM_CXSCREEN),rn ::GetSystemMetrics(SM_CYSCREEN),rn NULL, // parent window handlern NULL, // window menu handlern hInstance, // program instance handlern NULL) ; // creation parametersrnrnrn ShowWindow (hwnd, iCmdShow) ;rn UpdateWindow (hwnd) ;rnrnrn while (GetMessage (&msg, NULL, 0, 0))rn rn TranslateMessage (&msg) ;rn DispatchMessage (&msg) ;rn rn return msg.wParam ;rnrnrnLRESULT CALLBACK WndProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)rnrn HDC hdc ;rn PAINTSTRUCT ps ;rn RECT rect ;rnrn switch (message)rn rn case WM_CREATE:rn// PlaySound (TEXT ("hellowin.wav"), NULL, SND_FILENAME | SND_ASYNC) ;rn return 0 ;rn case WM_PAINT:rn hdc = BeginPaint (hwnd, &ps) ;rn GetClientRect (hwnd, &rect) ;rn DrawText (hdc, TEXT ("This window can cover the task item!"), -1, &rect,rn DT_SINGLELINE | DT_CENTER | DT_VCENTER) ;rn EndPaint (hwnd, &ps) ;rn return 0 ;rn case WM_DESTROY:rn PostQuitMessage (0) ;rn return 0 ;rn rn return DefWindowProc (hwnd, message, wParam, lParam) ;rnrn错误:rnCompiling...rn01.crne:\programs\a\01.c(33) : warning C4003: not enough actual parameters for macro 'CreateWindowA'rne:\programs\a\01.c(33) : warning C4047: 'function' : 'int ' differs in levels of indirection from 'void *'rne:\programs\a\01.c(33) : warning C4024: 'CreateWindowExA' : different types for formal and actual parameter 8rne:\programs\a\01.c(33) : warning C4133: 'function' : incompatible types - from 'struct HINSTANCE__ *' to 'struct HMENU__ *'rne:\programs\a\01.c(33) : error C2059: syntax error : ')'rne:\programs\a\01.c(43) : error C2143: syntax error : missing '' before '__stdcall'rne:\programs\a\01.c(44) : warning C4142: benign redefinition of typerne:\programs\a\01.c(51) : warning C4129: 'm' : unrecognized character escape sequencerne:\programs\a\01.c(51) : warning C4129: '? : unrecognized character escape sequencern执行 cl.exe 时出错.rnrn01.obj - 1 error(s), 0 warning(s)rn求大神指导
大神们求指导
为什么graphical layout 中没有文字编辑的控件[img=https://img-bbs.csdn.net/upload/201310/13/1381654097_97449.png][/img]
相关热词 c# 标准差 计算 c#siki第五季 c#入门推荐书 c# 解码海康数据流 c# xml的遍历循环 c# 取 查看源码没有的 c#解决高并发 委托 c#日期转化为字符串 c# 显示问号 c# 字典对象池