Assembly.GetTypes() 出错,啥问题呢? [问题点数:100分,结帖人R9R9R9]

Bbs1
本版专家分:4
结帖率 98.8%
Bbs7
本版专家分:11053
Bbs8
本版专家分:33046
Bbs1
本版专家分:4
Bbs1
本版专家分:4
Bbs1
本版专家分:4
Bbs5
本版专家分:2198
Bbs1
本版专家分:4
Bbs1
本版专家分:4
Bbs4
本版专家分:1030
Bbs7
本版专家分:24959
啥错误呢?
看下面的例子:rntemplate rnclass Testrnrnpublic:rn typedef type value_type;rn typedef type* pointer;rn typedef const type* const_pointer;rn //.............rnpublic:rn Test()rn ~Test()rnpublic:rn void TT( value_type va,Test::const_pointer p=0)rn //.........rn;rn会出现error C2039: 'const_pointer' : is not a member of 'Test'的错误。rn各位大虾,这是什么错误呢?
Assembly.GetTypes() 与 typeof() 不相等。。高手请进。
代码如下:rn[code=C#]rnstatic Main()rnrn Assembly.LoadFile("bin/module.dll");rn rn Type[] types=Assembly.GetTypes();//在此设置断点,types[]中有一个Module的Typern int i;rn for(i=0;i在这设置了断点。但这条语句没执行rn //也就是说,从dll文件中读出来的Type没有符合typeof(Module)的。rn //但在上面我看到types中包含module的类型,为什么这个类型和typeof(Module)的结果不同?rn rn rnrnrnrnpublic class Modulernrn ......rnrnrn[/code]rnrn高手请回答。。。。。谢谢
这个函数有啥问题?怎么出错
unsigned char *FileToUChar(char* i_FileName)rn int i; rn unsigned char ch;rn FILE *fp;rn unsigned char *block;rnrn fp = fopen(i_FileName,"r");rn if (fp == NULL)rn printf("Open File Error!\n");rn exit(0);rn rnrn i = 0;rn// block=malloc((unsigned char*)i);rn while(!feof(fp) && (ch=fgetc(fp)))rn block[i] = ch;rn printf("ch[%d]:%c %x\n",i,ch,ch);rn i++;rn rnrn fclose(fp);rnrn return (block);rnrnrn错误是:rnJ:\aes_Optimized\test.c(88) : warning C4013: 'FileToUChar'rnJ:\aes_Optimized\test.c(88) : warning C4047: rnJ:\aes_Optimized\test.c(99) : error C2040: 'FileToUChar':'unsigned char *(char *)' 'int()'rn
VC2005程序在Ctrl+F5下出错,但是在F5下不会出错,会是啥问题呢??
VC2005程序在Ctrl+F5下<em>出错</em>,但是在F5下不会<em>出错</em>.rn感觉很茫然的错误,VC用的不多,程序除了用dll,都是用标准c,c++rn还有,能保证没有跨dll内存分配<em>问题</em>rnrn跟踪了一下,在malloc的时候<em>出错</em>了。rn我的程序是按照页面来分配内存的 rn如下:rn[code=C/C++]rn inline PageLayoutPtr allocZeroPageLayout() rn rn fprintf(stderr,"before malloc!\n");rn void* ptr = std::malloc(PAGE_SIZE);rn fprintf(stderr, ptr == NULL ? "malloc error!\n" : "malloc success!\n");rn std::memset(ptr, 0, PAGE_SIZE); // XXX 考虑按字长的memsetrn fprintf(stderr, "memset sucess!\n");rn return static_cast(ptr); rn rn[/code]rn其中页面大小 PAGE_SIZE = 4096rn空闲的内存自己管理。rnrn现在怀疑是不是自己管理导致越界,然后修改了malloc用来管理分配出的内存的部分导致malloc调用的时候直接崩溃。rnrn可是,为什么在F5下就不会<em>出错</em>呢??rnrn ============== 等待大家的帮助啦 ;-) ===============
考个啥证书呢
本人学的计算机科学与技术,各种语言都在学,精不敢说,想在大学期间考个证书,哪个含金量高啊?为了以后找工作的时候有点说服力,而且在过程中也能积累一点动手能力和思维能力。我同学有要考系统分析师的,我也有意向,不过好像有点难度,对考这个也没什么概念,大家提供点思路哇???
你们在用啥线程池呢?
刚刚看到之前Jeffery Zhao增加推荐过SmartThreadPool项目,我想问下各位在各自开发项目中有用到这个项目的没?rnrn我现在应用多线程的主要场景是,大批量需要计算和入数据库的任务(任务必须按序执行),我目前用的都是一开始起30个线程,每个线程New Thread(),然后start的这种模式。在每个线程都是处理相同的事情(都是相同的任务顺序),只是在关键地方加锁来控制逻辑。rn不知道各位更优的方法或者更方便控制的线程池可用?
DirectoryEntries 该引用啥呢?
DirectoryEntry root = new DirectoryEntry("WinNT:");rn DirectoryEntries domains = root.Children;rn domains.SchemaFilter.Add("domain");rn foreach (DirectoryEntry domain in domains)rn rn if (domain.Name.ToString() == "ADMIN")rn rn DirectoryEntries computers = domain.Children;rn computers.SchemaFilter.Add("computer");rn foreach (DirectoryEntry computer in computers)rn rn tryrn rn IPHostEntry iphe = Dns.GetHostByName(computer.Name);rnrn foreach (IPAddress ip in iphe.AddressList)rn rn this.hostlist.Items.Add(computer.Name);rn rn DirectoryEntries users = computer.Children;rn rn catch (Exception) rn rn rn rn rnrn该USING 啥呢? 编译不过rnusing System.DirectoryServices; 还不对?
咦~~~~~~~~~这是啥原因呢?
http://community.csdn.net/Expert/topic/4932/4932994.xml?temp=.1032221rnrn刚结了这帖子,明明每个人都给了分的,为何只有一个人得分(20),那剩下的80分去哪里了呢?rnrnrn想不通!!!!
这两个有啥区别呢?
Server.UrlEncode();rnHttpUtility.UrlEncode();rnrn这两个有啥区别呢?
ASP.net 需要学点啥呢
我学了C# 也看了些ASP.net得教程。。。不知道还需要学点什么呢???我是java转得。netrnrn有什么框架什么得么??
cgcc 是啥命令呢?
cgcc -c program.crnrnrn-- 我执行上面的语句提示如下:rn[root@rac1 linux]# ls -lrntotal 28rn-rw-r--r-- 1 root root 85 Apr 14 16:36 bill.crn-rw-r--r-- 1 root root 864 Apr 14 16:36 bill.orn-rw-r--r-- 1 root root 83 Apr 14 16:36 fred.crn-rw-r--r-- 1 root root 864 Apr 14 16:36 fred.orn-rw-r--r-- 1 root root 111 Apr 14 16:40 lib.hrn-rw-r--r-- 1 root root 67 Apr 14 16:40 program.crn-rw-r--r-- 1 root root 904 Apr 14 16:55 program.orn[root@rac1 linux]# cgcc -c program.crn-bash: cgcc: command not foundrnrnrn-- 是怎么一回事儿呢?还需要安装什么包呢?rn-- gcc命令可以执行!可cgcc就不行!
gd库缺少啥呢?
想用gd库 写个验证码 可出来的没有东西,只有一个图片框框rnrnrnphpinfo 看 gd库如下。rnGD Support enabled rnGD Version bundled (2.0.15 compatible) rnFreeType Support enabled rnFreeType Linkage with freetype rnGIF Read Support enabled rnJPG Support enabled rnPNG Support enabled rnWBMP Support enabled rnXBM Support enabled rnrn应该是支持啊。为何画不出来呢?rnrnrn打印出gd库如下:rnrnArray ( [GD Version] => bundled (2.0.15 compatible) [FreeType Support] => 1 [FreeType Linkage] => with freetype [T1Lib Support] => [GIF Read Support] => 1 [GIF Create Support] => [JPG Support] => 1 [PNG Support] => 1 [WBMP Support] => 1 [XBM Support] => 1 [JIS-mapped Japanese Font Support] => )rnrn我是不是必须安装T1Lib ?
问题
HTTP Web Server: Lotus Notes Exception - 校验用户运行代理的存取权限时<em>出错</em>。 可能原因: 该代理签名者可能未被允许执行代理--------------------rn热点调用代理时候出现的错误提示,应该怎么解决啊?我看不出来权限有什么错误。多谢
java程序中的try究竟是啥?又有啥作用呢?
java程序中的try究竟是啥?又有啥作用呢?
EDIT CONTROL赋值出错,啥原因啊?
[code=C/C++]rnGetDlgItem(IDC_EDIT1)->SetWindowTextW("显示的字符");rn[/code]rnrn这样为啥<em>出错</em>呢?
发邮件中文出错。请教啥原因
# -*- coding: gbk -*-rnrnimport smtplibrnfrom email.mime.text import MIMETextrnrnmailto_list=["abcd@126.com"]rnmail_host="192.168.1.100"rnmail_user="user"rnmail_pass="pwd"rnrndef send_mail(to_list,sub,content):rn me = "张三"rn msg = MIMEText(content)rn msg['Subject'] = subrn msg['From'] = mern msg['To'] = ";".join(to_list)rn try:rn s = smtplib.SMTP()rn s.connect(mail_host)rn s.ehlo()rn s.esmtp_features["auth"] = "LOGIN PLAIN"rn s.login(mail_user,mail_pass)rn s.sendmail(me, to_list, msg.as_string())rn s.close()rn return Truern except Exception as e:rn print(str(e))rn return Falsernif __name__ == '__main__':rn if send_mail(mailto_list,"subject","content"):rn print("发送成功")rn else:rn print("发送失败")rnrnrnrnrnrnrn<em>出错</em>信息如何rnrn---------- Python ----------rn'ascii' codec can't encode characters in position 0-1: ordinal not in range(128)rn发送失败rnrnOutput completed (0 sec consumed)rnrnrn请问该如何改rnrn我是PYTHON3.1
jquery 出错,不知道是啥原因!
[code=HTML]rnrnrnrnrn rn rn rn rnrn rn rn rn rnrn rnrnrn[/code]rnrn错误提示:rnHttp status: 0 n/arnajaxOptions: errorrnthrownError:SyntaxError: missing ; before statementrnrn如果不用jquery提交就OK!rn求解!
weblogic启动出错 是啥原因啊
刚开始接触weblogic 这个错误是啥意思啊 怎么解决啊 config.xml - error: No content type provided for validation of a content model.>
安装ADT时出错,啥办?
eclipse在线升级时提示如下,请教高手如何解决呢?rnrnCannot complete the request. See the details.rnUnsatisfied dependency: [com.android.ide.eclipse.hierarchyviewer.feature.group 10.0.1.v201103111512-110841] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.core.runtime/3.5.0rnUnsatisfied dependency: [com.android.ide.eclipse.traceview.feature.group 10.0.1.v201103111512-110841] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.core.runtime/3.5.0rnUnsatisfied dependency: [com.android.ide.eclipse.adt.feature.group 10.0.1.v201103111512-110841] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.core.runtime/3.5.0rnUnsatisfied dependency: [com.android.ide.eclipse.ddms.feature.group 10.0.1.v201103111512-110841] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.core.runtime/3.5.0rnUnsatisfied dependency: [com.android.ide.eclipse.hierarchyviewer.feature.group 10.0.1.v201103111512-110841] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.ui/3.5.0rnUnsatisfied dependency: [com.android.ide.eclipse.traceview.feature.group 10.0.1.v201103111512-110841] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.ui/3.5.0rnUnsatisfied dependency: [com.android.ide.eclipse.adt.feature.group 10.0.1.v201103111512-110841] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.ui/3.5.0rnUnsatisfied dependency: [com.android.ide.eclipse.ddms.feature.group 10.0.1.v201103111512-110841] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.ui/3.5.0rnCannot find a solution where both Match[requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.ui/3.5.0] and Match[requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.ui/[3.4.1.M20080910-0800,3.4.1.M20080910-0800]] can be satisfied.rnCannot find a solution where both Match[requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.core.runtime/3.5.0] and Match[requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.core.runtime/[3.4.0.v20080512,3.4.0.v20080512]] can be satisfied.rnCannot find a solution where both Match[requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.ui/3.5.0] and Match[requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.ui/[3.4.1.M20080910-0800,3.4.1.M20080910-0800]] can be satisfied.rnCannot find a solution where both Match[requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.core.runtime/3.5.0] and Match[requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.core.runtime/[3.4.0.v20080512,3.4.0.v20080512]] can be satisfied.rnUnsatisfied dependency: [com.android.ide.eclipse.adt.feature.group 10.0.1.v201103111512-110841] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.core.runtime/3.5.0rnUnsatisfied dependency: [com.android.ide.eclipse.adt.feature.group 10.0.1.v201103111512-110841] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.ui/3.5.0rnUnsatisfied dependency: [com.android.ide.eclipse.hierarchyviewer.feature.group 10.0.1.v201103111512-110841] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.core.runtime/3.5.0rnUnsatisfied dependency: [com.android.ide.eclipse.hierarchyviewer.feature.group 10.0.1.v201103111512-110841] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.ui/3.5.0rnUnsatisfied dependency: [org.eclipse.platform.feature.group 3.4.1.r341_v20080731-9I96EiDElYevwz-p1bP5z-NlAaP7vtX6Utotqsu] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.help.feature.group/[1.0.1.R34x_v20080827-7r7xEIxEI6Zu5nEqN7M3UBpglaat,1.0.1.R34x_v20080827-7r7xEIxEI6Zu5nEqN7M3UBpglaat]rnUnsatisfied dependency: [org.eclipse.sdk.feature.group 3.4.1.R34x_v20080827-7O7S78C2J40sK2o_ALcK8tLN_yZSJeg0P-3EtL4Ra90kv] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.pde.feature.group/[3.4.1.r341_v20080731-7T7U0E9mlRIuGUYviF_VP,3.4.1.r341_v20080731-7T7U0E9mlRIuGUYviF_VP]rnUnsatisfied dependency: [org.eclipse.sdk.feature.group 3.4.1.R34x_v20080827-7O7S78C2J40sK2o_ALcK8tLN_yZSJeg0P-3EtL4Ra90kv] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.jdt.feature.group/[3.4.1.r341_v20080709-0800-7o7tEAfEF_U5qyUgrb2HAp539P97,3.4.1.r341_v20080709-0800-7o7tEAfEF_U5qyUgrb2HAp539P97]rnUnsatisfied dependency: [org.eclipse.sdk.feature.group 3.4.1.R34x_v20080827-7O7S78C2J40sK2o_ALcK8tLN_yZSJeg0P-3EtL4Ra90kv] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.cvs.feature.group/[1.1.1.r34x_20080902-7C79E8N9nJD4oAW9V1938,1.1.1.r34x_20080902-7C79E8N9nJD4oAW9V1938]rnUnsatisfied dependency: [org.eclipse.sdk.feature.group 3.4.1.R34x_v20080827-7O7S78C2J40sK2o_ALcK8tLN_yZSJeg0P-3EtL4Ra90kv] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.platform.feature.group/[3.4.1.r341_v20080731-9I96EiDElYevwz-p1bP5z-NlAaP7vtX6Utotqsu,3.4.1.r341_v20080731-9I96EiDElYevwz-p1bP5z-NlAaP7vtX6Utotqsu]rnUnsatisfied dependency: [com.android.ide.eclipse.traceview.feature.group 10.0.1.v201103111512-110841] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.ui/3.5.0rnUnsatisfied dependency: [com.android.ide.eclipse.traceview.feature.group 10.0.1.v201103111512-110841] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.core.runtime/3.5.0rnUnsatisfied dependency: [org.eclipse.rcp.feature.group 3.4.100.r341_v20080814-989JESIEdAciFYfkZZsBfSwQ2341] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.ui.workbench/[3.4.1.M20080827-0800a,3.4.1.M20080827-0800a]rnUnsatisfied dependency: [org.eclipse.pde.feature.group 3.4.1.r341_v20080731-7T7U0E9mlRIuGUYviF_VP] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.jdt.feature.group/[3.0.0,4.0.0)rnUnsatisfied dependency: [org.eclipse.pde.feature.group 3.4.1.r341_v20080731-7T7U0E9mlRIuGUYviF_VP] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.platform.feature.group/[3.0.0,4.0.0)rnUnsatisfied dependency: [org.eclipse.sdk.ide 3.4.0.M20080911-1700] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.sdk.feature.group/[3.4.1.R34x_v20080827-7O7S78C2J40sK2o_ALcK8tLN_yZSJeg0P-3EtL4Ra90kv,3.4.1.R34x_v20080827-7O7S78C2J40sK2o_ALcK8tLN_yZSJeg0P-3EtL4Ra90kv]rnUnsatisfied dependency: [com.android.ide.eclipse.ddms.feature.group 10.0.1.v201103111512-110841] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.ui/3.5.0rnUnsatisfied dependency: [com.android.ide.eclipse.ddms.feature.group 10.0.1.v201103111512-110841] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.core.runtime/3.5.0rnUnsatisfied dependency: [org.eclipse.cvs.feature.group 1.1.1.r34x_20080902-7C79E8N9nJD4oAW9V1938] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.platform.feature.group/[3.3.0,4.0.0)rnUnsatisfied dependency: [org.eclipse.help.feature.group 1.0.1.R34x_v20080827-7r7xEIxEI6Zu5nEqN7M3UBpglaat] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.rcp.feature.group/[3.4.100.r341_v20080814-989JESIEdAciFYfkZZsBfSwQ2341,3.4.100.r341_v20080814-989JESIEdAciFYfkZZsBfSwQ2341]rnUnsatisfied dependency: [org.eclipse.jdt.feature.group 3.4.1.r341_v20080709-0800-7o7tEAfEF_U5qyUgrb2HAp539P97] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.platform.feature.group/[3.4.0,4.0.0)rn
STC单片机编程出错是啥原因?
我的单片机是STC89C52RC,做的是控制点阵屏显示汉字,怎样处理汉字数据的存放?如何写入它内部的EEPROM?请各位高手指点!谢谢啦!
Jsp连Sql2000 出错 帮忙看一下啥问题 3x
javax.servlet.ServletException: [Microsoft][SQLServer JDBC Driver]Error establishing socket.rn at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:498)rn at org.apache.jsp.test_jsp._jspService(test_jsp.java:89)rn at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)rn装过Jdbc驱动 三个Jar文件放入lib目录了 ClassPath中也加过rnrn连接数据库的文件如下rn; rnResultSet rs=stmt.executeQuery(sql);
studio 快捷键和一些啥啥啥的
studio重装后,一些小的配置 改代码补全提示  搜 Class Name Completion 以后有什么再加
这SQL是啥!啥!啥!惨痛
update un u set u.reserve = 0, u.cnt = u.cnt + u.share,u.modified=sysdate where exists ( select 'X' from tb t, un u where t.type_id = 21 and t.order_id = u....
闹腾啥闹腾啥
车拉着猪们去屠宰场,一只猪烦躁不安,上窜下跳,别的猪说:你闹腾啥,把车搞翻了对谁都没好处!这只猪说:只有翻车才有活命的希望啊!
想到啥写点啥
这一周了解了git语法和laravel,由于composer和laravel装不上,找金东学长求助后发先有更多需要学习的地方。如对数据库操作的了解和控制台命令等。 讲道理,本周的学习进程不是很理想,先不提高数考试耗费的时间,光是自己动手装composer就耗费了大量时间。(而且还没装上…)所以今天可说的也就这些了。 下周加油吧!
《想到啥写啥》
最近在搞毕业设计,总是要用重复的东西。比如上次要用到的函数的使用方法,或者使用函数过程当中一些不为人知的小<em>问题</em>的解决方法。当时好不容易查到的,后来遇到了,又得重新查。一直想着做笔记,但是纸质的只能管当时的最多一个月前后。所以还是在网上随便写一点,又方便。后面把 Vamei 大神写的摘抄下来了。1. 在处理带有NAN值数据的时候,比如有时候你想求它的均值,一般用np.nanmean是可以解决的,直到...
__str__和__repr__有啥区别呢?
>>> class Item(): ...     def __init__(self): ...         self.code = '' ...         self.data = '' ...     def __str__(self): ...         """ support a nice string representation with all attrib
动态规划和迭代、递推关系有啥本质区别呢?
初学,看了算法导论上那个关于汽车装配流水线的例子,能理解,但是看起来推导出来的就是一个递推关系而已,那么动态规划和递推关系有啥区别呢?(感觉上动态规划似乎就是能帮助理出一个递推关系而已。)rn和数学归纳法的思想有啥区别呢?看上去数学归纳法是从1(初始)-》n(终点),动态规划似乎是倒推,从n(终点)-》1(初始)。rnrn假如计算斐波那契数列的第n个元素的值,用动态规划的思想又如何解释呢?
链接错误,一般这是啥情况引起的呢?
错误 1 error LNK2001: 无法解析的外部符号 NP_GetMIMEDescription c:\Users\geekgao\Desktop\npruntime\nprt.def 1 npcodeprojectrnrn错误 2 fatal error LNK1120: 1 个无法解析的外部命令 C:\Program Files\Mozilla Firefox\plugins\npcodeproject.lib npcodeprojectrn
DestroyWindow与PostNcDestroy消息有啥区别呢???
!!!!!!!!!!!!!!!!!!!!
c# 的attribute 运行机制是啥呢
比如这个rnPrincipalPermissionAttributern给类加上以后 是怎么去调用Attribute里面的方法呢
还有的DISPID叫啥名字呢?
我做了一个BHO监视浏览器,在Invoke方法中我统计了一下传进来的第一个参数DISPID dispidMember,然后就以打开csdn主页做测试,有了如下结果:rn[img=http://hiphotos.baidu.com/dinglbo/pic/item/feab5bf5026868f3f3d385ec.jpg][/img]rn图片中最后一行的那个DISPID_UNKNOWN就是在ExDispID.h头文件中没有定义的。我想知道这个dispidMember的值除了在ExDispID.h中定义外,还有在哪个地方定义呢?rnrn顺便顶一下之前的一个帖子:[url=http://topic.csdn.net/u/20090815/08/30a561f8-7578-4242-9331-e62b99350da4.html?23634]http://topic.csdn.net/u/20090815/08/30a561f8-7578-4242-9331-e62b99350da4.html?23634[/url]
为什么会出错呢?
压缩数据库rnrn错误类型:rnMicrosoft JET Database Engine (0x80004005)rn尝试打开的数据库已经被机器 'MY-TOMATO' 上的用户 'admin' 以排它的方式打开。当数据库可使用后请再试一次。rnrnrn调用页面rnrn Dim dbpath,boolIs97rn dbpath = Request("dbpath")rn boolIs97 = Request("boolIs97")rn 'call CompactDB(dbpath,boolIs97)rn response.write(CompactDB(dbpath,boolIs97))rnrnrnrnrn'以下为函数rnFunction CompactDB(dbPath, boolIs97) '备份ACCESS数据库函数 dbPath=数据库路径(实际或虚拟路径) boolIs97=[bool]ACCESS数据库的版本(true=97 )rn Dim fso, Engine, strDBPathrn if mid(dbPath,2,1)<>":" then '查看数据库路径第二个字符是否为:如果是就是绝对路径了...否则为虚拟.rn dbPath=server.mappath(dbPath)rn end ifrnrn strDBPath = left(dbPath,instrrev(DBPath,"\"))rn Set fso = CreateObject("Scripting.FileSystemObject")rn If fso.FileExists(dbPath) Then'判断文件是否存在rn Set Engine = CreateObject("JRO.JetEngine")rn If boolIs97 = "True" Then'判断ACCESS数据库的版本 97rn Engine.CompactDatabase "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & dbpath,"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & strDBPath & "temp.mdb;" & "Jet OLEDB:Engine Type=4"rn Else'判断ACCESS数据库的版本 Access 2000、2002、2003rn Engine.CompactDatabase "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & dbpath,"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & strDBPath & "temp.mdb"rn End Ifrn fso.CopyFile strDBPath & "temp.mdb",dbpathrn fso.DeleteFile(strDBPath & "temp.mdb")rn Set fso = nothingrn Set Engine = nothingrn CompactDB = " "'返回正确执行信息rn Else '文件不存在rn CompactDB = " "'返回错误执行信息rn End IfrnEnd Function
这怎么会出错呢?
#includern#includernrnusing namespace std;rnrnvector v;rnint num;rncout<<
flexlib类库都有啥东东呢
看了一下午某大牛的博客,真是感觉自己越发的菜鸟,尤其在gis行当里,简直了都不敢对外宣称本人是干gis的...好多专业知识,只能是慢慢来吧。快下班了,看一下flexlib吧,前台的东西。多少还是了解点的。...
各种模式是啥个意思呢
用户模式、保护模式、内核模式。。。。。。rn这是汇编方面的概念,还是操作系统方面的概念,啥意思,啥情况,怎么事
啥叫 an (automatic) purge operation 呢?
rnrnWhen you delete data from a table, InnoDB contracts the corresponding B-tree indexes. Whether the freed space becomes available for other users depends on whether the pattern of deletes frees individual pages or extents to the tablespace. Dropping a table or deleting all rows from it is guaranteed to release the space to other users, but remember that deleted rows are physically removed only in [color=#0000FF]an (automatic) purge operation [/color]after they are no longer needed for transaction rollbacks or consistent reads.rnrn啥叫 an (automatic) purge operation 呢?rnrn是merge、replace类似的操作吗?rnrn
我真郁闷了,这是啥回事呢?
rnrn不管用,真是无法理解了
强大的TC啥就过时了呢?
我是一只菜菜鸟,非机算机专业,自学C,目前网上的教材都是基于TC,还不错,很全,装个TC再 copy code,每一条例程都能正确运行,运行那些图形程序时,才发现C真的很强大,超酷.可是来到这里,每一位大牛们都说TC过时了,俺就换了IDE,曾用过DEV C++/VS2008/CodeBlocks ,可是那些code就是无法编译通过,郁闷啊,如果TC是目前最流行的C编译器,俺学C的激情不比任何人低,可是就因为一个编译环境,俺学C都没劲了,很失望,好沮丧.
效率一般都考虑啥呢
如题:web开发效率一般都考虑啥呢?大家都是怎么解决的?
static HashTable和HttpRuntime.Cache有啥区别呢
有些人说,在winform里面用static HashTablern在asp.net里面HttpRuntime.Cachernrn为什么呢?rn我知道winform不能用Cachern那么,其实asp.net上也可以用static HashTable啊
为什么老是出错呢?
Microsoft OLE DB Provider for ODBC Drivers 错误 '80040e21' rnrnODBC 驱动程序不支持所需的属性。 rnrn/b/login.asp,行11 ,为什么不对啊,我都快要崩溃了。。。大家帮忙啊!rnrnrnrnrnrnrn
为什么会出错呢?
我测试以下代码,但就是无法编译。请各位帮帮我,谢谢。rnrnentry startrnstart:rnmov ax,#0xb800rnmov es,axrnseg esrnmov [0],#0x41rnseg esrnmov [1],#0x1frnloop1: jmp loop1rnrn我使用的是 MASM32。rn我急需解决这个<em>问题</em>,请用邮件happybabyq@msn.com 或 QQ:83107165 回复我,谢谢!
这样怎么会出错呢?
代码:rn---------------------------------------------------------------rntypern IDataOperation = interface(IUnKnown)rn ['D8E8B1AF-E8F5-4DEA-BCA4-17034A21CF40']rn procedure getDBDriver;rn function OpenConnection : boolean;rn function OpenRecordSet : boolean;rn end;rnrnrnTMyClass = class(TObject,IDataOperation)rn FDataRecord : TADODataSet;rn FDataConnection : TADOConnection;rn FDataDriver : TDriver;rn FSql : string;rn privatern publicrn procedure getDBDriver;rn function OpenConnection() : boolean;rn function OpenRecordSet() : boolean;rn end;rnrnrn错误:rn---------------------------------------------------------------rn[Error] GetSum.pas(72): Undeclared identifier: 'QueryInterface'rn[Error] GetSum.pas(72): Undeclared identifier: '_AddRef'rn[Error] GetSum.pas(72): Undeclared identifier: '_Release'rn[Fatal Error] Test.dpr(5): Could not compile used unit 'GetSum.pas'rn---------------------------------------------------------------rnrnrn为什么呢?为什么?
为什么就是出错呢?
我想在DataGrad里每项前加一个选择框,然后勾选了后实现删除功能,在删除botton中代码如下:rn private void Button2_Click(object sender, System.EventArgs e)rn rn bool IsChecked;rnrn //循环判断哪些数据记录已被勾选,并将相对应的数据记录删除rn foreach(DataGridItem CheckBoxItem in DGView.Items)rn rn IsChecked=((CheckBox)CheckBoxItem.FindControl("DeleteOrNot")).Checked;rn rnrn if (IsChecked)rn rn Response.Write(DGView.DataKeys[CheckBoxItem.ItemIndex]);rn rn rn rn为什么我一运行就是<em>出错</em>,信息为:rn未将对象引用设置到对象的实例。rn行:IsChecked=((CheckBox)CheckBoxItem.FindControl("DeleteOrNot")).Checked;rn请问到底是怎么回事?
连接查询为什么出错呢?
我在Pldeveloper和SQL*PLUS里面只要用join关键字作连接查询查询就<em>出错</em>,为什么啊?rnselect s.student_id,d.department_id from tbl_student s cross join tbl_department drnrnselect s.student_name,d.depaetment_name from tbl_student s join tbl_department d on (d.department_id = s.department_id)rnrnselect s.student_name,d.depaetment_name from tbl_student s left outer join tbl_department d on (d.department_id = s.department_id)rn哪位大侠知道这是为什么啊?
这仨有啥区别呢
1. __declspec(dllexport)rnrn2. extern "C" __declspec(dllexport)rnrn3. static __declspec(dllexport)rnrn区别。。。
下面注释这句的作用是啥呢???
/*write the function strcpy,don't call C/C++ string library*/rn#include rn#include rn#include rn#include rn#include rnusing namespace std;rnrnchar *Strcpy(char *strDest, const char *strSrc)rnrn assert(strDest != NULL && strSrc != NULL);///////////这句的作用rn char *resultStr = strDest;rn while (*strSrc != '\0')rn rn *strDest++ = *strSrc++;rn rn *strDest = '\0';rn return resultStr;rn rnrnrnint main()rnrn char *str = "0123456789";rn char strd[100];rn char *ss = Strcpy(strd,str);rn cout<
为什么重定向出错呢?
说明:本人希望用户访问/Login.do的时候,自动转到某个网站的页面,比如www.baidu.com。rnrnStruts 1.2rnrn配置文件:rn[code=XML]rnrnrnrnrn rn rn rn rn rn rn rn rn rn rnrn[/code]rnrn源代码:rn[code=Java]rnimport 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 LoginAction extends Action rn public ActionForward execute(ActionMapping mapping, ActionForm form,rn HttpServletRequest request, HttpServletResponse response)rn throws Exception rnrn return new ActionForward("http://www.baidu.com");rn rnrn[/code]rnrn异常:rn[code=Java]rn2010-12-3 15:30:47 org.apache.catalina.core.StandardWrapperValve invokern严重: Servlet.service() for servlet action threw exceptionrnjava.lang.IllegalArgumentException: Path http://www.baidu.com does not start with a "/" characterrn at org.apache.catalina.core.ApplicationContext.getRequestDispatcher(ApplicationContext.java:368)rn at org.apache.catalina.core.ApplicationContextFacade.getRequestDispatcher(ApplicationContextFacade.java:196)rn at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1078)rn at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:398)rn at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:241)rn at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)rn at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)rn at java.lang.Thread.run(Thread.java:595)rn2010-12-3 15:31:03 org.apache.catalina.core.StandardWrapperValve invokern严重: Servlet.service() for servlet action threw exceptionrnjava.lang.IllegalArgumentException: Path http://www.baidu.com does not start with a "/" characterrn at org.apache.catalina.core.ApplicationContext.getRequestDispatcher(ApplicationContext.java:368)rn at org.apache.catalina.core.ApplicationContextFacade.getRequestDispatcher(ApplicationContextFacade.java:196)rn at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1078)rn at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:398)rn at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:241)rn at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)rn at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)rn at java.lang.Thread.run(Thread.java:595)rnrn[/code]
出错在哪里呢?
string sql="insert into message values('"+1199+"')";rn string strcon="Provider=Microsoft.Jet.OLEDB.4.0;Data Source="+Server.MapPath("message.mdb")+";User Id=admin;Password=;";rn OleDbConnection con=new OleDbConnection(strcon);rn con.Open();rn OleDbCommand mycmd=new OleDbCommand(sql,con);rn mycmd.ExecuteNonQuery();rnrnrnerro:rnOperation must use an updateable query. rnDescription: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. rnrnException Details: System.Data.OleDb.OleDbException: Operation must use an updateable query.rnrnSource Error: rnrnrnLine 69: con.Open();rnLine 70: OleDbCommand mycmd=new OleDbCommand(sql,con);rnLine 71: mycmd.ExecuteNonQuery();rnLine 72: rnLine 73: rn rn
为何会出错呢?
更新语句如下:rnrnendDate = DateAdd("m",3,date())rnsqlUpdate = "update member set available = " & rsChAccount("available") & "-30" & ",endDate=" & endDate & "where user_id = " & Session("user_id")rnrn为啥更新的时候,日期变成了1905-6-7 为什么不是这样的形式:2007-9-15 呢?
为什么出错呢?(加分)
------------------------------------------rnrnrnrn lqflshrnrnrnrnrnrnADODB.Record 错误 '800a0e94' rnrn服务器无法完成操作。 rnrn/asp/ccc.asp,行12 rn-------------------------------------------------------rnrnrnrnrn lqflshrnrnrnrnrnrnMicrosoft VBScript 运行时错误 错误 '800a01b6' rnrn对象不支持此属性或方法: 'copyrecord' rnrn/asp/ccc.asp,行12 rn----------------------------------------
这个怎么会出错呢?
rnrnrnrn rnrnrnrn 无标题页rnrnrn rn rn At the tone,the time will be:rn rn rnrnrn==========================rn编译错误 rn说明: 在编译向该请求提供服务所需资源的过程中出现错误。请检查下列特定错误详细信息并适当地修改源代码。 rnrn编译器错误信息: CS0117: “System.Web.UI.HtmlControls.HtmlGenericControl”并不包含“innerText”的定义rnrn源错误:rnrn rnrn行 6: void Page_Load()rn行 7: rn行 8: [color=#FF0000]spanNow.innerText = DateTime.Now.ToString("T");[/color]行 9: rn行 10: rn rnrn源文件: f:\website\Default.aspx 行: 8
为何出错呢???
import java.awt.*;rnimport javax.swing.*;rnimport java.awt.event.*;rnpublic class NamePass extends JFramernrn JLabel lm=new JLabel("Name",JLabel.LEFT);rn JLabel lp=new JLabel("Password",JLabel.LEFT);rn JTextField tm=new JTextField();rn JPasswordField tp=new JPasswordField();rn JButton ok=new JButton("OK");rn public NamePass()rn rn super("Username and Password");rn rn GridBagLayout gridbag=new GridBagLayout();rn GridBagConstraints constraints=new GridBagConstraints();rn JPanel pane=new JPanel();rn pane.setLayout(gridbag);rn rn buildConstraints(constraints,0,0,1,1,10,40);rn constraints.fill=GridBagConstraints.NONE;rn constraints.anchor=GridBagConstraints.EAST;rn gridbag.setConstraints(lm,constraints);rn pane.add(lm);rn rn buildConstraints(constraints,1,0,1,1,90,0);rn constraints.fill=GridBagConstraints.NONE;rn constraints.anchor=GridBagConstraints.HORIZONTAL;rn gridbag.setConstraints(tm,constraints);rn pane.add(tm);rn rn buildConstraints(constraints,0,1,1,1,0,40);rn constraints.fill=GridBagConstraints.NONE;rn constraints.anchor=GridBagConstraints.EAST;rn gridbag.setConstraints(lp,constraints);rn pane.add(lp);rn rn buildConstraints(constraints,1,1,1,1,0,0);rn constraints.fill=GridBagConstraints.HORIZONTAL;rn tp.setEchoChar('*');rn gridbag.setConstraints(tp,constraints);rn pane.add(tp);rn rn buildConstraints(constraints,0,2,2,1,0,20);rn constraints.fill=GridBagConstraints.NONE;rn constraints.anchor=GridBagConstraints.CENTER;rn gridbag.setConstraints(ok,constraints);rn pane.add(ok);rn setContentPane(pane);rn rn addWindowListener(new WindowCloser());rn setSize(290,110);rn setVisible(true);rn rn private void buildConstraints(GridBagConstraints gbc,int gx,int gy,int gw,int gh,int wx,int wy)rn rn gbc.gridx=gx;rn gbc.gridy=gy;rn gbc.gridwidth=gw;rn gbc.gridheight=gh;rn gbc.weightx=wx;rn gbc.weighty=wy;rn rn private class WindowCloser extends WindowAdapterrn rn public void windowClosing(WindowEvent we)rn rn System.exit(0);rn rn rn public static void main(String[] args)rn rn NamePass n=new NamePass();rn rnrnrnrn//运行时出现:rn/*Exception in thread "main" java.lang.IllegalArgumentException: illegal anchor varnluern at java.awt.GridBagLayout.AdjustForGravity(GridBagLayout.java:1315)rn at java.awt.GridBagLayout.adjustForGravity(GridBagLayout.java:1206)rn at java.awt.GridBagLayout.ArrangeGrid(GridBagLayout.java:1539)rn at java.awt.GridBagLayout.arrangeGrid(GridBagLayout.java:1372)rn at java.awt.GridBagLayout.layoutContainer(GridBagLayout.java:712)rn at java.awt.Container.layout(Container.java:1401)rn at java.awt.Container.doLayout(Container.java:1390)rn at java.awt.Container.validateTree(Container.java:1473)rn at java.awt.Container.validateTree(Container.java:1480)rn at java.awt.Container.validateTree(Container.java:1480)rn at java.awt.Container.validateTree(Container.java:1480)rn at java.awt.Container.validate(Container.java:1448)rn at java.awt.Window.show(Window.java:515)rn at java.awt.Component.show(Component.java:1300)rn at java.awt.Component.setVisible(Component.java:1253)rn at NamePass.(NamePass.java:53)rn at NamePass.main(NamePass.java:73)*/rnrn//请各位大虾帮帮小弟!!!
运行出错,为什么呢
[code=C/C++]rn#include rnvoid main()rnrn char grade;rn int mark=0;rn scanf("%d",mark);rn if(mark>=0&&mark=90&&mark=80&&mark=70&&mark=60&&mark);rnrn[/code]
类型转换出错,什么原因呢?
static DWORD ThreadPro(PVOID pArg);rnrnDWORD CThread1Dlg::ThreadPro(PVOID pArg)rnrn int i;rn CHAR tmp[10];rn CListBox * pListBox;rn pListBox=(CListBox*)pArg;rn i=0;rn while(1)rn rn _itow(i,tmp,10);rn pListBox->AddString(tmp);rn i++;rn Sleep(200) ;rn rn return 1;rnrn提示此行代码<em>出错</em>: _itow(i,tmp,10);rnrnrnC:\Program Files\Microsoft Visual Studio\MyProjects\Thread1\Thread1Dlg.cpp(182) : error C2664: '_itow' : cannot convert parameter 2 from 'char [10]' to 'unsigned short *'rn
怎么可能出错呢?
#include rn#include rnvoid main()rnrn clrscr();rn float p,n,r;rn p=1000;rn n=2.5;rn r=10.5;rnrn printf("\n Amount is: %f",p*n*r/100);rnZrn这段程序错了吗???我看不出来rn可是运行就说有4个错误。。。
验证控件为何出错
代码如下,执行到Page.IsValid时提示<em>出错</em>!!!rn rnrnrn rnrnrn rn rn RequiredFieldValidator控件演示rn rn 姓名:rn *rn (请填写姓名)rn rn rnrn rn rn rnrnrn rnrnrnrn
为什么出错
Dim xmldoc As New MSXML.DOMDocumentrnPrivate Sub Form_Load()rnDim root As IXMLDOMNodernDim node As IXMLDOMNodernDim node1 As IXMLDOMElementrnDim xmlabt As IXMLDOMAttributernSet root = xmldoc.createElement("start")rnSet node = xmldoc.createElement("db")rnCall xmldoc.appendChild(root)rnCall root.appendChild(node)rnSet node1 = xmldoc.createElement("table")rnrnSet xmlabt = xmldoc.createAttribute("name")rn xmlabt.Text = "value"rn Call node1.setAttributeNode(xmlabt)rnCall node.appendChild(node1)rnxmldoc.save "c:\1.xml"rnrnrnrnMsgBox find(root).Attributes(0).Text ' 这里<em>出错</em> 这是为什么呢rnrnEnd SubrnrnFunction find(node As IXMLDOMElement) As IXMLDOMElementrnDim i As Integer, j As IntegerrnFor i = 0 To node.childNodes.length - 1rn If node.childNodes(i).nodeName = "table" Thenrn For j = 0 To node.childNodes(i).Attributes.length - 1rn rn If node.childNodes(i).Attributes(j).nodeName = "name" And node.childNodes(i).Attributes(j).nodeValue = "value" Thenrn rn MsgBox node.childNodes(i).Attributes(0).Textrn Set find = node.childNodes(i)rn Exit Functionrn End Ifrn Next jrn End Ifrn If node.childNodes(i).childNodes.length > 0 Thenrn Call find(node.childNodes(i))rnEnd IfrnNext irnrnEnd Functionrn
为什么会出错呢???
[code=VB.NET]Public Function ExcSQLresult(ByVal sql As String) As Integerrn Dim cnn As New SqlConnection(strconn)rn Dim result As Integerrn Tryrn cnn.Open()rn cmd.Connection = cnnrn cmd.CommandText = sqlrn cmd.CommandType = CommandType.Textrn result = cmd.ExecuteScalarrnrn If result <= 0 Thenrn result = 0rn End Ifrn Catch ex As Exceptionrn Finallyrn cnn.Close()rn End Tryrn Return resultrn End Function[/code]
为什么总是出错呢?
头文件rn#include "stdafx.h"rn#include "Server.h"rn#include rn#include "fuwu.h"rn#include rn#include rn#include "SYS.h"rn#include rnrn单独的把加载服务的一个程序是win32控制台程序,只是改成了win32应用程序就报错rnrn错误代码[code=c]SERVICE_STATUS m_ServiceStatus;rnSERVICE_STATUS_HANDLE m_ServiceStatusHandle;[/code]rn[img=https://img-bbs.csdn.net/upload/201309/04/1378266320_979112.jpg][/img]rnrn错误提示:[img=https://img-bbs.csdn.net/upload/201309/04/1378266145_130629.jpg][/img]rn求助!!!rn
为啥split出错呢?
rnrnrnrnrn 字符串分割rn rn rn rnrnrn我是想将字符串分割开,可是不知道为啥<em>出错</em>啊
连接查询为什么出错
我在Pldeveloper和SQL*PLUS里面只要用join关键字作连接查询查询就<em>出错</em>,为什么啊?rnselect s.student_id,d.department_id from tbl_student s cross join tbl_department drnrnselect s.student_name,d.depaetment_name from tbl_student s join tbl_department d on (d.department_id = s.department_id)rnrnselect s.student_name,d.depaetment_name from tbl_student s left outer join tbl_department d on (d.department_id = s.department_id)rn哪位大侠知道这是为什么啊?
编译时出错,为什么呢?
interface Arnint x=1;void method1();rninterface B extends Arnint x=2;void method2();rnpublic class Example implements Brnpublic void method1()rnSystem.out.println("x="+x);rnSystem.out.println("A.x="+A.x);rnSystem.out.println("B.x="+B.x);rnSystem.out.println("Example.x="+Example.x);rnrnpublic void method2()rnpublic static void main(String[]args)rnExample d=new Example();d.method1();rnrnrn编译上述程序时出现以下错误提示,为什么呢?rn1.java:5class Example is public,should be declared in a file named Example.javarnpublic class Example implements Brn ^rn1 error
这个怎么出错呢?
有一个form: formc01rnrn在里面有一组单选钮 dddrnrn我在客户端脚本中写道rnrn rn多谢
存储过程那里出错呢????
CREATE PROCEDURE GetClientsbyParam(rn@ClientName nvarchar(50),rn@QianTime nvarchar(50),rn@ContractNum nvarchar(50),rn@ProductType nvarchar(50),rn@ProductName nvarchar(50),rn@LinkMan nvarchar(50),rn@Address nvarchar(50)rn)rnrnASrnBEGINrn DECLARE @SQL NVARCHAR(4000),rn @Pa1 Nvarchar(10),rn @Pa2 Nvarchar(10),rn @Pa3 Nvarchar(10)rn SET @Pa1=' 整体外包 'rn Set @Pa2=' 电子商务 'rn set @Pa3=' 其它 'rn SET @SQL=N'selectrn PKID, ClientName,QianTime,ContractNum,ProductName,LinkMan,Address,ProductType=casern rn when (ProductType=1) then @Pa1rn when (ProductType=2) then @Pa2rn rn else @Pa3rn Endrn rn FROMrn clientrn WHERE 1=1'rn rn if(@ClientName!='')rn SET @SQL=@SQL+N' and ClientName like ''%'+@ClientName+N'%'''rnrn if(@QianTime!='')rn SET @SQL=@SQL+N' and QianTime like ''%'+@QianTime+N'%'''rnrn if(@ContractNum!='')rn set @SQL=@SQL+N' and ContractNum like ''%'+@ContractNum+N'%''' rn rnrn if(@ProductType!=0)rn set @SQL=@SQL+N' and ProductType like ''%'+@ProductType+N'%'''rnrn if(@ProductName!='')rn set @SQL=@SQL+N' and ProductName like ''%'+@ProductName+N'%'''rn rnrnrn rn EXEC(@SQL)rnENDrnGOrn
为何出错呢?
菜鸟才学asp.net with c#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;rnrn namespace Test04rnrn struct point rn rn public int x;rn public int y;rn public int z;rn rnrnpublic partial class _Default : System.Web.UI.Page rnrn rn //显示点的三维坐标rn protected void Page_Load(object sender, EventArgs e)rn rn point p = new point();rn p.x = 100;rn p.y = 200;rn p.z = 300;rn Response.Write("x坐标为" + p.x.Tostring() + "y坐标为" + p.y.Tostring() + "z坐标为" + p.z.Tostring());rnrn rnrn为何在vs2005中编译时<em>出错</em>为:rn错误 1 找不到类型或命名空间名称“point”(是否缺少 using 指令或程序集引用?) E:\黑魔方\第四章\struct\Default.aspx.cs 26 9 E:\...\struct\rn错误 2 找不到类型或命名空间名称“point”(是否缺少 using 指令或程序集引用?) E:\黑魔方\第四章\struct\Default.aspx.cs 26 24 E:\...\struct\rnrn多谢大家看看..rn
为什么总是出错
"&kicktime&"*60"rn Conn.Execute sqlrn%>
数据更新出错
OleDbConnection lk = new OleDbConnection();rn lk.ConnectionString = "Provider=Microsoft.jet.oledb.4.0;Data Source=" + ("sicc.mdb");rn lk.Open();rn OleDbCommand lj = new OleDbCommand("select*from qjb where ID=" + xh + "");rn int lh = Convert.ToInt32(lj.ExecuteScalar());rn int lg = lh;rn OleDbCommand lf = new OleDbCommand("update qjb set cpmc='" + xgcpmctextBox.Text + "',xh='" + xgxhtextBox.Text + "',sm='" + xgsmtextBox.Text + "',dj='" + xgmoneytextBox.Text + "',bz='" + xgbztextBox.Text + "' where id ='" + lg + "'", lk);rn int cv = Convert.ToInt32(lf.ExecuteNonQuery());rn if (cv > 0)rn rn MessageBox.Show("修改成功!", "提示");rn lk.Close();rn rn elsern rn MessageBox.Show("修改失败!", "提示");rn lk.Close();rn rn怎么处理呢
这是什么地方出错呢~~~?
我的数据库中lx ml 是文本类型的 js 是备注类型的!代码是这样的:rnrnrn rn------------调试结果是这样的~rn错误类型:rnADODB.Recordset (0x800A0BB9)rn参数类型不正确,或不在可以接受的范围之内,或与其他参数冲突。rn/my/admin/newsaddchk.asp, 第 7 行rn要怎么改呢?~~~
策略模式和工厂模式有啥区别呢?
google的结果:n 策略模式:定义算法族,分别封装起来,让他们之间可以相互替换,此模式让算法的变化独立于使用算法的客户。 n 简单工厂:将对象的创建完全独立出来,让对象的创建和具体的使用客户无关。 n 简单工厂严格意义上不是一种设计模式,只能是一种良好的编程习惯。n  n 里面还特意说了,(Strategy 适合下列场合:n1.以不同的格式保存文件;)n  n 我现在就要做文件的下载,csv xml pdf xls 四种格式。n  n 使用工厂模式:n 客户端类+工厂类+接口类+4个具体实现类 总共7个类n 使用策略模式:n 客户端类+调用那个接口的类+工厂类+接口类+4个具体实现类 总共8个类n  n 而且也没发现策略比工厂哪里更好一些。。。谁来帮忙解读一下啊?谢谢啦~~ <em>问题</em>补充 那还是工厂算了。。。感觉确实都一样。。。
啥也不想干的时候怎么办呢?
心情札记
Repeater控件为什么啥也不显示呢
沒有执行.aspx代码,应该是执行完Repeater1.DataBind();后再执行aspx文件中Eval那里才对啊,为什么直接就执行con.Close();rnrnrn.aspx代码:rnrnrnrnrnrnrn 无标题页rnrnrn 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 rnrnrnrn.cs代码:rnusing System;rnusing System.Data;rnusing System.Data.SqlClient;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;rnrnpublic partial class _Default : System.Web.UI.Page rnrn string ConStr = (string)ConfigurationManager.ConnectionStrings["9957_PRODUCT_SMSConnectionString"].ConnectionString;rn protected void Page_Load(object sender, EventArgs e)rn rn SqlConnection con = new SqlConnection(ConStr);rn SqlCommand com=new SqlCommand("select * from 学生",con);rn con.Open();rn SqlDataReader dr=com.ExecuteReader();rn Repeater1.DataSource = dr;rn Repeater1.DataBind();rn con.Close();rn rnrnrnrnrn我的表里有数据的。rnrn我调试的dr.Depth=0 dr.FieldCount=13 dr.HasRows=true dr.IsColsed=False dr.RecordsAffected=-1 dr.VisibleFieldCount=13rnRepeater1里面相应的属性值也同上,是一样的!rnrn加上这句:rn if (dr.Read())rn rn Response.Write(dr[1]);rn rn输出值正确啊rn?rnrn
有啥错误呢 盼指教
[code=C/C++] #include rnmain()rnrnFILE*fp;rnfp=fopen("oi.txt","w+");rnchar cizu[3];rn cizu[0]='a';rn cizu[1]='n';rn cizu[2]='p';rnfputs(cizu,fp);rnfclose(fp);rn[/code]
winpcap 捕获不到数据包 啥原因呢?
我下载的是最新的winpcap 4.1.2源码和开发包,用了开发包里的一个例子,头文件和lib裤都包含后编译,通过 执行时 执行抓包函数时, 抓不到包 是什么原因呢 返回值 是 0 就是没有抓到数据包。winpcap和packet还要编译dll么 ,在哪有这两个dll呀, 我机器上找不到,但是程序怎么编译通过的, 还能运行呀, lib不是导入库么 还要有dll呀 我本机上装有sniff抓包工具 都可以抓包的。 第一次用这个winpcap,请高手指点下呀
c#中报表的作用是啥呢?
c#中有个报表,不知道报表的主要作用于哪些领域,和它的作用是什么?
Entity和model有啥区别呢
情况是怎么个情况? 以前一直以为这俩是一个意思,后来做项目的时候发现,项目里面同时有Entity和model,那么这是为啥呢 后来才知道model是用于前端页面数据展示用,Entity则是与数据库进行交互做存储用途...
大家都在做啥项目呢?
做应用的都在做啥
c#和c#builder是啥关系呢?
3Q~
SUSE 和 SLSE 有啥区别呢?
用xmanger连SLSE一直黑屏,该如何处理?rnsuse能连上,防火墙都给禁了
ruby中的字面常量$/是啥呢?
在ruby文档中有如下一句:rnios.gets(sep=$/) → string or nilrnsep参数的默认值是$/,不明白是啥意思?
看看这是啥问题
void __fastcall TForm1::Panel7Click(TObject *Sender)rnrn Image2->Canvas->Brush->Color=Panel7->Color;rn Image2->Canvas->Pen->Color=Panel7->Color;rn Image2->Canvas->Rectangle(1,1,16,15);rnrnrn运行后提示:Identifier 'Panel7Click' cannot have a type qualifier;rnDeclaration missing;rnCompound statement missing;rnrn是什么意思 啊?rnrn
到底是啥问题
我用NET 写了个小网站,主要功能是上传和下载文件,系统是win2003+iis,网站运行后发现,每当上传一个文件后,在c:\windows\tmp里面就产生一个tmp临时文件,时间久了临时文件就多起来,怎么删都删不掉,删除时候提示已被别的程序使用。有2个<em>问题</em>不明白:rn1、IIS做网站服务器是不是每上传一个文件就会产生一个临时文件?rn2、临时文件为什么无法删除?(除非重启服务器后才可以删除)
jaxrpc.jar下载
jaxrpc.jar 相关下载链接:[url=//download.csdn.net/download/wuwenlong527/337291?utm_source=bbsseo]//download.csdn.net/download/wuwenlong527/337291?utm_source=bbsseo[/url]
ASP.NET 中文版(第3版).pdf [ASPN.1]下载
---------------------------- 这个可能是错误的ASPN.1!请下载另外那个ASPN.1 ---------------------------- 本书主要介绍.NET平台和ASP.NET;HTML编程基础;比较ASP和ASP.NET;ASP.NET中的事件;比较HTML控件和ASP控件;基本的ASP控件API;代码隐藏窗体;使用Visual Studio .NET集成开发环境;跟踪,调试和错误处理;ASP.NET中的验证控件;数据绑定技术基础;列表控件和DataGrid控件;ADO.NET指南;调用存储过程;更新数据库记录;Repeater和DataList控件 相关下载链接:[url=//download.csdn.net/download/jakeykings/2423010?utm_source=bbsseo]//download.csdn.net/download/jakeykings/2423010?utm_source=bbsseo[/url]
指纹考勤系统源码.rar下载
指纹考勤系统源码.rar 指纹考勤系统源码.rar 相关下载链接:[url=//download.csdn.net/download/bb22110/4143648?utm_source=bbsseo]//download.csdn.net/download/bb22110/4143648?utm_source=bbsseo[/url]
相关热词 c++和c#哪个就业率高 c# 批量动态创建控件 c# 模块和程序集的区别 c# gmap 截图 c# 验证码图片生成类 c# 再次尝试 连接失败 c#开发编写规范 c# 压缩图片好麻烦 c#计算数组中的平均值 c#获取路由参数
我们是很有底线的