帮我看看了,这段代码的错误。50分 [问题点数:50分,结帖人rednod]

Bbs1
本版专家分:11
结帖率 100%
Bbs9
本版专家分:57445
Bbs1
本版专家分:11
Bbs7
本版专家分:10443
Blank
红花 2007年10月 Oracle大版内专家分月排行榜第一
Blank
黄花 2007年9月 Oracle大版内专家分月排行榜第二
Bbs4
本版专家分:1333
看看代码有何错误50
提示信息:rn<em>错误</em>170:第6行:‘:’附近有语法<em>错误</em>。在关键字then附近有语法<em>错误</em>rnrnCREATE TRIGGER liu_kill ON [dbo].[persondossier] rnFOR INSERTrnASrndeclare @liu intrn select count(*)rn into :liurn from persondossierrnrnif liu>1000 thenrn rollback;rnelserncommit;rnend ifrn
50看看代码!谢谢了。
我想把存储过程的内容写的<em>代码</em>里,我是这样做的。rn但调试通不过。rn<em>帮</em>我<em>看看</em>是怎么一回事呀。谢谢!!!!!!!!!!1111rnString[] CheckLogin;rn SqlConnection myConnection = new SqlConnection(ConfigurationSettings.AppSettings["ConnectionString"]);rn string find = "select EmpID from T_docInfo where LoginID = @loginid "rn + " if (@@RowCount; rn rn SqlCommand myCommand = new SqlCommand(find, myConnection);rn
50!!!看看代码怎么了。谢谢
<em>代码</em>:rnprivate void DengluButt_Click(object sender, System.EventArgs e)rn rn string strconn="server=lqna;uid=sa;pwd=liqiang;database=pubs;";rn string strcmd="select userpwd from user where username='"+this.txt_Name.Text.Trim()+"'";rn SqlConnection conn=new SqlConnection(strconn);rn SqlCommand cmd = new SqlCommand(strcmd,conn);rn conn.Open();rn rn SqlDataReader sdr = cmd.ExecuteReader();rn rn while(sdr.Read())rn rn rn if(this.PasswordBox.Text.Trim()==sdr["userpwd"].ToString())rn rn rn Response.Redirect("RadioButtonList.aspx");rnrn rn elsern rn this.Result.Text = "密码<em>错误</em>或不存在该用户";rn rn rn rn sdr.Close();rn conn.Close();rn rnrnrnrnrn运行时<em>错误</em>:rn在关键字 'user' 附近有语法<em>错误</em>。 rn说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该<em>错误</em>以及<em>代码</em>中导致<em>错误</em>的出处的详细信息。 rnrn异常详细信息: System.Data.SqlClient.SqlException: 在关键字 'user' 附近有语法<em>错误</em>。rnrn源<em>错误</em>: rnrnrn行 63: conn.Open();rn行 64: rn行 65: SqlDataReader sdr = cmd.ExecuteReader();rn行 66: rn行 67: while(sdr.Read())rn rnrn源文件: c:\inetpub\wwwroot\webdiary\login.aspx.cs 行: 65 rnrn
大家看看我这代码错误在哪里呢?
中定义了:rnrn rn rnrn但是在jsp中用的时候rn rnrn却显示<em>错误</em>呢?究竟错在哪里呢?
谁会不?看看了!
为什么我这样写程序,调用文件导入时,数据可以正确地导入到数库中,但是导入完成的时候,就是死机?为什么会这样子?rnPrivate Sub Command36_Click()rnOn Error GoTo ErrHandler '出现<em>错误</em>信息时跳到Errhandlerrn DoCmd.RunCommand acCmdImport '调用菜单中的文件导入rnExitHandle:rn Exit Sub '<em>错误</em>退出rnErrHandler: '<em>错误</em>问题rn Select Case Err.Numberrn Case 2<em>50</em>1rn 'Do nothing as cancel selected by userrn Resume ExitHandlern Case Elsern MsgBox Err.Number & vbCrLf & Err.Descriptionrn Resume ExitHandlern End SelectrnrnEnd Sub
各位老大看看了!
各位老大 怎么样让程序能检测到 移动存储器的存在 (mp3) ,并且可以往里面写数据
看看了!有!!
public class Day rnrn public static void main(String args[]) rn rn String m;rn for (int i=0;i
老大们我看这代码!
rn rn rnrnrn<%rnend if
我看这代码是什么作用...
-
看谁能我解释一下这代码
[code=C#]rnrnstring str="";rn object obj2=new object();rn RegistryKey key;rn tryrn rn str = @"software\Nstarry\WisdomGPS_Taxi\ConectDbInfo";rn key = Registry.LocalMachine.OpenSubKey(str, false);rn if (key == null)rn rn key = Registry.LocalMachine.CreateSubKey(str);rn rn ModPublic.g_sServerName = StringType.FromObject(key.GetValue("ServerName", "127.0.0.1"));rn ModPublic.g_sDatabaseName = StringType.FromObject(key.GetValue("DatabaseName", "WisdomGPS_Taxi"));rn ModPublic.g_sDbUserName = StringType.FromObject(key.GetValue("DbUserName", "sa"));rn ModPublic.g_sDbPassWord = StringType.FromObject(key.GetValue("DbPassWord", "sa"));rn ModPublic.g_sDefaultMapName = StringType.FromObject(key.GetValue("DefaultMapName", FilePathToPath(Assembly.GetExecutingAssembly().Location) + @"\Map\深圳地图.gst"));rn ModPublic.g_sWorkStationIP = StringType.FromObject(key.GetValue("WorkStationIP", "127.0.0.1"));rn ModPublic.g_sWorkStationPort = StringType.FromObject(key.GetValue("WorkStationPort", "6053"));rn ModPublic.g_sVoiceFileName = StringType.FromObject(key.GetValue("VoiceFileName", System.Windows.Forms.Application.StartupPath + @"\Sound\MSG.WAV"));rn ModPublic.StrLashUp = StringType.FromObject(key.GetValue("VoiceLashUp", ""));rn ModPublic.StrTheftproof = StringType.FromObject(key.GetValue("VoiceTheftproof", ""));rn ModPublic.StrWatchful = StringType.FromObject(key.GetValue("VoiceWatchful", ""));rn ModPublic.StrSlopOver = StringType.FromObject(key.GetValue("VoiceSlopOver", ""));rn ModPublic.StrParking = StringType.FromObject(key.GetValue("VoiceParking", ""));rn ModPublic.StrOverSpeed = StringType.FromObject(key.GetValue("VoiceOverSpeed", ""));rn ModPublic.StrNetWork = StringType.FromObject(key.GetValue("VoiceNetWork", ""));rn ModPublic.StrTurnOff = StringType.FromObject(key.GetValue("VoiceTurnOff", ""));rn ModPublic.StrMenCi = StringType.FromObject(key.GetValue("VoiceMenCi", ""));rn ModPublic.StrUnlawDoorOpen = StringType.FromObject(key.GetValue("VoiceUnlawDoorOpen", ""));rn ModPublic.StrShake = StringType.FromObject(key.GetValue("VoiceShake", ""));rn ModPublic.StrTiredDrive = StringType.FromObject(key.GetValue("VoiceTiredDrive", ""));rn ModPublic.StrUnlawOilMOpen = StringType.FromObject(key.GetValue("VoiceUnlawOilMOpen", ""));rn ModPublic.StrFengQianOutLine = StringType.FromObject(key.GetValue("VoiceFengQianOutLine", ""));rn ModPublic.StrFengQianNoClose = StringType.FromObject(key.GetValue("VoiceFengQianNoClose", ""));rn ModPublic.StrStopNoFlameOut = StringType.FromObject(key.GetValue("VoiceStopNoFlameOut", ""));rn ModPublic.StrUnlawMove = StringType.FromObject(key.GetValue("VoiceUnlawMove", ""));rn ModPublic.StrUnlawTurnOn = StringType.FromObject(key.GetValue("VoiceUnlawTurnOn", ""));rn ModPublic.StrUnlawOilUse = StringType.FromObject(key.GetValue("VoiceUnlawOilUse", ""));rn ModPublic.StrSMSOver = StringType.FromObject(key.GetValue("VoiceSMSOver", ""));rn ModPublic.StrUnlawEngineGOpen = StringType.FromObject(key.GetValue("VoiceUnlawEngineGOpen", ""));rn ModPublic.StrUnlawSupportOpen = StringType.FromObject(key.GetValue("VoiceUnlawSupportOpen", ""));rn ModPublic.StrUnlawEngineDOpen = StringType.FromObject(key.GetValue("VoiceUnlawEngineDOpen", ""));rn ModPublic.StrUnlawGetIn = StringType.FromObject(key.GetValue("VoiceUnlawGetIn", ""));rn ModPublic.StrLineShort = StringType.FromObject(key.GetValue("VoiceLineShort", ""));rn ModPublic.StrLineTurnOff = StringType.FromObject(key.GetValue("VoiceLineTurnOff", ""));rn ModPublic.StrFailureGPS = StringType.FromObject(key.GetValue("VoiceFailureGPS", ""));rn ModPublic.StrOtherVoice = StringType.FromObject(key.GetValue("VoiceOther", ""));rn ModPublic.BlnEncryptMap = BooleanType.FromObject(key.GetValue("EncryptMap", true));rn ModPublic.BlnRefresh = BooleanType.FromObject(key.GetValue("Refresh", true));rn ModPublic.BlnSameDb = BooleanType.FromObject(key.GetValue("SameUserCommDb", true));rn rn catch (Exception exception1)rn rn ProjectData.SetProjectError(exception1);rn Exception exception = exception1;rn WriteErrToFile(Strings.Format(DateAndTime.Now, "HH:mm:ss") + " " + exception.StackTrace + exception.Message);rn ProjectData.ClearProjectError();rn rn tryrn rn str = @"software\Nstarry\WisdomGPS_Taxi\SysParameter";rn key = Registry.LocalMachine.OpenSubKey(str, false);rn if (key == null)rn rn key = Registry.LocalMachine.CreateSubKey(str);rn rn ModPublic.g_bShowFontBack = BooleanType.FromObject(key.GetValue("ShowFontBack", 1));rn ModPublic.g_bShowAllBz = BooleanType.FromObject(key.GetValue("ShowAllBz", 1));rn ModPublic.g_iBznr = IntegerType.FromObject(key.GetValue("Bznr", 2));rn ModPublic.g_itySize = IntegerType.FromObject(key.GetValue("tySize", 0x10));rn ModPublic.g_lFontColor = IntegerType.FromObject(key.GetValue("FontColor", 0));rn ModPublic.g_lFontBackColor = IntegerType.FromObject(key.GetValue("FontBackColor", 0xffffff));rn ModPublic.g_bAutoBz = BooleanType.FromObject(key.GetValue("AutoBz", 1));rn ModPublic.g_cMaxZoom = DoubleType.FromObject(key.GetValue("MaxZoom", 0x2bf20));rn ModPublic.g_cMinZoom = DoubleType.FromObject(key.GetValue("MinZoom", 0));rn ModPublic.g_bVehLayer = BooleanType.FromObject(key.GetValue("VehLayer", 0));rn ModPublic.g_bmrLoginFlag = BooleanType.FromObject(key.GetValue("mrLoginFlag", 0));rn ModPublic.g_smrLoginUser = StringType.FromObject(key.GetValue("mrLoginUser", ""));rn ModPublic.g_smrLoginWord = StringType.FromObject(key.GetValue("mrLoginWord", ""));rn ModPublic.g_smrHbTel = StringType.FromObject(key.GetValue("mrHbTel", 0x11991b9edeL));rn ModPublic.g_smrTimeJg = StringType.FromObject(key.GetValue("mrTimeJg", "60"));rn ModPublic.g_smrMileJg = StringType.FromObject(key.GetValue("mrMileJg", "3000"));rn ModPublic.g_bShowDq = BooleanType.FromObject(key.GetValue("g_bShowDq", 1));rn ModPublic.g_bShowTq = BooleanType.FromObject(key.GetValue("g_bShowTq", 1));rn ModPublic.g_bShowYysj = BooleanType.FromObject(key.GetValue("g_bShowYysj", 1));rn ModPublic.g_bShowZt = BooleanType.FromObject(key.GetValue("g_bShowZt", 1));rn ModPublic.g_bShowYyZt = BooleanType.FromObject(key.GetValue("g_bShowYyZt", 1));rn ModPublic.g_bShowBb = BooleanType.FromObject(key.GetValue("g_bShowBb", 1));rn ModPublic.g_bShowCall = BooleanType.FromObject(key.GetValue("g_bShowCall", 1));rn ModPublic.g_bMouse = BooleanType.FromObject(key.GetValue("Mouse", 0));rn ModPublic.g_bGzAlarmVeh = BooleanType.FromObject(key.GetValue("GzAlarmVeh", 1));rn ModPublic.g_bGzCallVeh = BooleanType.FromObject(key.GetValue("GzCallVeh", 1));rn ModPublic.g_bAutoSend = BooleanType.FromObject(key.GetValue("AutoSend", 1));rn ModPublic.g_bOpenViewVeh = BooleanType.FromObject(key.GetValue("OpenVeh", 1));rn ModPublic.g_bYueJieType = BooleanType.FromObject(key.GetValue("g_bYueJieType", 1));rn ModPublic.g_iBaiXu = IntegerType.FromObject(key.GetValue("BaiXu", 1));rn ModPublic.IntEmptyStyle = IntegerType.FromObject(key.GetValue("EmptyStyle", 0xd9));rn ModPublic.IntHeaviestStyle = IntegerType.FromObject(key.GetValue("HeaviestStyle", 0x22));rn ModPublic.BlnUpAlarm = BooleanType.FromObject(key.GetValue("UpAlarm", false));rn ModPublic.g_curLanguage = StringType.FromObject(key.GetValue("Language", "zh-CHS"));rn ModPublic.g_Color = BooleanType.FromObject(key.GetValue("VehColor", 1));rn ModPublic.g_VehlistTime = IntegerType.FromObject(key.GetValue("VehlistTime", 30));rn ModPublic.g_VehlistFontColor = IntegerType.FromObject(key.GetValue("VehlistFontColor", 0xc0ffc0));rn ModPublic.g_VehlistBJcolor = IntegerType.FromObject(key.GetValue("VehlistBJcolor", 0xffff00));rn ModPublic.g_VehlistOrientationB = IntegerType.FromObject(key.GetValue("VehlistOrientationB", 0xff00ff));rn ModPublic.g_WindowsMode = BooleanType.FromObject(key.GetValue("WindowsMode", true));rn ModPublic.g_UserMode = StringType.FromObject(key.GetValue("UserMode", 1));rn rn catch (Exception exception3)rn rn ProjectData.SetProjectError(exception3);rn Exception exception2 = exception3;rn WriteErrToFile(Strings.Format(DateAndTime.Now, "HH:mm:ss") + " " + exception2.StackTrace + exception2.Message);rn ProjectData.ClearProjectError();rn rn return obj2;rn rnrn[/code]
兄弟门救命,我看这代码
我在做表单的编码自动计算:rn 在表单的WebQuerySave中写入@If(number="";@Command ([ToolsRunMacro]; "number");"") //number为编码域rn代理的内容:rn Sub Initializern Dim se As New notessessionrn Dim doc As notesdocumentrn Dim docA As notesdocumentrn Dim db As notesdatabasern Dim view As notesviewrn Dim item As notesitem rn Dim bh As Integerrn Dim number As Stringrn Dim bm As Stringrn Dim number1 As String rn Dim num As String rn Dim aa As String rn Dim form As Stringrn rn Set doc=se.Documentcontextrn Set db=se.currentdatabase rn form=doc.form(0) rnrn rn Select Case formrn Case "DoorCard":Set view=db.Getview("DoorCardView") '门卡申请单rn bm="MK"+Left(Cstr(doc.ApplyDate(0)),4)rn Case "ExpenseAudit":Set view=db.Getview("ExpenseAuditView") '报销申请单rn bm="BX"+Left(Cstr(doc.ApplyDate(0)),4)rn Case "DoonErrand":Set view=db.Getview("DoonErrandView") '出差申请单rn bm="CC"+Left(Cstr(doc.ApplyDate(0)),4)rn Case "MeetingRoom":Set view=db.Getview("MeetingRoomView") '会议室申请单rn bm="HY"+Left(Cstr(doc.ApplyDate(0)),4)rn Case "OverTime":Set view=db.Getview("OverTime") '加班申请单rn bm="JB"+Left(Cstr(doc.ApplyDate(0)),4)rn Case "LeaveApplication":Set view=db.Getview("LeaveApplication") '请假申请单rn bm="QJ"+Left(Cstr(doc.ApplyDate(0)),4)rn Case "StayOut":Set view=db.Getview("StayOut") '外出申请单rn bm="GC"+Left(Cstr(doc.ApplyDate(0)),4)rn Case "UseMoney":Set view=db.Getview("UseMoneyView") '用款申请单rn bm="YK"+Left(Cstr(doc.ApplyDate(0)),4)rn Case "UsePrint":Set view=db.Getview("UsePrint") '用印申请单rn bm="YY"+Left(Cstr(doc.ApplyDate(0)),4)rn ' Case "":Set view=db.Getview("") rn End Selectrn rn'page1: rn rn Set docA=view.GetFirstDocument //视图是降序的rn rn aa="0"rn While Not (docA Is Nothing) rn number=docA.number(0)rn number1=Left(number,6)rn num=Right(number,4) rn rn If number1<>bm Thenrn Goto nextyearrn End Ifrn rn 'Print numberrn rn bh=Cint(num)+1rn rn If bh>1 And bh99 And bh)rn Call doc.Save( True, True )rn rn End Ifrn rnEnd Subrnrn在做第一个工作时还挺快,但在做第二个共做时就非常的慢,cup的占用率很高,不知道是不是我的代理有问题?希望兄弟们赶快给我答案,救命的!!!!
我看这代码有什么用??
我在一个ASP程序里用了大量的:application,session,cookies ,想让其时间更长。rn rnrn1。以上是global.asa文件,我的目的是让SESSION的有效时间为一天,这样写对吗?rn2。application.cookies如果要有一天如果写呢大家<em>帮</em>我写一下!rn3。在用到session的ASP文件里是否还要写调用?rn
我看这代码,不怎么理解
[code=JScript]rnrnvar Douban=new Object();rnrnDouban.EventMonitor = function()rn this.listeners = new Object();rnrnDouban.EventMonitor.prototype.broadcast=function(widgetObj, msg, data)rn var lst = this.listeners[msg];rnrn if(lst != null)rn for(var o in lst)rn lst[o](widgetObj, data);rn rn rnrnDouban.EventMonitor.prototype.subscribe=function(msg, callback)rn var lst = this.listeners[msg];rn if (lst) rn lst.push(callback);rn else rn this.listeners[msg] = [callback];rn rnrnDouban.EventMonitor.prototype.unsubscribe=function(msg, callback)rn var lst = this.listener[msg];rn if (lst != null)rn lst = lst.filter(function(ele, index, arr)return ele!=callback;);rn rnrnrn// Page scope event-monitor obj.rnvar event_monitor = new Douban.EventMonitor();rnrnfunction load_event_monitor(root) rn var re = /a_(\w+)/;rn var fns = ;rn $(".j", root).each(function(i) rn var m = re.exec(this.className);rn if (m) rn var f = fns[m[1]];rn if (!f) rn f = eval("Douban.init_"+m[1]);rn fns[m[1]] = f;rn rn f && f(this);rn rn );rnrnrn$(function() rn load_event_monitor(document);rn);rn[/code]
我看一这代码
rnrnrn出现<em>错误</em> :rnMicrosoft VBScript 运行时<em>错误</em> (0x800A01A8)rn/email/P_SendMail.asp, 第 28 行rn
Ajax错误 路过看看
一下<em>错误</em>时怎么回事啊! 请各位大侠多来指点rn[img=http://hi.csdn.net/attachment/201003/30/1913060_1269939014rqL1.jpg][/img]
忙,我看几句话,50
这是数据结构rntypedef struct tagMD5CTXType rn DWORD aState[4];//记录数据的变化状态rn DWORD aCount[2];//记录数据的原始长度(以bit为单位)rn BYTE aBuffer[64];//原始数据rn MD5CTXType,*MD5CTXPtr;rnrn这个是程序:rn MD5CTXType struContext;rn p=(LPBYTE)struContext.aState;rn for(i=0;i
我看下这代码有什么错误
if (frmNnet->StrSx[i][j]== "modify")rn rn WorkSheet1.OlePropertyGet( "Cells ",i+3,j-1).OlePropertyGet( "Font").OlePropertySet( "Color",RGB(0,0,255) );rn rnrn运行后显示EOleSysError with message"未知名称"
求救!!看看代码错误..
[code=C/C++]#include rn#include rnstruct nodern char name[15];rn char tele[11];rn char add[40];rnnum[30],num2[<em>50</em>];rnint number=-1;rnstruct node num2[<em>50</em>]='\0','\0','\0';rnint d[]=1,2,3,4,5,6,7,8,9,10,11;rnvoid menu()rn printf("\n");rn printf("|=============================================================|\n");rn printf("|1.(input the record). |\n");rn printf("|2.(according to telephone number to build the list). |\n");rn printf("|3.(according to name to build the list). |\n");rn printf("|4.(find the record according to telephone number). |\n");rn printf("|5.(find the record according to name). |\n");rn printf("|6.(clear the record). |\n");rn printf("|7.(quit). |\n");rn printf("|=============================================================|\n");rnrnrnvoid input()rn char ch='y';rn while(ch=='Y'||ch=='y')rn rn number++;rn printf("\ninput name: ");rn scanf("%s",num[number].name);rn printf("\ninput phone number: ");rn scanf("%s",num[number].tele);rn printf("\ninput address: ");rn scanf("%s",num[number].add);rn printf("Do you want to input next record?(y or n): ");rn scanf("%c",&ch);rn rnrnrnint hash_tele()rnrn int y=0,key=0,j=0,x=0;rn while(y);rn exit(0);rn default:break;rn rn return 0;rnrnrn[/code]rn我是想做一个电话号码查询系统,题目要求如下,上面是我写的一些<em>代码</em>,函数没写全,只写了几个。rn散列表的设计与实现rn 问题描述rn设计散列表实现电话号码查找系统。rn 基本要求及功能rn(1)设每个记录有下列数据项:电话号码、用户名、地址;rn(2)从键盘输入各记录,<em>分</em>别以电话号码和用户名为关键字建立散列表;rn(3)采用一定的方法解决冲突;rn(4)查找并显示给定电话号码的记录;rn(5)查找并显示给定用户名的记录。rn 测试数据rn至少20个电话号码。rnrn请大家指出我的<em>错误</em>。非常感谢!!!
看看代码什么错误 ?
Private Sub DataGrid_yuangong_ItemCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles DataGrid_yuangong.ItemCommandrn Dim zhigong_hao As Integerrn Dim index As Integer = DataGrid_yuangong.CurrentPageIndexrn Dim dtable As DataTable = New DataTablern dtable = CType(Me.DataGrid_yuangong.DataSource, DataTable)rn zhigong_hao = dtable.Rows(0)("id")rn Response.Write(zhigong_hao)rn End Subrnrnzhigong_hao = dtable.Rows(0)("id") 这行有<em>错误</em> rn<em>错误</em>信息 :Object reference not set to an instance of an object.rnrn
看看代码错误,谢谢
[code=C/C++]rnrnclass windowsFactory;rn class linuxFactory;rnrn class factoryrn public:rn factory()rn virtual void makeButton();rnrn enum factoryType WINDOWS, LINUX;rnrn factory* getFactory(factoryType type)rn switch(type)rn case WINDOWS:rn return new windowsFactory();break; // 有错 no appropriate default constructor availablern case LINUX:rn return new linuxFactory(); break; // 有错 no appropriate default constructor availablern rn ;rn ;rnrnrn class windowsFactory: public factoryrn public:rn windowsFactory(): factory()rn void makeButton()rn cout<< "windows button maked \n;";rn rn ;rn class linuxFactory: public factoryrn public:rn linuxFactory(): factory()rn void makeButton()rn cout<< "linux button maked \n;";rn rn ;rnrn[/code]rnrn请问,问什么有错啊,我已经为windowsFactory和linuxFactory定义构造函数了啊
看看代码是什么错误!
using System.Runtime.InteropServices;rnusing System;rnusing System.Text;rnrnnamespace _1rnrn /// rn /// Class1 的摘要说明。rn /// rn class Class1rn rn rn [DllImport("GatewayClient.dll")]rn rn public static extern int ReceiveSM(ref bool iIsReport,StringBuilder isbSource,ref int iiSMBytes,StringBuilder sbiRcvSM,StringBuilder sbMsgiID,ref int nStatus);rn rn private StringBuilder sbSource = new StringBuilder(null, 32);rn private StringBuilder sbMsgID = new StringBuilder(null, 8);rn private StringBuilder sbRcvSM = new StringBuilder(null, 256);rn private int nStatus = 1;rn private bool IsReport = false;rn private int iSMBytes = 0;rn private string strFeeType;rn private string strServiceID;rn rn /// rn /// 应用程序的主入口点。rn /// rn [STAThread]rn static void Main(string[] args)rn rn iResult=ReceiveSM(ref IsReport,sbSource,ref iSMBytes, sbRcvSM, sbMsgID, ref nStatus);rnrn rn rnrnrnrn提示:rnrnE:\DVSOFT\test\1\Class1.cs(58): 非静态的字<em>段</em>、方法或属性“_1.Class1.IsReport”要求对象引用rnrnrnrn另我是引用VC的一个DLL,说明如下,我引用和声明的对吗?rnrnint __stdcall ReceiveSM(BOOL *IsReport, char* Source, int *SMLength,char* SMContent, char* MsgID, int *State)rn使用方法:如果SendSM的Registered位被置为true,且收到状态报告,则IsReport返回true,此时Source、MsgID和State参数有效;否则,IsReport返回false,Source、RcvBuffer、SMBytes参数有效。rn输入参数:rn无;rn 输出参数:rn IsReport:收到的短信是否是状态报告;rn Source:收到的短信的发送源地址(源手机号码);rn SMBytes:如果收到的短信不是状态报告,此参数表示收到的短信的字节长度;rn RcvSM:如果收到的短信不是状态报告,此参数表示收到的短信内容;rn MsgID:如果收到的短信状态报告,此参数表示是标识为MsgID的短信状态报告;rn State:如果收到的短信是状态报告,此参数表示标识为MsgID的短信的状态;rn返回值:rn0 成功;rn1 没有消息;rn2 用户未登陆;rn3 参数<em>错误</em>;rn4 网络连接失败;rnrnrn
我找找这在线代码错误
//+-----------add guests to online file-----------------rnfunction add_guest() rnrn rnglobal $timestamp,$ip,$online_limit,$forumid,$browser,$opersys;rnrnrn$onlinefile="../data/online.php";rnif(file_exists($onlinefile))rnrn$data=file($onlinefile);rnforeach($data as $datadetail)rn $dataline=explode("|",$datadetail);rn if(($dataline[1]-$timestamp));rnflock($fp,LOCK_EX);rnfor($a=0;$a
我看一下,这代码错误
我写的一个博客,这个页面是显示日志的标题等正文的rn[code=Java]rnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn[/code]
我看下这代码有什么错误
rn  rn rn rn rn
高手看看代码那有错误
rnDim cnn As New ADODB.ConnectionrnDim rst As New ADODB.RecordsetrnDim str1 As StringrnDim str2 As StringrnDim str3 As StringrnDim str4 As StringrnrnPrivate Sub Command1_Click()rn ' txtnullrn rn suo (False)rn DataGrid1.Enabled = Falsern Command1.Enabled = Falsern Command3.Enabled = Truern Command4.Enabled = Truern Command5.Enabled = Falsern rnEnd SubrnrnPrivate Sub Command2_Click()rn Adodc1.Refreshrn rnEnd SubrnrnPrivate Sub Command3_Click()rn Dim cn As New ADODB.Connectionrn rn If funnull = False Thenrn str4 = "insert into 交易(衣服编号,衣服颜色,衣服样式,送衣时间,取衣时间,洗衣单价,洗衣方式,顾客姓名)&values( '" & Trim(Text1) & "','" & Trim(Text2) & "','" & Trim(Text3) & "','" & Trim(Text4) & "','" & Trim(Text5) & "','" & Trim(Text6) & "','" & Trim(Text7) & "','" & Trim(Text8) & "')"rn cn.ConnectionString = connrn cn.Openrn cn.Execute str4rn rn rn rn rn rn Command3.Enabled = Falsern Command4.Enabled = Falsern DataGrid1.Enabled = Truern Command1.Enabled = Truern Command5.Enabled = Truern cn.Closern Set cn = Nothingrn rn End Ifrn Form_Loadrn rn rn rnEnd SubrnrnPrivate Sub Command4_Click()rn DataGrid1.Enabled = Truern Command1.Enabled = Truern Command3.Enabled = Falsern Command4.Enabled = Falsern Command5.Enabled = Truern rnEnd SubrnrnPrivate Sub Command5_Click()rn Endrn rnEnd SubrnrnPrivate Sub DataGrid1_Click()rn rn str2 = "select * from 交易"rn On Error Resume Nextrn rn cnn.ConnectionString = connrn cnn.Openrn Set rst.ActiveConnection = cnnrn rst.Open str2rn If Not rst.EOF Thenrn rn rn With Adodc1.Recordsetrn Text1.Text = .Fields("衣服编号")rn Text2.Text = .Fields("衣服颜色")rn Text3.Text = .Fields("衣服样式")rn Text4.Text = .Fields("送衣时间")rn Text5.Text = .Fields("取衣时间")rn Text6.Text = .Fields("洗衣单价")rn Text7.Text = .Fields("洗衣方式")rn Text8.Text = .Fields("顾客姓名")rn End Withrn rn End Ifrn rst.Closern cnn.Closern Set rst = Nothingrn rn Set cnn = Nothingrn rnEnd SubrnrnPrivate Sub Form_Load()rn rnsuo (True)rnrnrn Command3.Enabled = Falsern Command4.Enabled = Falsern rn str1 = "select * from 交易"rn rn Adodc1.ConnectionString = connrn Adodc1.RecordSource = str1rn Set DataGrid1.DataSource = Adodc1rn DataGrid1.Columns(0).Visible = Falsern DataGrid1.AllowAddNew = Falsern DataGrid1.AllowUpdate = Falsern 'Adodc1.Refreshrn DataGrid1.RefreshrnEnd SubrnrnrnPrivate Sub suo(bshow As Boolean)rn Text1.Locked = bshowrn Text2.Locked = bshowrn Text3.Locked = bshowrn Text4.Locked = bshowrn Text5.Locked = bshowrn Text6.Locked = bshowrn Text7.Locked = bshowrn Text8.Locked = bshowrnEnd SubrnrnrnPrivate Function funnull() As Booleanrn If Trim(Text1) = "" Thenrn MsgBox "衣服编号不可以为空!", 64, "提示"rn funnull = Truern Text1.SetFocusrn Exit Functionrn End Ifrn If Trim(Text2) = "" Thenrn MsgBox "衣服颜色不可以为空!", 64, "提示"rn funnull = Truern Text2.SetFocusrn Exit Functionrn End Ifrn If Trim(Text3) = "" Thenrn MsgBox "衣服样式不可以为空!", 64, "提示"rn funnull = Truern Text3.SetFocusrn Exit Functionrn End Ifrn If Trim(Text4) = "" Thenrn MsgBox "送衣时间不可以为空!", 64, "提示"rn funnull = Truern Text4.SetFocusrn Exit Functionrn End Ifrn If Trim(Text5) = "" Thenrn MsgBox "取衣服时间不可以为空!", 64, "提示"rn funnull = Truern Text5.SetFocusrn Exit Functionrn End Ifrn If Trim(Text6) = "" Thenrn MsgBox "洗衣价格不可以为空!", 64, "提示"rn Text6.SetFocusrn funnull = Truern Exit Functionrn End Ifrn If Trim(Text7) = "" Thenrn MsgBox "洗衣方式不可以为空!", 64, "提示"rn Text7.SetFocusrn funnull = Truern Exit Functionrn End Ifrn If Trim(Text8) = "" Thenrn MsgBox "顾客姓名不可以为空!", 64, "提示"rn Text8.SetFocusrn funnullrn Exit Functionrn End Ifrn rnEnd FunctionrnrnrnPrivate Sub txtnull()rn Text1 = ""rn Text2 = ""rn Text3 = ""rn Text4 = ""rn Text5 = ""rn Text6 = ""rn Text7 = ""rn Text8 = ""rnEnd Subrn
各位我看一下这C++代码错误
class TBasernrnpublic:rn virtual ~TBase()rn rn rn;rnrnclass TDerivedA : public TBasernrn;rnrnclass TDerivedB : public TBasernrn;rnrnint countTBase( TBase** ppBase, int nNum )rnrn int nCount = 0;rn for ( int i = 0; i < nNum; i++ )rn rn if ( ppBase[i] )rn rn nCount ++;rn rn rn return nCount;rnrnrnrnrnint countA( TBase** ppBase, int nNum )rnrn int nCount = 0;rn TBase* pBase;rn TDerivedA* pA;rn for ( int i = 0; i < nNum; i++ )rn rn pBase = ppBase[i];rn if( pBase != NULL )rn rn pA = dynamic_cast(pBase);rnrn if ( NULL != pA )rn rn nCount ++;rn rn rn rn return nCount;rnrn#endifrnrn<em>错误</em>是:'dynamic_cast' used on polymorphic type 'class TBase' with /GR-; unpredictable behavior may resultrn怎么改,谢谢
看看了,报36行错误.看看了!急呀,特急!
Description: 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.IndexOutOfRangeException: There is no row at position 0.rnrnSource Error: rnrnrnLine 34: SqlDataAdapter ma = new SqlDataAdapter(sql,myconn);rnLine 35: ma.Fill(ds,"ZH_HR_INFO");rnLine 36: s1=ds.Tables["ZH_HR_INFO"].Rows[0]["CName"].ToString(); //姓名rnLine 37: s2=ds.Tables["ZH_HR_INFO"].Rows[0]["EName"].ToString(); //英文名rnrn rn
请各位看看代码错误
小弟才学ASP,不怎么会写,希望各位大虾指点一下rn我是想进入页面后从数据库读数据,然后在每条数据前自动加一个复选框,然后通过复选框进行删除,选中就删除,也可以全部选择rnrn rnrn rn rn 选择rn 学号 rn 班级rn 专业rn 姓名rn 性别rn 生日rn rnrnrn rn rn ">rn rn rn rn rn rn rn rnrn rn rnrn 选中所有显示的消息rn rnrnrnrnrn rnrnrnrn rn
看看为什么这代码错误.
因为是个提醒窗口不想影响其他的操作比如打字的时候所以不能用Visible来显示,那样会转移焦点,但是我在VB.NET2008里面以下<em>代码</em>老是提示有<em>错误</em>.或者有其它方法吗?rnImports System.Runtime.InteropServices rnPrivate Declare Function ShowWindow Lib "user32" _rn Alias "ShowWindow" (ByVal hwnd As Int32,rn ByVal nCmdShow As Int32) As Int32rnconst SW_SHOWNOACTIVATE =7rnShowWindow(Me.Handle, SW_SHOWNOACTIVATE )
看看代码什么错误
Dim conn As SqlConnection = dataconnection()rn conn.Open()rn Dim xingming As Stringrn Dim year1 As Stringrn Dim month1 As Stringrn year1 = Trim(nian.Text)rn month1 = Trim(yue.Text)rn xingming = Trim(yuangong.Text)rnrn Dim tongji As SqlDataAdapter = New SqlDataAdapter(""select * from 考勤 where 年 = '" & year1 & "' and 月 = '" & month1 & "' and 姓名 = '" & xingming & "' and 迟到早退 > " & 0, conn)rn rn ' DataGrid_kaoqin.DataSource = ds.Tables("考勤").DefaultViewrn tongji.SelectCommand.CommandText = rn tongji.Fill(ds, "迟早")rn Dim dt As DataTable = ds.Tables("迟早")rn Dim a As Integerrn Dim m As Integerrn For a = 0 To dt.Columns.Count - 1rnrn m = +dt.Rows(a)("迟到早退")rnrn Nextrnrn chidao_zaotui.Text = mrn conn.Close()rnrnrnrn出错语句 m = +dt.Rows(a)("迟到早退")rn<em>错误</em>信息 : 在位置 2 处没有任何行rn
看看代码,输出错误
long Fix::MyRead(long a,long b,char* c)rnrn if (a==20 && b==30)rn rn strncpy(c,"abc",8);rn rn elsern rn strncpy(c,"4800",4);rn rn return 0;rnrn上面这<em>段</em><em>代码</em>我做成dll,然后再PB中调用,可以输出"abc",但我如果a<>20或b<>30时候,输出的不是4800,而是一个其他数字,怎么才可以再PB中输出4800 ?
看看代码为何错误
我用的是用udp来发送文件的,此<em>段</em><em>代码</em>为何出错rnrnrnvoid __fastcall TForm1::Button2Click(TObject *Sender)rnrn if(Edit1->Text = ="")rn rn Application->MessageBox("没有输入要发送文件的名称!","提示",MB_ICONERROR);rn return;rn rn NMUDP->RemoteHost = "Teacher";//发往教师端rn const int pBuffer =2048;//2Mrn TFileStream *Stream = new TFileStream(Edit1->Text,fmOpenRead);rn char *Buffer = new char[pBuffer];rn int tBuffSize =Stream->Size;rn int BuffsNum =tBuffSize/pBuffer;rn for (int i=0; ipBuffer)rn rn Stream->Read(Buffer,pBuffer);rn NMUDP->SendBuffer(Buffer,pBuffer,pBuffer);rn tBuffSize-=pBuffer;rn rn elsern rn Stream->Read(Buffer,tBuffSize);rn NMUDP->SendBuffer(Buffer,tBuffSize,tBuffSize);rn tBuffSize = 0;rn rn rn delete Buffer;rn delete Stream; rnrnrnvoid __fastcall TForm1::NMUDPDataReceived(TComponent *Sender,rn int NumberBytes, AnsiString FromIP, int Port)rnrn //接受到数据的时候触发rn /*rn Memo1->Lines->Add(NumberBytes+TempBuffer);rn delete[] TempBuffer;rn */rn String s,sPath;rn s = ExtractFilePath(Application->ExeName);rn sPath = s+"Work";rn //ForceDirectories(sPath);rn TStream *strm;rnrn char *TempBuffer = new char[NumberBytes+1];rn NMUDP->ReadBuffer(TempBuffer,NumberBytes,NumberBytes);rn strm->ReadBuffer(TempBuffer,NumberBytes);rn//--------------------------------------------rn TFileStream *MyFStream;rn MyFStream = new TFileStream(sPath+"\\"+"x.txt",fmCreate); //rn tryrn rn //CopyFrom(TStream* Source, __int64 Count);rn MyFStream->CopyFrom(strm,strm->Size);rn ShowMessage("接受");rn rn catch(...)rn rn ShowMessage("接收失败!");rn rn MyFStream->Free();rnrn//------------------------------------------------------------------------rn为何rnNumberBytes = -1;rn然后提示<em>错误</em>
看这代码
[code=C/C++]DWORD CAXPFile::HashString(const char *lpszFileName, DWORD dwCryptIndex)rnrnrn signed char *key = (signed char *)lpszFileName;rn DWORD seed1 = 0x7FED7FED, seed2 = 0xEEEEEEEE;rn signed int ch;rn rn while(*key != 0)rn rn ch = *key++;rn seed1 = m_CryptTable[(dwCryptIndex<< 8) + ch] ^ (seed1 + seed2);rn seed2 = ch + seed1 + seed2 + (seed2 << 5) + 3; rn rn rn return seed1; rnrn[/code]rnrn[code=C/C++]BOOL CAXPFile::GetHashTablePos(const char *lpszString, int *lpFileOffset, int *lpFileSize)rnrn const int HASH_A = 1, HASH_B = 2, HASH_OFFSET = 3; rn rn int nHashA = HashString(lpszString, HASH_A);rn int nHashB = HashString(lpszString, HASH_B);rn rn int nHash = HashString(lpszString, HASH_OFFSET);rn rn nHash &= 0x7FFF;rn int nHashStart = nHash, nHashPos;rnrn tryrn rn while (!((nHashPos = ((int*)m_lpAxpHashTable)[nHashStart * 3 + 2]) & 0x80000000) ||\rn nHashA != ((int*)m_lpAxpHashTable)[nHashStart * 3] ||\rn nHashB != ((int*)m_lpAxpHashTable)[nHashStart * 3 + 1])rn rn nHashStart++;rn nHashStart &= 0x7FFF;rn if (nHashStart == nHash)rn rn return FALSE;rn rn rn rn catch (...)rn rn return FALSE;rn rnrn nHashPos &= 0x3FFFFFFF;rn *lpFileOffset = ((int*)m_lpAxpFileInfo)[nHashPos * 3];rn *lpFileSize = ((int*)m_lpAxpFileInfo)[nHashPos * 3 + 1];rn rn return TRUE; rn[/code]rnrn哪位大虾<em>帮</em>忙转为D
忙看这代码
这只要编辑文字就会出现这问题êé??如果确认后文字就改为了ʨ|¼®请大家<em>帮</em>忙看一下这是那<em>段</em><em>代码</em>rn$contents[] = array('align' => 'center', 'text' => '' 数据库没问题写入的时候是字符请哪我需要修改哪个函数
忙看这代码
void __fastcall TForm1::Button5Click(TObject *Sender)rnrn if(SaveDialog1->Execute())rn rn Variant Ex,Wb,Sh;rn AnsiString t;rn char c = 0x9;rn Ex = Variant::CreateObject("Excel.Application");rn Ex.OlePropertyGet("Workbooks").OleFunction("Add");rn Wb = Ex.OlePropertyGet("ActiveWorkbook");rn Sh = Wb.OlePropertyGet("Worksheets",1);rn TStringList* SL = new TStringList();rn t = "";rn for(int i=0; iColumns->Count; i++)rn rn t += DBGrid1->Columns->Items[i]->Title->Caption.c_str();rn t += c;rn rn SL->Add(t);rn DBGrid1->DataSource = NULL;rn ADOTable1->First();rn for(int i=0; iRecordCount; i++)rn rn for(int j=0; jColumns->Count; j++)rn rn t += ADOTable1->Fields->FieldByName(DBGrid1->Columns->Items[j]->FieldName)->AsString;rn t += c;rn rn SL->Add(t);rn ADOTable1->Next();rn rn TClipboard* cp = new TClipboard();rn cp->AsText = SL->Text;rn Sh.OleProcedure("Paste");rn cp->Clear();rn delete SL;rn delete cp;rn Wb.OleProcedure("SaveAs",SaveDialog1->FileName.c_str());rn Wb.OleProcedure("Close");rn DBGrid1->DataSource = DataSource1;rn rnrn为什么我执行后内存由300多M长到590多M,?????然后就内存不足了。。
忙看这代码!!!
#include rn#include rn#pragma hdrstoprnrn#include "Unit1.h"rn//---------------------------------------------------------------------------rn#pragma package(smart_init)rn#pragma resource "*.dfm"rnTForm1 *Form1;rn//---------------------------------------------------------------------------rn__fastcall TForm1::TForm1(TComponent* Owner)rn : TForm(Owner)rnrnrn//---------------------------------------------------------------------------rnrnvoid __fastcall TForm1::FormCreate(TObject *Sender)rnrn mciSendString("open cdaudio alias cd wait shareable",0,0,0);rnrn//---------------------------------------------------------------------------rnrnvoid __fastcall TForm1::Button1Click(TObject *Sender)rnrn mciSendString("set cd door open",0,0,0);rnrn//---------------------------------------------------------------------------rnrnvoid __fastcall TForm1::Button2Click(TObject *Sender)rnrn mciSendString("set cd door closed",0,0,0);rnrn//---------------------------------------------------------------------------rn 控制光驱的开关的,但不行.为什么啊?本人急用!!!!
看这诡异的代码!!!
求教高人,<em>帮</em>小鸟看这<em>段</em><em>代码</em>的<em>错误</em>,急,谢了!rnVS 2008编译不过,看了半天就是没看出哪里错了,大家给<em>看看</em>...rn就一个链表,很简单,注释就没写,相信一看就看懂了.rnrnrn// 统计字符小程序.cpp rnrnrn#include rn#include rnusing namespace std;rnrntypedef struct node rn char c;rn unsigned int co;rn struct node *next;rnword;rnrnword *head=(word*)malloc(sizeof(word));rnhead->c ='*';rnhead->next = NULL;rnrnword *search(word *h,char c) rn word *p;rn p = h;rn if(p->next == NULL) rn coutnext;rn rn p =(word*)malloc(sizeof(word));rnrn p->c = c;rn p->co = 0;rnrn p -> next = head->next;rn head->next=p;rn return p;rnrnvoid disp(word *h) rn word *p,*t;rn p = h->next;rn while (p != NULL)rn cout<<<>c) rn p=search(head,c);rn if(p != head) p->co++;rn rn disp(head);rn getchar();rn return 0;rnrn rnrn
看这简单的代码
session_start();rn$globals = array($_REQUEST, $_SESSION, $_SERVER, $_FILES);rnforeach ($globals as $global) rn foreach(array_keys($global) as $key) rn unset($$key); //这行是什么意思,就是那个$$key 高手来<em>看看</em>rn rn
看这代码的问题所在
sql01="select sum(xzrs) tempXzrs from table1 where jsbh='"&session("user")&"'"rnset rs01=server.createobject("adodb.recordset")rnrs01.Open sql01,conn,1,1rnif rs01("tempXzrs")="" then rn tempXzrs=0rn rs01.closern set rs01=nothing rnelse rn rs01.Open sql01,conn,1,1 rn rs01.movefirstrn tempXzrs=rs01("tempXzrs").valuern rs01.closern set rs01=nothingrnend ifrnrn我想要的是找到xzrs的总数,如果不存在xzrs那么置tempXzrs=0,现在表中没有记录,报错说tempXzrs是一个NULL,没法做了,谁能看出问题所在啊?
我看以下这程序
procedure TForm1.Button6Click(Sender: TObject);rnbeginrn with Table1 dorn beginrn Close;rn open;rn First;rnrn while not Table1.Eof dorn beginrn Edit;rnrn FieldByName('kh').AsString:='ing';rn Post;rn next;rn end;rnrn end;rnend;rnrn表里有三百多行数据,但只能更新三十五行!不知何故!rn更新到三十五行的时候报错rnMultiple records found, but only one was expected?rnrn<em>帮</em>忙<em>看看</em>
50看程序找错误
我现在需要把TClientDataSet变量转换为TADOQuery,听说不能直接转换,所以做了一个函数,如下:rnfunction getdatafromcds(scktconn: TSocketConnection;rn tablename, sqlstr: String; var adoquery: TADOQuery): Boolean;rnvarrn cds:TClientDataSet;rn i,j:integer;rnbeginrn cds:=TClientDataSet.Create(Application);rn with cds dorn beginrn RemoteServer:=scktconn;rn ProviderName:='DataSetProvider1';rn CommandText:=sqlstr;rn tryrn Open;rn exceptrn Result:=False;rn Free;rn Exit;rn end;rn end;rnrn adoquery:=TADOQuery.Create(Application);rn adoqueryrn getstruct('jp_jbsjby_part3',adoquery);rn adoquery.Fields.Clear;rn adoquery.DisableControls;rn for i:=0 to cds.Fields.Count-1 dorn beginrn adoquery.Fields.Add(cds.Fields[i]);rn end;rn adoquery.EnableControls;rn adoquery.Edit;rnrn for i:=0 to cds.recordcount-1 dorn beginrn adoquery.Append;rn for j:=0 to adoquery.Fields.Count-1 dorn beginrn adoquery.Fields[j].Value:= cds.Fields[j].Value; rn end;rn adoquery.Post;rn cds.Next;rn end;rn adoquery.First;rn cds.Free;rnrn Result:=True;rnend;rn其中getstruct('jp_jbsjby_part3',adoquery);是我以前定义的一个过程,可以为adoquery获得一个结构,并使adoquery处于open状态,当然这个结构不是我想要的。rn现在的问题是运行到adoquery.Fields[j].Value:= cds.Fields[j].Value;时提示“dataset not in edit or insert mode”<em>错误</em>,哪位高人<em>帮</em>看一下,马上放<em>分</em>,谢谢了。
可以我看这吗?
可以<em>帮</em>我看这<em>段</em>吗?rnselect @sql出来的语句不是完整的,怎么回事?rn执行的时候rn服务器: 消息 170,级别 15,状态 1,行 5rn第 5 行: '.02' 附近有语法<em>错误</em>。rnrn DECLARE @SQL VARCHAR(5400)rn SET @SQL='select operator,login=(select login from conduct where number=income.operator),name,rn startno,lastno,soldall=(solda+soldd+solde+soldf+soldg+soldh),priceall=rn (pricea+priced+pricee+pricef+priceg+priceh),soldb,priceb,soldc,pricec,backu,refundu,chargeu,rn voucheru,backz,refundz,personsback,backv,refundv,chargev,disuse ,b=(persons-backu-backz),rn p=(price-refundu-refundz) from income where workdate>('+ @start_date +') and workdate0 and (workid in (' + @windows + ')) order by operator'rn select @sqlrn EXEC (@SQL)
Jboss+tomcat+mysql运行client 得错误,大侠们看看了:)
第一次在Jboss下面弄这个东西:)摆脱大家班我<em>看看</em><em>错误</em>,错在那里阿?(<em>分</em>两次贴了:)rnD:\j2ee>antrnBuildfile: build.xmlrncheck-environment:rncheck-jboss:rnwrong-jboss:rncheck-xdoclet:rnwrong-xdoclet:rninit:rn [echo] build.compiler = $build.compilerrn [echo] user.home = C:\Documents and Settings\Administratorrn [echo] java.home = d:\jdk1.4\jrern [echo] ant.home = d:\antrn [echo] jboss.home = d:/jbossrn [echo] xdoclet.home = d:/j2ee/xdocletrn [echo] java.class.path = d:\jdk1.4\lib\tools.jar;d:\ant\lib\xml-apis.jar;d:rn\ant\lib\xercesImpl.jar;d:\ant\lib\optional.jar;d:\ant\lib\ant.jar;;C:\IBMCON~1\rnCICS\Classes\CTGCLI~1.JAR;.;d:\jdk1.4\lib\dt.jar;d:\jdk1.4\lib\tools.jar;D:\j2sdrnkee1.4\lib\j2ee.jar;E:\tool\mysql;.rnxdoclet-generate:rn[ejbdoclet] Generating Javadocrn[ejbdoclet] Javadoc executionrn[ejbdoclet] Loading source file D:\j2ee\src\main\ejb\test\entity\TestBMPEntityBernan.java...rn[ejbdoclet] Loading source file D:\j2ee\src\main\ejb\test\entity\TestEntityBean.rnjava...rn[ejbdoclet] Loading source file D:\j2ee\src\main\ejb\test\message\TestMessageDrirnvenBean.java...rn[ejbdoclet] Loading source file D:\j2ee\src\main\ejb\test\session\SequenceGenerarntorBean.java...rn[ejbdoclet] Loading source file D:\j2ee\src\main\ejb\test\session\TestSessionBearnn.java...rn[ejbdoclet] Constructing Javadoc information...rn[ejbdoclet] Running rn[ejbdoclet] Running rn[ejbdoclet] Running rn[ejbdoclet] Running rn[ejbdoclet] Running rn[ejbdoclet] Running rn[ejbdoclet] Running rn[ejbdoclet] Running rncompile:rnjar:rncompile-web:rnwar:rndeploy-server:rncreate-client:rn [echo] JBoss Home on Unix: D:/jbossrn [echo] Java Home on Unix: D:/jdk1.4/jrernmain:rnBUILD SUCCESSFULrnTotal time: 8 secondsrnD:\j2ee>cd buildrnD:\j2ee\build>cd binrnD:\j2ee\build\bin>dir/wrn Volume in drive D is PROGRAMrn Volume Serial Number is B853-085Brn Directory of D:\j2ee\build\binrn[.] [..] run-client.bat lcp.batrnrun-client.sh jndi.propertiesrn 4 File(s) 3,928 bytesrn 2 Dir(s) 18,232,803,328 bytes freernD:\j2ee\build\bin>./run-clientrn'.' is not recognized as an internal or external command,rnoperable program or batch file.rnD:\j2ee\build\bin>./run-client.batrn'.' is not recognized as an internal or external command,rnoperable program or batch file.rn
各位大侠看看代码错误
[code=php]rnquery($sql);rn if($rs)rn echo "成功";rn elsern echo "失败";rn $db->close();rnrn?>rn rn用户: rn标题: rn内容: rnID: rnrnrn[/code] rn这<em>段</em><em>代码</em>该怎么修改啊,为什么修改不成功
可能是内存方面的错误,各位大虾看看
我在一个函数执行完了之后,就会弹出消息框,说明什么指令引用的内存,该内存不能为读之类的rn我于是在反括号之前用F11,跟到下面的函数出错rninline _variant_t::~_variant_t() throw(_com_error)rnrn _com_util::CheckError(::VariantClear(this));rnrn各位<em>帮</em>我<em>分</em>析一下,<em>看看</em>可能是什么地方错了呢?rn
我看一代码,找出错误!!
是一个输入一个工资数,算出工资应缴纳税款的金额rnrn但是总执行不下去!!rnrnrnunit Unit1;rnrninterfacernrnusesrn Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,rn Dialogs, StdCtrls;rnrntypern TForm1 = class(TForm)rn Edit1: TEdit;rn Edit2: TEdit;rn Button1: TButton;rn Button2: TButton;rn procedure Button2Click(Sender: TObject);rn procedure Button1Click(Sender: TObject);rn privatern Private declarations rn publicrn Public declarations rn end;rnrnvarrn Form1: TForm1;rnrnimplementationrnrn$R *.dfmrnrnprocedure TForm1.Button2Click(Sender: TObject);rnbeginrnclose;rnend;rnrnprocedure TForm1.Button1Click(Sender: TObject);rnvar s:real;rn m:real;rn b:real;rn z:string;rnbeginrnz:=Edit1.Text;rnb:=strtofloat(z);rnm:=b-9<em>50</em>rnif m0 and m<em>50</em>0 and m2000 and m<em>50</em>00 and m20000 and m40000 and m60000 and m80000 and m100000 thenrn s:=m*0.45-15375rn end;rn edit2.text:=floattostr(s)rnend;rnrnend.
大家看看我的登录代码错误
[code=php]rnquery($sql);rn $us=is_array($row=mysqli_fetch_array($rs));rn $ps= $us ? $row[password]==$_POST[password]:false;rn echo $ps;rn if($ps)rn rn $_SESSION['username']=$username;rn echo "登录成功";rn rn elsern rn echo "登陆失败";rn rnrn?>rn rn用名: rn密码: rnrnrnrn[/code] rn我的数据表rnuser(rnidrnusernamernpasswordrn)
我看个错误!!!
Dim session As New NotesSessionrn Dim doc As NotesDocumentrn Dim view As NotesViewrn Dim coll As Notesviewentrycollectionrn Dim entry As Notesviewentryrn Set db=session.CurrentDatabasern Set view=db.getView("所有文件")rn Set coll = view.allEntriesrn If coll.count=0 Thenrn Exit Sub rn End Ifrn For i=1 To coll.countrn Set entry=coll.getNthEntry(i)rn Set doc=entry.documentrn Call coll.PutAllInFolder("e:\\Notesdb")rn Nextrn---------------------------------------------------rn以上的<em>代码</em>应该在哪里运行?有<em>错误</em>么?rn在线等,谢谢!
我看这个错误!!!
我想向SQL SEVSER中写入文字,对应一字<em>段</em> memo 类型为 char 长度为<em>50</em>00,当写入一长度大约为1000字的文章时,却出现如下<em>错误</em>:rnrn<em>错误</em>类型:rnMicrosoft OLE DB Provider for SQL Server (0x80040E21)rn多步 OLE DB 操作产生<em>错误</em>。如果可能,请检查每个 OLE DB 状态值。没有工作被完成。rnrn该怎样解决????
我看两个错误
rnuse editrngorndeclare @i intrndeclare @t intrnset @t=0rnset @i=0rnif (glh=@i,@i=@i+1)rnrnupdate backrnset sxh=@t,@t=@t+1 rnrn服务器: 消息 170,级别 15,状态 1,行 5rn第 5 行: ',' 附近有语法<em>错误</em>。rnrnrnuse editrngorndeclare @i intrndeclare @t intrnset @t=0rnset @i=0rnif (glh=1)rnrnupdate backrnset sxh=@t,@t=@t+1 rnrn服务器: 消息 207,级别 16,状态 3,行 5rn列名 'glh' 无效。rnrn怎么改正??rn
我看数据库的错误
BOOL CShoreApp::InitInstance()rnrnrn CString sPath;rn GetModuleFileName(NULL,sPath.GetBufferSetLength(MAX_PATH+1),MAX_PATH);rn sPath.ReleaseBuffer ();rn int nPos;rn nPos=sPath.ReverseFind ('\\');rn sPath=sPath.Left (nPos);rn nPos=sPath.ReverseFind('\\');rn sPath=sPath.Left (nPos);rn CString lpszFile = sPath + "\\shore.mdb";rn rn rn char* szDesc;rn int mlen;rn szDesc=new char[256];rn sprintf(szDesc,"DSN=%s? DESCRIPTION=TOC support source? DBQ=%s? FIL=MicrosoftAccess? DEFAULTDIR=%s?? ","shore",lpszFile,sPath);rnrnrnrn mlen = strlen(szDesc);rn for (int i=0; iReportError();rn pE->Delete();rn return FALSE;rn rn编译<em>错误</em>:rne:\shore\shore.h(42) : error C2146: syntax error : missing ';' before identifier 'm_DB'rne:\shore\shore.h(42) : error C2<em>50</em>1: 'CDatabase' : missing storage-class or type specifiersrne:\shore\shore.h(42) : error C2<em>50</em>1: 'm_DB' : missing storage-class or type specifiersrnE:\shore\shore.cpp(78) : error C2065: 'm_DB' : undeclared identifierrnE:\shore\shore.cpp(78) : error C2228: left of '.OpenEx' must have class/struct/union typernE:\shore\shore.cpp(78) : error C2653: 'CDatabase' : is not a class or namespace namernE:\shore\shore.cpp(78) : error C2065: 'useCursorLib' : undeclared identifierrnE:\shore\shore.cpp(84) : error C2061: syntax error : identifier 'CDBException'rnE:\shore\shore.cpp(84) : error C2310: catch handlers must specify one typernE:\shore\shore.cpp(86) : error C2065: 'pE' : undeclared identifierrnE:\shore\shore.cpp(86) : error C2227: left of '->ReportError' must point to class/struct/unionrnE:\shore\shore.cpp(87) : error C2227: left of '->Delete' must point to class/struct/unionrnE:\shore\shore.cpp(92) : error C2317: 'try' block starting on line '75' has no catch handlersrnError executing cl.exe.rnrnshore.exe - 13 error(s), 0 warning(s)rnrn
50===谁能看懂这代码?
' notification messages:rnPublic Const TBN_LAST = &H720rnPublic Const TBN_FIRST = -700&rnPublic Const TBN_GETBUTTONINFOA = (TBN_FIRST - 0)rnPublic Const TBN_GETBUTTONINFOW = (TBN_FIRST - 20)rnPublic Const TBN_BEGINDRAG = (TBN_FIRST - 1)rnPublic Const TBN_ENDDRAG = (TBN_FIRST - 2) '2rnPublic Const TBN_BEGINADJUST = (TBN_FIRST - 3)rnPublic Const TBN_ENDADJUST = (TBN_FIRST - 4)rnPublic Const TBN_RESET = (TBN_FIRST - 5)rnPublic Const TBN_QUERYINSERT = (TBN_FIRST - 6)rnPublic Const TBN_QUERYDELETE = (TBN_FIRST - 7)rnPublic Const TBN_TOOLBARCHANGE = (TBN_FIRST - 8)rnPublic Const TBN_CUSTHELP = (TBN_FIRST - 9)rnPublic Const TBN_CLOSEUP = (TBN_FIRST - 11)rnrn这是定义工具栏按钮事件的,可是没有onClick事件,那么rnPublic Const TBN_ONCLICK = ??多少
我读读这代码
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();rn Dimension frameSize = frame.getSize();rn if (frameSize.height > screenSize.height) rn frameSize.height = screenSize.height;rn rn if (frameSize.width > screenSize.width) rn frameSize.width = screenSize.width;rn rn frame.setLocation((screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.height) / 2);rn
看看代码
<em>代码</em>:rnLPOLESTR progid=L"CDCA_AGENTS.clsUserProfile";rn CLSIDFromProgID(progid,&clsid);rn IDispatch* pDispatch=NULL;rn hr=CoInitialize(NULL);rn hr=CoCreateInstance(clsid,NULL,CLSCTX_INPROC,IID_IDispatch,(void **)&pDispatch);rn DISPID dispid;rn LPOLESTR str=L"StartUp";rn hr=pDispatch->GetIDsOfNames(IID_NULL,&str,1,LOCALE_SYSTEM_DEFAULT,&dispid);rn DISPPARAMS params;rn memset(&params,0,sizeof(DISPPARAMS));rn params.cArgs =2;rn VARIANTARG* pArg=new VARIANTARG[2];rn params.rgvarg =pArg;rn memset(pArg,0,sizeof(VARIANT)*2);rn VariantInit(&pArg[0]);rn pArg[0].vt =VT_BSTR;rn CComBSTR URL="http://PROGRAM162:8510/CWSLISTENER.CGI";rn pArg[0].bstrVal=URL.Copy();rn VariantInit(&pArg[1]);rn pArg[1].vt=VT_DISPATCH ;rn LPDISPATCH frm_Dispatch=NULL;rn pArg[1].pdispVal =frm_Dispatch;rn DISPPARAMS params=pArg,NULL,2,0;rn VARIANTARG m_result;rn VariantInit(&m_result);rn hr=pDispatch->Invoke(dispid,IID_NULL,LOCALE_SYSTEM_DEFAULT,DISPATCH_METHOD,&params,&m_result,0,NULL);rn注:Invoke调用的组件对象是用VB写的方法模型是:StartUp(ByVal str as string,ByVal MainFrame as Object) as longrn在调试过程中总是报出DISP_E_TYPEMISMATCH的<em>错误</em>,把方法模型改成只有一个参数如:StartUp(ByVal str as string) as longrn StartUp(ByVal MainFrame as Object) as longrn均调试通过!烦请高手指点!
看看代码
string[] mobilelist = null;rn bool flag = false;rnprotected void Button3_Click(object sender, EventArgs e)rn rn string strPath = this.File1.Value + DateTime.Now.ToString("yyyyMMddhhmmss") + ".xls";rn File1.PostedFile.SaveAs(strPath);rnrn string mystring = "Provider = Microsoft.Jet.OLEDB.4.0 ; Data Source = '" + strPath + "';Extended Properties=Excel 8.0";rnrn OleDbConnection cnnxls = new OleDbConnection(mystring);rnrn OleDbDataAdapter myDa = new OleDbDataAdapter("select * from [Sheet1$]", cnnxls);rnrn DataSet myDs = new DataSet();rnrn myDa.Fill(myDs);rnrn GridView1.DataSource = myDs.Tables[0];rn GridView1.DataBind();rn rn rn protected void Button4_Click(object sender, EventArgs e)rn rn mobilecheck();rn if (flag == true)rn rn if (mobilelist.Length < 200)rn rn for (int i = 0; i < mobilelist.Length; i++)rn rn Msg_send(mobilelist[i], std);rn rn Response.Write(" ");rnrn Response.Write(" ");rn rn elsern rn Response.Write(" ");rn rn rn rn protected void Button5_Click(object sender, EventArgs e)rn rnrn rn protected void mobilecheck()rn rn for (int i = 0; i < GridView1.Rows.Count; i++)rn rn mobile += GridView1.Rows[0].Cells[0].Text.ToString() + "|";rn rnrn for (int i = 0; i < GridView1.Rows.Count; i++)rn rn std += GridView1.Rows[0].Cells[1].Text.ToString() + "|";rn rn rn if (mobile.Trim() == "")rn rn Response.Write(" ");rn flag = false;rn return;rn rn mobilelist = Regex.Split(mobile, "\r\n", RegexOptions.IgnoreCase);rn for (int i = 0; i < mobilelist.Length; i++)rn rn if (mobilelist[i].Length > 12 || mobilelist[i].Length < 11)rn rn Response.Write(" ");rn flag = false;rn return;rn rn rn flag = true;rn rn当我运行这<em>段</em><em>代码</em>的时候,明明第一行有值 为什么总是运行到这<em>段</em><em>代码</em>了 Response.Write(" ");?rn
看看代码??????
class StringTest rnrn public static void main(String[] args) rn rn String str=".192.168.10.16";rn String newstr=str;rn int count;rn int count2;rn int i=0;rn int k=0;rn String[] stra=new String[4];rn while(i);rn for(int j=0;j
看看代码!!!
ser rs2=server.CreateObject("ADODB.recordset")rn rn rs2.open "select * from tloginlimit where date>'" & now & "' and valid=1",connrn if rs2.eof thenrn rs2.closern conn.closern set conn=nothing rn %> rn
我看下这代码
JUMP.PHPrnrninput->get('url');rn $this->assignData();rn $this->output->set('url', $url);rn $this->output->display('jump.html');rn rn rn public function top() rn $this->assignData();rn $this->output->display('jump-top.html');rn rnrnrn跳转时候,浏览器<em>分</em>成两栏,上面是原网站的LOGO和BANNER,下面是跳转的网站rnrn是不是把这<em>段</em>去掉rnpublic function top() rn $this->assignData();rn $this->output->display('jump-top.html');rn rn但好像也没什么变化rnrn实例网站 www.yangyanb.com 上的推荐图集的那个杜蕾斯的广告,点击后跳到淘宝页面了,但只有一半,上面还是原网站的。
我看一下这代码
rn rnrn SqlParameter[] paras = new SqlParameter("@Id", SqlDbType.Int, 4), new SqlParameter("@Name", SqlDbType.NVarChar, <em>50</em>),new SqlParameter("@Explain", SqlDbType.NVarChar, 80), new SqlParameter("@IsSuccess", SqlDbType.Bit), new SqlParameter("@Vis", SqlDbType.Bit) ;rn paras[0].Value = nId;rn paras[1].Value = txtName;rn paras[2].Value = txtExplain;rn paras[3].Value = txtSuccess;rn paras[4].Value = txtSelect;rn SqlHelper.ExcuteNonQurey([color=#FF0000]"UPDATE [Product] set Name=@Name,Explain=@Explain,IsSuccess=@IsSuccess,Vis=@Vis WHERE Id=@Id", CommandType.Text, paras[/color]); 说一说这三个参数的作用 rn BindAD();
我解释一下这代码
typedef struct tagWNDCLASSArn rnrn rn UINT style ;rn rn WNDPROC lpfnWndProc ;rn rn int cbClsExtra ;rn rn int cbWndExtra ;rn rn HINSTANCE hInstance ;rn rn HICON hIcon ;rn rn HCURSOR hCursor ;rn rn HBRUSH hbrBackground ;rn rn LPCSTR lpszMenuName ;rn rn LPCSTR lpszClassName ;rn rnrn rnWNDCLASSA, * PWNDCLASSA, NEAR * NPWNDCLASSA, FAR * LPWNDCLASSA ;rn<em>帮</em>我解释一下这<em>段</em><em>代码</em>,最后以行是什么意思 ?
我解释这代码
[code=C#]rn//<em>帮</em>我解释这<em>段</em><em>代码</em> 每句<em>帮</em>我解释一下,特别是 sqlcommand 和dataadapter datasetrnstring str = System.Configuration.ConfigurationManager.AppSettings["strconn"];//这句不用解释rnstring sqlpwd = "select password from bg_user where username='" + username + "'";//这句不用解释rnMySqlConnection conn = new MySqlConnection(str);//这句不用解释rnMySqlCommand cmd=new MySqlCommand(sqlpwd,conn);rnMySqlDataAdapter adr = new MySqlDataAdapter(cmd);rnDataSet ds=new DataSet();rnadr.Fill(ds);rnstring pwd = ds.Tables[0].Rows[0]["password"].ToString();rnrnstring updating = "update bg_user set password='" + newPwd + "',email='" + NewEmail + "' where username='" + name + "'";rnMySqlDataAdapter adrup = new MySqlDataAdapter(updating, conn);rnDataSet dsup = new DataSet();rnadrup.Fill(dsup,"bg_user");rn[/code]
析下这代码..
[code=JScript]function insertAfter(newElement,targetElement) rn var parent = targetElement.parentNode;rn if (parent.lastChild == targetElement) rn parent.appendChild(newElement);rn else rn parent.insertBefore(newElement,targetElement.nextSibling);rn rn[/code]rn[color=#0000FF]研究了那么久.还是不懂rn特别是这三条语句...rn var parent = targetElement.parentNode;rn if (parent.lastChild == targetElement)rn parent.insertBefore(newElement,targetElement.nextSibling);rn有谁可以做个实验就最好了[/color]
我看下这代码~~
[code=VB.NET][/code] Private Sub FrmReg_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Loadrn cboSex.SelectedIndex = 0rn classconn.constate()rn Button1.Enabled = Falsern End Subrn Public classconn As New Class1rn Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Clickrn If TextBox1.Text = "" Thenrn MsgBox("请输入注册帐号", MsgBoxStyle.OkOnly, "<em>错误</em>")rn Elsern If txtpwd1.Text = "" Thenrn MsgBox("请输入密码", MsgBoxStyle.OkOnly, "<em>错误</em>")rn Elsern If txtpwd2.Text = "" Thenrn MsgBox("重复密码不能为空", MsgBoxStyle.OkOnly, "<em>错误</em>")rn Elsern If txtpwd1.Text <> txtpwd2.Text Thenrn MsgBox("两次密码输入不相同,请重新输入", MsgBoxStyle.OkOnly, "<em>错误</em>")rn txtpwd1.Focus()rn Elsern Dim newcommand1 As New SqlCommand With .CommandText = "select * from QQ账户信息 where QQ号码=" & TextBox1.Text, .Connection = classconn.QqLinkrn If newcommand1.ExecuteScalar <> 0 Thenrn MsgBox("帐号已存在,请更换", MsgBoxStyle.OkOnly, "<em>错误</em>")rn TextBox1.Focus()rn Elsern Dim Country As String = TextBox3.Textrn If TextBox3.Text = "" Thenrn Country = "null"rn End Ifrn Dim Section As String = TextBox4.Textrn If TextBox4.Text = "" Thenrn Section = "null"rn End Ifrn Dim Old As String = TextBox5.Textrn If TextBox5.Text = "" Thenrn Old = "null"rn End Ifrn Dim SexString As Stringrn If cboSex.SelectedText = "男" Thenrn SexString = "insert into QQ账户信息(QQ号码,QQ密码,性别,国家,地区,年龄) values ('" & TextBox1.Text & "','" & txtpwd1.Text & "','男','" & Country & "','" & Section & "','" & Old & "')"rn Elsern SexString = "insert into QQ账户信息(QQ号码,QQ密码,性别,国家,地区,年龄) values ('" & TextBox1.Text & "','" & txtpwd1.Text & "','女','" & Country & "','" & Section & "','" & Old & "')"rn End Ifrn Dim newcommand2 As New SqlCommand With .CommandText = SexString, .Connection = classconn.QqLinkrn newcommand2.ExecuteScalar()rn MsgBox("注册成功")rn Me.Close()rn End Ifrn End Ifrn End Ifrn End Ifrn End Ifrn End Sub'问题是这样insert的话,数据库里的性别怎么都是女的啊?问题到底在哪里?
我看一看这代码.
#include "stdafx.h"rn#include "windows.h"rn#include "windowsx.h"rnrnLRESULT CALLBACK WindowPro(rn HWND hwnd,rn UINT uMsg,rn WPARAM wParam,rn LPARAM lParam );rnint WINAPI WinMain(HINSTANCE hinstance,HINSTANCE hPrevInstance,LPSTR lpCmdline,int nShowCmd)rnrn WNDCLASSEX wnd;rn wnd.cbSize=sizeof(WNDCLASSEX);rn wnd.hInstance=hinstance;rn wnd.cbClsExtra=0;rn wnd.cbWndExtra=0;rn wnd.hbrBackground=(HBRUSH)GetStockObject(WHITE_BRUSH);rn wnd.lpszMenuName=NULL;rn wnd.lpszClassName="MyWindow";rn wnd.hIconSm=LoadIcon(NULL,IDI_APPLICATION);rn wnd.hCursor=LoadCursor(NULL,IDC_ARROW);rn wnd.hIcon=LoadIcon(NULL,IDI_APPLICATION);rn wnd.style=CS_DBLCLKS | CS_OWNDC | CS_HREDRAW | CS_VREDRAW;rn RegisterClassEx(&wnd);rn HWND hwnd;rn hwnd=CreateWindowEx(NULL,"MyWindow","My Basic Window",WS_OVERLAPPEDWINDOW |rn WS_VISIBLE,0,0,400,400,NULL,NULL,hinstance,NULL);rn ShowWindow(hwnd,SW_SHOWNORMAL);rn MSG msg;rnwhile(GetMessage(&msg,NULL,0,0))rnrn TranslateMessage(&msg);rn DispatchMessage(&msg);rnrn return 0;rnrnrnLRESULT CALLBACK WindowPro(rn HWND hwnd,rn UINT uMsg,rn WPARAM wParam,rn LPARAM lParam )rnrnrn switch(uMsg)rn rn case WM_PAINT:rn break;rnrn case WM_CHAR:rn char szchar[20];rn sprintf(szchar,"char is %d",wParam);rn MessageBox(hwnd,szchar,"tang",MB_OK);rn break;rn case WM_LBUTTONDOWN:rn MessageBox(hwnd,"mouse click","tang",MB_OK);rn break;rn case WM_CLOSE:rn if(IDYES==MessageBox(hwnd,"是否退出程序","tang",MB_YESNO))rn rn DestroyWindow(hwnd);rn rn break;rn default:rn return DefWindowProc(hwnd,uMsg,wParam,lParam);rnrnrn rn rn return 0;rnrn创建一个窗口:rn一运行就出现"0x000000"指令引用的内存..."<em>错误</em>.哪里出问题了
我看一下这代码
在Dreamweaver中预览没问题,可IE打开时,不能显示BAR.GIF这个图片(网页中路径正确)rnrnrnrn rn 电子版rn rnrnrnrn rn rn rn rn 封面|目录|上一页|下一页|封底rn rn rn rn rn rn rn 封面|目录|上一页|下一页|封底rn rn rnrnrn
看看代码...!
package marks;rnimport java.io.*;rnrnpublic class persons rn public static void main(String[] args)rn rn tryrn rn String head = "Name,ID,DS,DB";rn byte[] c = new byte[40];rn c = head.getBytes();rn System.out.println(c);rn rn FileOutputStream fo = new FileOutputStream("c:\\student.txt");rn byte [] name = new byte[40];rn byte [] id = new byte[4];rn byte [] ds = new byte[3];rn byte [] db = new byte[3];rn System.in.read(name);rn System.in.read(id);rn System.in.read(ds);rn System.in.read(db);rn rn String sName = new String(name);rn String sId = new String(id);rn String sDs = new String(ds);rn String sDb = new String(db);rn rn String record = "\n"+sName+","+sId+","+sDs+","+sDb;rn c = record.getBytes();rn fo.write(c);rn fo.close();rn rn catch(FileNotFoundException fe)rn rn System.out.println("File Not Found");rn rn catch(IOException ie)rn rn System.out.println("IO Exception");rn rn rnrnrnrn执行程序没有错.但是我输入数据以后,输入的信息没有保存到文本文件里面,rn请高手<em>帮</em>我<em>看看</em>哪里有问题,
看看代码|!!!!!!!!
dwWait = WaitForMultipleObjects(cdwIClass+1, ph, FALSE, INFINITE);rn if ((dwWait < WAIT_OBJECT_0) || (dwWait >= (WAIT_OBJECT_0 + cdwIClass + 1))) rn rn IFDBG(DebugOut(DEBUG_HCI_TRANSPORT, L"[HCIUNIV] HciUnivNotifyThread - WaitForMultipleObjects returned failure.\n"));rn break;rn 请问WaitForMultipleObjects这个函数如果参数是INFINITE,是不是一定要等到要号才会执行下面的<em>代码</em>呀?如果是,那为什么会有dwWait >= (WAIT_OBJECT_0 + cdwIClass + 1这样的结果呢?
看看代码
rnrnrnrn<> "" thenrn srcbh=clng(rs(0))+1rn end ifrn end ifrn rs.Closern end ifrn rn rn rs.Open "select * from oa_rwb " _rn & "where ygbh=" & sygbh & " " _rn & "and rcbh=" & srcbh & " " _rn ,conn,3,2rn if rs.EOF thenrn rs.AddNewrn rs("rcbh")=srcbhrn rs("ygbh")=sygbhrn rs("scrbh")=sygbhrn end ifrn rs("rcrq")=srcrqrn rs("rcbt")=srcbtrn rs("rcnr")=srcnrrn rs("rclb")=srclbrn rs("zyx")=szyxrn rs("kssj")=skssjrn rs("Edatetime")=srcjsrqrn rs("wcbz")=swcbzrn rs("wcqk")=swcqk rn rs("alarm_type")=alarm_type rn rs("alarm_day")=alarm_day rn rs.Updatern rs.Closern set rs=nothing'加一张完成情况表 rn rn/* rs1.Open "select * from oa_rwb_finish " _rn & "where ygbh=" & sygbh & " " _rn & "and rcbh=" & srcbh & " " _rn & "and add_datetime=" & convert(varchar,getdate(),102) & " " _rn ,conn,1,1 rn rn if not rs1.EOF thenrn rs1.AddNewrn rs1("rcbh")=srcbhrn rs1("ygbh")=sygbhrn response.write rs1("rcbh") rn end ifrn rs1("wcqk")=swcbz rn rs1.Update rn rn rs1.Closern set rs1=nothing */rn rn conn.closern set conn=nothingrn rn%>rnrn问题是/**/这之间的语名是我后面加上去的,但都没有执行到,看了一个上午都没发现问题,急啊?<em>帮</em><em>帮</em>我啊rn
我解释一下这代码
private void loadController()rn InitialContext ctx = this.getCtx("localhost:1099");rn try rn UrlMapingDao dao = (UrlMapingDao) ctxrn .lookup("UrlMapingDaoImpl/remote");rn List result = dao.findBySite("www");rn for (SysUrlMapping m : result) rn Class c = Class.forName(m.getController().getPath());rn BaseController controller = (BaseController)c.newInstance();rn controllers.put(m.getUri(), controller);rn
重构_改善既有代码的设计(中文版)下载
软件工程领域的超级经典巨著,与另一巨著《设计模式》并称"软工双雄",全美销量超过100000册,亚马逊书店五星书。 在本书中,作者Martin Fowler充分展示了何处可能需要重构,以及如何将不好的设计改造为良好的设计。 当对象技术成为老生常谈之后——尤其在Java编程语言之中,新的问题也在软件开发社区中浮现了出来。缺乏经验的开发人员完成了大量粗劣设计,获得的程序不但缺乏效率,也难以维护和扩展。渐渐地,软件系统专家发现,与这些沿袭下来的、质量不佳的程序共处,是多么艰难。对象专家运用许多技术来改善既有程序的结构完美性与性能,已有数年之久。 相关下载链接:[url=//download.csdn.net/download/god_son/2891544?utm_source=bbsseo]//download.csdn.net/download/god_son/2891544?utm_source=bbsseo[/url]
小黄鸡 安卓手机版下载
小黄鸡哦 安卓的啊 可以自由聊天,也可以调戏她。 相关下载链接:[url=//download.csdn.net/download/lw313/5010392?utm_source=bbsseo]//download.csdn.net/download/lw313/5010392?utm_source=bbsseo[/url]
自动客户机下载
自动客户机 自动分析客户服务性质 安全,可靠 相关下载链接:[url=//download.csdn.net/download/u010274087/5252040?utm_source=bbsseo]//download.csdn.net/download/u010274087/5252040?utm_source=bbsseo[/url]
相关热词 c# stream 复制 android c# c#监测窗口句柄 c# md5 引用 c# 判断tabtip 自己写个浏览器程序c# c# 字符串变成整数数组 c#语言编程写出一个方法 c# 转盘抽奖 c#选中treeview
我们是很有底线的