webconfigurationmanager未定义 [问题点数:50分,结帖人sz_lgp]

Bbs5
本版专家分:2698
结帖率 100%
Bbs6
本版专家分:7587
asp.net 用WebConfigurationManager读取和修改配置文件
为了方便有时我们会把一些简单的配置的信息放入web.config文件里。 放到appSettings添加key value等信息。 ConfigurationManager.AppSettings["key"]来读取对应key的value. 保存的话。 Configuration cfa = WebConfigurationManager.OpenWebConfiguration("~")
ConfigurationManager WebConfigurationManager
ConfigurationManager WebConfigurationManager的开发使用,修改ConfigurationManager 默认的web.config文件读取路径
关于WebConfigurationManager读取配置文件问题
在VS2012中创建 控制台程序,在main函数中代码如下(来自msdn http://msdn.microsoft.com/zh-cn/library/ms151456%28v=vs.80%29.aspx)rnrn public static void Main()rn rn System.Configuration.Configuration config =rn WebConfigurationManager.OpenWebConfiguration(null)rn as System.Configuration.Configuration;rnrn KeyValueConfigurationCollection appSettings =rn config.AppSettings.Settings;rnrn Console.WriteLine("[appSettings for app at: 0]", "/configTest");rn Console.WriteLine(appSettings.AllKeys.Length);rn foreach (string key in appSettings.AllKeys)rn rn Console.WriteLine("Name: 0 Value: 1",rn key, appSettings[key].Value);rn rnrn Console.Read();rn rnrnconfigTest文件中的内容rnrnrnrn rn rn rn rn rnrnrn然后当.OpenWebConfiguration(null)函数中不为null或""时,如“configTest”,会提示ArgumentException 此处不允许使用相对虚拟路径“configTest”。 尝试用绝对路径也不行,提示同样 ”此处不允许使用相对虚拟路径“ 的错误rnrn这个.OpenWebConfiguration(null)函数的参数到底该怎么设置
一个诡异的WebConfigurationManager问题
ASP.Net 4.0的程序,使用了System.Web.Configuration.WebConfigurationManager,一直都很正常,但是唯独遇到了一台Windows 2003 R2 X64的机器,只要使用WebConfigurationManager,客户端就无法获得服务器上的数据,去掉WebConfigurationManager的相关代码就正常,在其他同样系统(Windows 2003 R2 X64)测试没出现这样的问题,请问出问题的这台机器哪里出了问题?rnrnPS:rn1、.NET Framework 4.0、ASP.Net 4.0都重新安装过,问题依旧rn2、使用的是RIA Service,出现的错误是:Load operation failed for query 'xxx', System.ServiceModel.DomainServices.Client.DomainOperationException
'WebconfigurationManager' 怎么说不存在?
我从sql 2000升级到了2005, 因此webconfig同时也要修改,修后asp.net程序也修改了,但是报错说WebconfigurationManager不存在,之前我并没有用WebconfigurationManager。应该怎么添加相应的操作?rnrn修改前rnrnrn修改后rnrnrnc#修改前rnusing System;rnusing System.Data;rnusing System.Configuration;rnusing System.Collections;rnusing System.Web;rnusing System.Web.Security;rnusing System.Web.UI;rnusing System.Web.UI.WebControls;rnusing System.Web.UI.WebControls.WebParts;rnusing System.Web.UI.HtmlControls;rnusing System.Web.Configuration;rnusing System.Data.SqlClient;rnrnstring strConn = ConfigurationSettings.AppSettings["connectionstring"];rnSqlConnection conn=new SqlConnection(strConn); rnstring strSQL = "proc_SearchCompanyKeyWord"; rnrnc#修改后rnusing System;rnusing System.Data;rnusing System.Configuration;rnusing System.Collections;rnusing System.Web;rnusing System.Web.Security;rnusing System.Web.UI;rnusing System.Web.UI.WebControls;rnusing System.Web.UI.WebControls.WebParts;rnusing System.Web.UI.HtmlControls;rnusing System.Web.Configuration;rnusing System.Data.SqlClient;rnrnstring strConn = WebconfigurationManager.ConnectionStrings["NorthwindconnectionString"].connectionString;rnSqlConnection conn=new SqlConnection(strConn); rnstring strSQL = "proc_SearchCompanyKeyWord";rnrn现在报错说WebconfigurationManager不存在,该怎样处理?rnrn
关于ConfigurationManager和WebConfigurationManager的选择问题!
据说微软建议:rn在Web应用程序配置文件的操作时建议采用WebConfigurationManagerrn在客户端配置文件的操作时建议采用ConfigurationManagerrnrn但是现在我编写了一个中间组件,该组件可以用在Web应用程序中,也可以用在客户端应用程序中,在该组件中需要读取配置,那么我该采用哪个呢?谢谢!
利用WebConfigurationManager修改web.config 问题
[code=C#]rnprotected void Page_Load(object sender, EventArgs e)rn rn if (!Page.IsPostBack)rn rn SetAppSetting("del_flag", "1");rn rn rnprivate void SetAppSetting(string key, string val)rn rn Configuration config = WebConfigurationManager.OpenMachineConfiguration([color=#FF0000]地址[/color]);rnrn string strExists = "";rn tryrn rn strExists = config.AppSettings.Settings[key].Value;rn rn catchrn rnrn rnrn if (strExists == "")rn rn config.AppSettings.Settings.Add(key, val);rn rn elsern rn config.AppSettings.Settings[key].Value = val;rn rn config.Save();rn rn[/code]rn上面红色的地址,我用了Request.ApplicationPathrn"~/"rn"~"rn"C:\\Documents and Settings\\Administrator\\桌面\\text"rn这几种方式 都有错.说不能为\等东西开头或结尾.rn没有提示这个错误的则直接找到的是.machine.config这个配置文件rn而且还在这个文件中添加了rnrn[color=#FF00FF] rnrn rn rn rn rn[/color]rnrn怎么才能获取到当前项目的位置文件.web.config.地址应该怎么写..rn
'$'未定义
我写了一个jquery ajax,可是报如题中的错误。rnjs文件:rnfunction getinfo()rnrnvar a="str:'123'";rn $.ajax( 这句报错rn type:"post",rn url:"Default2.aspx/getinfo",rn datatype:"json", rn data:a,rn success: function(data) rn alert("dae");return;rn rn );rnrnrn.aspx文件里:rnrnrnWebService文件方法rn[WebMethod]rn public string getinfo(string str)rn rn return "ok";rn
未定义
//判断提交rnif ($_GET['action'] =='register') rnrnif ($_POST['code'] == $_SESSION['code']) rn //接收用户数据rn $_username = $_POST['username'];rn echo $_username;rn rn elsern alert_back(); rn rnrnrn function _alert_back()rn echo " ";rn exit();rnrn rn提示 Undefined index:actionrn
用WebConfigurationManager设置appSettings连接字符串无反应
[code=C#] rn Configuration config = WebConfigurationManager.OpenWebConfiguration(context.Request.ApplicationPath);rn AppSettingsSection appSettings = (AppSettingsSection)config.GetSection("appSettings");rn if (dbName == "TestWeb")rn rn appSettings.Settings["SQLServer"].Value = "server=192.168.1.7;database=TestWeb;uid=web;pwd=web";rn appSettings.Settings["DBOName"].Value = "WebDB";rn rn[/code]rn不报错,但是也不上。
类库无法使用WebConfigurationManager吗?怎样解决?
(VS2008+vb)新建了一个小网站,写了几个类,测试是成功的,想编把它们译成dll文件,便另外新建项目,建一个类库,添加了那网站里的那几个类,进行生成,出现了错误,其中如下:rnrnImports System.Web.Configuration绿色波浪线,像是没法添加这一引用rnrnWebConfigurationManager蓝色波浪线,没有命名rnrnrn个人理解是不是类库没法引用Imports System.Web.Configuration,而这WebConfigurationManager又是我所必需要的,要怎样解决这个问题呢?rnrn还有我把那几个类编译成dll的过程对吗?如果不对望能加以指导,谢谢!
inet_pton未定义
添加#include <ws2tcpip.h> 
未定义表达式
相关C语言的书籍里面说“a[i]=i++;”语句是非法的,具体如下:   问:为什么下面的代码不可以?          a[i] = i++;   答:子表达式i++有一个副作用,那就是它会改变i的值,由于i在同一表达式的其他地方被引用,因此会导致<em>未定义</em>的行为。无从判断该引用是旧值还是新值。注意,尽管在其他文献中认为这类表达式的行为时不确定的,但C标准却强烈声明它是<em>未定义</em>的   由
“con”未定义
部署到正式环境上时出现“con”<em>未定义</em>的错误   这个一般都是因为doCollect未注销
ajax未定义
我用ajax作为搜索,我的机子没有问题可以成功搜索,但是我朋友的机子就提示错误ajax<em>未定义</em>,不知道是什么原因,请大家帮助一下,谢谢。
‘sys’的未定义
‘sys’的<em>未定义</em>。在本地没有这个错误。上传到服务器就有了,这是为什么呢?
提示未定义
代码如下:rn ...rn rn rn rn rn rn rn rn rn rn rn rn rn在不输入内容的情况下,点save按钮,网页出错,提示: 错误:txt_cs<em>未定义</em>,为什么?怎样修改?
变量未定义
Private Sub Text47_Change()rn If KeyCode = vbKeyReturn Thenrn Text48.SetFocusrn End IfrnEnd Subrnrn工程运行到KEYCODE时提示:rn编义错误rn变量<em>未定义</em>rn在线等待!急!rnrn
TryEnterCriticalSection()未定义
前几天,想用这个函数来偿试进入临界区,但不知为什么编译时报错说<em>未定义</em>,而明明头文件已包函。后改用EnterCriticalSection(),却不报错了,能正常编译运行。这是什么原因,有没哪位大侠知道啊?我用的是vc6.0sp6,中文企业版
未定义引用
大家好rn在头文件jpeg_encoder.h中有如下定义:rnextern void InitEncoder(int quality,int color_space);rnextern int CompressImage( rn unsigned char *pInBuf, //source data, bgr format, 3 bytes per pixelrn unsigned char *pOutBuf,//destination buffer, in jpg formatrn int nWidthPix, //image width in pixelsrn int nHeight, //heightrn int *nOutputBytes //return number of bytes being writtenrn );rn在主程序imgview.c中#include "jpeg_encoder.h"并有如下引用:rnInitEncoder(70, YUV420_INPUT);rnCompressImage(out_buff,in_buff,yuv_width,yuv_height,&nOutputBytes);rnrn而我在make时出现以下错误:rn_InitEncoder<em>未定义</em>引用;rn_CompressImage<em>未定义</em>引用;rnrn请问下这是怎么回事呢?怎么解决?
未定义实体
刚才遇到一个问题,在jQuery中进行ajax调用,servlet传递进来的是xml格式,定义的dataType也是xml格式,也都统一编码为UTF-8,可是某些时候还是会出现parsererror错误。 通过在firefox中的错误控制台里的情况显示是XML解析时出错了,原来是XML节点中不能直接出现html转义符,所以需要在servlet中response.out.print的时候加上C...
jquery $ 未定义
jquery文件引入了,是在最上面引入的。一直报错rnrnrnrnrnrnrnrnrn rn 添加rn rnrn rn rn rnrnrn rn rn rn rn rn rn rnrn
FCKEditorAPI 未定义
本来想在ASP.NET 2.0中使用FCKEditorAPI中提供的InsertHTML()函数,但是我在使用过程中浏览器会报告 FCKEditorAPI <em>未定义</em>的错误,请问如何解决?rnrn我使用的代码如下:rn protected void InsertAttachmentHTML()rn rn String csName = "Insertpic1";rn Type csType = GetType();rn ClientScriptManager cs = Page.ClientScript;rnrnrn if (!cs.IsStartupScriptRegistered(csType, csName))rn rn //FCKeditor1rn string cstext1 =rn @"var oEditor = FCKeditorAPI.GetInstance(FCKeditor1);rn oEditor.InsertHtml('');";rnrn cs.RegisterStartupScript(csType, csName, cstext1, true);rn rn rnrn//sMsg是返回的提示信息,myPage是当前页rn//调用这个函数就可以了rn protected void btnUploadFile_Click(object sender, EventArgs e)rn rn InsertAttachmentHTML();rn
'MyTest' 未定义
什么是DWR?rnrn DWR是一个Open Source的 java项目。DWR可以让JavaScript调用运行在Web服务器里面的JAVA程序。简单一点或者专业一点就是Easy AJAX for JAVA.rnrn下面将一步一步的介绍怎么完成一个简单DEMOrnrn1,从官方网站下载DWR https://dwr.dev.java.net/files/documents/2427/32252/dwr.war 把他直接放到TOMCAT_HOME/webapps 下面rnrn2,编写一个Java类如下:rnrn DWRTest.javarnrn package com.test.ajax;rnrn/**rn *rn * @author 方见华rn *rn */rnpublic class DWRTest rn public DWRTest()rn rn rn public String getMyName()rn return "James Fang";rn rnrn rnrn3, 把DRWTest类配置在dwr.xml中,dwr.xml是DWR的配置文件,所有需要在JavaScript中调用的java的类都必须在这个文件中描述 。这个文件的位于TOMCAT_HOME/webapps/dwr/WEB-INF/dwr.xml. 在标签中添加以下内容rnrn rn rn rnrn4, 编写调用DWRTest类 getMyName的方法的HTML文件,test.htmlrnrnrnrnrn DWR - My First AJAXrn rn rn rn rn rn rnrn Ajax Test Pagern rn rnrnrn 5, 运行,在浏览器中输入 http://localhost:8080/dwr/test.htmlrnrnrn按着他的做法出来'MyTest' <em>未定义</em>
document未定义
rn rn JavaScript测试rn rnrnrn rn rn rn rnrnrnrn rnrnrnrnrn我写了个很简单的网页, 怎么提示我 document 没有定义呢?
参数未定义
[code=C/C++]#include rnusing namespace std;rnvoid m_m(float num[100],int n,float *max,float *min);rnvoid main()rnrn float num[100];rn cout<<>n;rn cout<<>num[i];rn float *max,*min;rn *max=num[0];rn *min=num[0];rn m_m(num,n,max,min);rn cout< is being used without being initialized.rnrn(Press Retry to debug the application)rn---------------------------rn终止(A) 重试(R) 忽略(I) rn---------------------------rn[/code]rn是什么原因呢?
with 变量未定义
公共模块:rnPublic Function ExecuteSQL(ByVal SQL As String, MsgString As String) As ADODB.RecordsetrnDim cnn As ADODB.ConnectionrnDim rst As ADODB.RecordsetrnDim sTokens() As StringrnOn Error GoTo ExecuteSQL_ErrorrnsTokens = Split(SQL)rnSet cnn = New ADODB.Connectionrncnn.Open ConnectStringrnIf InStr("insert,delete,update", UCase$(sTokens(0))) Thenrncnn.Execute SQLrnMsgString = sTokens(0) & "query successful"rnElsernSet rst = New ADODB.Recordsetrnrst.Open Trim$(SQL), cnn, adOpenKeyset, adLockOptimisticrnrst.MoveLastrnrst.GetRowsrnrnSet ExecuteSQL = rstrnMsgString = "查询到" & rst.RecordCount & "条记录"rn End IfrnExecuteSQL_Exit:rn Set rst = Nothingrn Set cnn = NothingrnExit FunctionrnExecuteSQL_Error:rn MsgString = "查询错误:" & Err.Descriptionrn Resume ExecuteSQL_ExitrnEnd FunctionrnPublic Function ConnectString() As StringrnConnectString = "FileDSN=Study.dsn;UID=Administrator;PWD="rnrnrnEnd FunctionrnrnPublic Function testtxt(txt As String) As BooleanrnIf Trim(txt) = "" Thenrn testtxt = FalsernElsern testtxt = TruernEnd IfrnrnEnd Functionrn查询代码:rnPrivate Sub Command1_Click()rnDim txtSQL As StringrnDim MsgText As StringrnDim sMeg As StringrnrnDim dd(4) As BooleanrnDim mrc As ADODB.RecordsetrntxtSQL = "select Student.*,Choice.Coursenum,Choice.Score from Student inner join Choice on Student.Snum=Choice.Snum where"rnIf Option1.Value Thenrn If Trim(Text1.Text) = "" Thenrn sMeg = "学号不能为空"rn MsgBox sMeg, vbOKOnly + vbExclamation, "警告"rn Text1.SetFocusrnExit SubrnElsern If Not IsNumeric(Trim(Text1.Text)) Thenrn MsgBox "请输入数字!", vbOKOnly + vbExclamation, "警告"rnExit SubrnText1.SetFocusrn End Ifrndd(0) = TruerntxtSQL = txtSQL & " Student.Snum='" & Trim(Text1.Text) & "'and Choice.Snum='" & Trim(Text1.Text) & "'"rn End IfrnEnd Ifrn If Not (dd(0) Or dd(1) Or dd(2) Or dd(3)) ThenrnMsgBox "请设置查询方式!", vbOKOnly + vbExclamation, "警告"rnExit Subrn End IfrnSet mrc = ExecuteSQL(txtSQL, MsgText)rnWith MSFlexGrid1rn .Rows = 2rn .CellAlignment = 4rn .TextMatrix(1, 0) = "Snum"rn .TextMatrix(1, 1) = "Classnum"rn .TextMatrix(1, 2) = "Sname"rn .TextMatrix(1, 3) = "Ssex"rn .TextMatrix(1, 4) = "Sbirthday"rn .TextMatrix(1, 5) = "Coursenum"rn .TextMatrix(1, 6) = "Score"rn Do While Not mrc.EOFrn .Rows = .Rows + 1rn .CellAlignment = 4rn .TextMatrix(.Rows - 1, 0) = mrc.Fields(0)rn .TextMatrix(.Rows - 1, 1) = mrc.Fields(1)rn .TextMatrix(.Rows - 1, 2) = mrc.Fields(2)rn .TextMatrix(.Rows - 1, 3) = mrc.Fields(3)rn .TextMatrix(.Rows - 1, 4) = Format(mrc.Fields(4), "yyyy-mm-dd")rn .TextMatrix(.Rows - 1, 5) = mrc.Fields(5)rn .TextMatrix(.Rows - 1, 6) = mrc.Fields(6)rn mrc.MoveNextrn LooprnEnd Withrnmrc.ClosernEnd Subrn查询的时候老是说WITH变量<em>未定义</em>是什么原因啊rnrn
GetPrivateProfileString未定义
在我的mfc程序里加了句rnchar Temp[100]; rnGetPrivateProfileString("bbb", "ccc", "0", Temp, 100, ".\\aaa.ini");rnrn报错为:rnrn error C2065: 'GetPrivateProfileString' : undeclared identifierrnrnrn有人说加#include 可解决 但是没用rn请各位渊博的大人为我解惑吧
FCKEditorAPI未定义
//FUCKING,单独为FCK写一个js函数,插入FCK的内容rn setFCKContent : function (newsId)rn alert("newsId:"+newsId);rn //var newsId = document.getElementById("newsId").value;rn //alert("newsId:"+newsId);rn admnewlist.findByNewsId(newsId,rn callback:function(object)rn //alert("object:"+object);rn admin.getFCKContent(object);rn rn )rn ,rn getFCKContent : function (object)rn alert(object.newsContent);//可以打印出内容rn var oEditor = FCKeditorAPI.GetInstance("content"); //执行到这就报FCKeditorAPI<em>未定义</em>rn oEditor.InsertHtml(object.newsContent) ; rn document.location.href = basePath+"admin//news//newsEdit.jsp?newsId="+object.newsId;rn rn请问哪位高手碰到过这样的问题,FCKeditorAPI<em>未定义</em>,web.xml里面都配置了,包也都导入了,代码可以肯定没问题,我alert里面的都能弹出内容,但是执行到FCKeditorAPI.GetInstance("content"); 就报FCKeditorAPI<em>未定义</em>
变量未定义
我在代码中建立一个变量,类型是Collection,但是在编译的时候,VFPrn提示我变量<em>未定义</em>?请问要如何解决?代码如下:rnrnloCollection As CollectionrnloCollection = Newojbect("Collection")rnrn难道集合不是这样定义的吗?
WebForm_SaveScrollPositionSubmit 未定义
网页总显示有错,在我自己电脑上好好的。上传到服务器上就有错rn双击感叹号出现如下提示:rnrnWebForm_SaveScrollPositionSubmit <em>未定义</em>rnrn跟这个人的错误一样[url=http://zhidao.baidu.com/question/114168899.html]http://zhidao.baidu.com/question/114168899.html[/url]rnrn[size=24px][b]我的也是加入了MaintainScrollPositionOnPostBack = true 这样可以记住页面状态。rnrnMaintainScrollPositionOnPostBack = true 页面没效果 并提示脚本错误 WebForm_SaveScrollPositionSubmit <em>未定义</em>rn.axd映射已添加[/b][/size]rnrn在我电脑上好好的。rn好像不是.axd映射的问题,怎么办?但可以肯定是空间设置的问题。rn
idhttp1.Request.SetHeaders; 未定义??
idhttp1.Request.SetHeaders; rnidhttp1.Request.RawHeaders.Values['cookie'] := '1346470027822_6634_227';rnrn都提示 undeclared identifier rnrn是哪里出错了?
WebForm_PostBackOptions 未定义
在webconfig中加入了自定义模块rnStrConvHttpModule.cs文件如下:rn public class StrConvHttpModule : IHttpModulern rn void context_BeginRequest(object sender, EventArgs e)rn rn HttpApplication application = (HttpApplication)sender;rn HttpContext context = application.Context;rn context.Response.Filter = new StrConvFilterStream(context.Response.Filter);rn rnrn void IHttpModule.Init(HttpApplication context)rn rn context.BeginRequest += new EventHandler(context_BeginRequest);rn rn rn public class StrConvFilterStream : Streamrn rn private Stream _sink;rn private long _position;rn public StrConvFilterStream(Stream sink)rn this._sink = sink;rn public override bool CanReadrn getreturn true;rn rn public VbStrConv Langrn get;set;rnrn public override bool CanSeekrn getreturn true;rn rn public override bool CanWritern getreturn true;rn rn public override long Lengthrn getreturn 0;rn rn public override long Positionrn getreturn this._position;rn setthis._position = value;rn rnrn public override long Seek(long offset, SeekOrigin direction)rn return this._sink.Seek(offset, direction);rnrn public override void SetLength(long length)rn this._sink.SetLength(length);rnrn public override void Close()rn this._sink.Close();rnrn public override void Flush()rn this._sink.Flush();rnrn public override int Read(byte[] buffer, int offset, int count)rn return this._sink.Read(buffer, offset, count);rnrn public override void Write(byte[] buffer, int offset, int count)rn rn if (HttpContext.Current.Response.ContentType == "text/html")rn rn Encoding e = Encoding.GetEncoding(HttpContext.Current.Response.Charset);rn string s = e.GetString(buffer, offset, count);rn s = Strings.StrConv(s, Lang, CultureInfo.CurrentCulture.LCID);rn this._sink.Write(e.GetBytes(s), 0, e.GetByteCount(s));rn rn elsern rn this._sink.Write(buffer, offset, count);rn rn rn rnrn问题:rn所有页面只要有用微软自带的验证控件如:requiredfieldvalidator,在单击按钮回发时都会出现脚本错误:“WebForm_PostBackOptions <em>未定义</em>”。
!!!用户控件未定义 !!!
我在同一个项目下rn建立一个用户控件(wucOne.ascx)和一个web forms(a.aspx),rn并且a.aspx中调用用户控件(wucOne.ascx),内容如下:rnrnwucOne.ascxrnrnrnrnrnrnwucOne.ascx.vbrnrn Public Property strMsg() As Stringrnrn Getrn Return tbMsg.Textrn End Getrnrn Set(ByVal Value As String)rn tbMsg.Text = Valuern End Setrnrn End Propertyrnrna.aspxrnrnrnrnrna.aspx.vbrnrnsub page_load()rn response.write(pp.strMsg) '''此处出错:pp <em>未定义</em>rnend subrnrn敬请各路豪侠帮帮忙,谢谢 !!!!!!!!!!!!!!!
UINT64_C未定义
[color=#0000FF]使用ffmpeg库编译的时候老是出现UINT64_C<em>未定义</em>,看到了宏定义把它加入里面也不行,在谷歌上的方法试了好多也不行,谁知道怎么解决吗?rn错误:In file included from /usr/local/include/libavutil/avutil.h:238:0,rn from /usr/local/include/libswscale/swscale.h:37,rn from rgb-to-flv.cpp:11:rn/usr/local/include/libavutil/common.h: 在函数‘int32_t av_clipl_int32_c(int64_t)’中:rn/usr/local/include/libavutil/common.h:175:47: 错误: ‘UINT64_C’在此作用域中尚未声明rn我在stdint.h里面看到了这个UINT64_C的宏定义,把它加入到common.h中去,就会出现更多的错误,比如:rn/tmp/cceSeT36.o: In function `main':rnrgb-to-flv.cpp:(.text+0x2a5): undefined reference to `av_register_all'rnrgb-to-flv.cpp:(.text+0x2aa): undefined reference to `avcodec_register_all'rnrgb-to-flv.cpp:(.text+0x2f2): undefined reference to `avcodec_find_encoder'rnrgb-to-flv.cpp:(.text+0x308): undefined reference to `avcodec_alloc_context3'rnrgb-to-flv.cpp:(.text+0x3d6): undefined reference to `avcodec_open2'rnrgb-to-flv.cpp:(.text+0x53b): undefined reference to `sws_getContext'rnrgb-to-flv.cpp:(.text+0x60a): undefined reference to `avpicture_fill'rnrgb-to-flv.cpp:(.text+0x642): undefined reference to `avpicture_fill'rnrgb-to-flv.cpp:(.text+0x778): undefined reference to `sws_scale'rnrgb-to-flv.cpp:(.text+0x78f): undefined reference to `av_init_packet'rnrgb-to-flv.cpp:(.text+0x7d2): undefined reference to `avcodec_encode_video2'rnrgb-to-flv.cpp:(.text+0x857): undefined reference to `avcodec_close'rnrgb-to-flv.cpp:(.text+0x866): undefined reference to `av_free'rncollect2: ld 返回 1rn出现了这么多错误就会.rn我安装ffmpeg的步骤是按着这个来的:rn我的安装步骤有错吗?希望高手给小生解释一下,怎么解决这个问题!!![img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/monkey/11.gif][/img]rnPreparationrnrnRemove any existing packages:rnrnsudo apt-get remove ffmpeg x264 libav-tools libvpx-dev libx264-dev yasmrnNote: The multiverse repository must be enabled in order to install the libfaac-dev package. See more details on adding repositories.rnrnGet the dependencies (Ubuntu Desktop users):rnrnsudo apt-get updaternsudo apt-get -y install autoconf automake build-essential checkinstall git libass-dev libfaac-dev \rn libgpac-dev libjack-jackd2-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev \rn librtmp-dev libsdl1.2-dev libspeex-dev libtheora-dev libtool libva-dev libvdpau-dev libvorbis-dev \rn libx11-dev libxext-dev libxfixes-dev pkg-config texi2html zlib1g-devrnGet the dependencies (Ubuntu Server or headless users):rnrnsudo apt-get updaternsudo apt-get -y install autoconf automake build-essential checkinstall git libass-dev libfaac-dev \rn libgpac-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev librtmp-dev libspeex-dev \rn libtheora-dev libtool libvorbis-dev pkg-config texi2html zlib1g-devrnInstallationrnrnYasmrnrnYasm is an assembler and is recommended for x264 and FFmpeg.rnrncdrnwget http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gzrntar xzvf yasm-1.2.0.tar.gzrncd yasm-1.2.0rn./configurernmakernsudo checkinstall --pkgname=yasm --pkgversion="1.2.0" --backup=no \rn --deldoc=yes --fstrans=no --defaultrnx264rnrnH.264 video encoder. The following commands will get the current source files, compile, and install x264. See the x264 Encoding Guide for some usage examples.rnrncdrngit clone --depth 1 git://git.videolan.org/x264.gitrncd x264rn./configure --enable-staticrnmakernsudo checkinstall --pkgname=x264 --pkgversion="3:$(./version.sh | \rn awk -F'[" ]' '/POINT/print $4"+git"$5')" --backup=no --deldoc=yes \rn --fstrans=no --defaultrnNote: You can download the nightly x264 source snapshot as an alternative to using git.rnrnfdk-aacrnrnAAC audio encoder.rnrncdrngit clone --depth 1 git://github.com/mstorsjo/fdk-aac.gitrncd fdk-aacrnautoreconf -fivrn./configure --disable-sharedrnmakernsudo checkinstall --pkgname=fdk-aac --pkgversion="$(date +%Y%m%d%H%M)-git" --backup=no \rn --deldoc=yes --fstrans=no --defaultrnNote: You can download a fdk-aac source snapshot as an alternative to using git.rnrnlibvpxrnrnVP8 video encoder and decoder.rnrncdrngit clone --depth 1 http://git.chromium.org/webm/libvpx.gitrncd libvpxrn./configure --disable-examples --disable-unit-testsrnmakernsudo checkinstall --pkgname=libvpx --pkgversion="1:$(date +%Y%m%d%H%M)-git" --backup=no \rn --deldoc=yes --fstrans=no --defaultrnNote: You can download a libvpx source snapshot as an alternative to using git.rnrnopus (optional)rnrnOpus audio encoder and decoder. Add --enable-libopus to your ffmpeg ./configure line if you want to use this.rnrncdrngit clone --depth 1 git://git.xiph.org/opus.gitrncd opusrn./autogen.shrn./configure --disable-sharedrnmakernsudo checkinstall --pkgname=libopus --pkgversion="$(date +%Y%m%d%H%M)-git" --backup=no \rn --deldoc=yes --fstrans=no --defaultrnFFmpegrnrnNote: Ubuntu Server users should remove --enable-x11grab from the following command:rnrncdrngit clone --depth 1 git://source.ffmpeg.org/ffmpegrncd ffmpegrn./configure --enable-gpl --enable-libass --enable-libfaac --enable-libfdk-aac --enable-libmp3lame \rn --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libspeex --enable-librtmp --enable-libtheora \rn --enable-libvorbis --enable-libvpx --enable-x11grab --enable-libx264 --enable-nonfree --enable-version3rnmakernsudo checkinstall --pkgname=ffmpeg --pkgversion="7:$(date +%Y%m%d%H%M)-git" --backup=no \rn --deldoc=yes --fstrans=no --defaultrnhash -rrnNote: You can download the nightly FFmpeg source snapshot as an alternative to using git.rnrnFinishrnrnInstallation is now complete and FFmpeg is now ready for use. You can keep the x264, libvpx, and ffmpeg directories in your home directory if you plan on updating later. See Updating FFmpeg below for more details. Some optional steps are next followed by instructions on updating FFmpeg and finally instructions on reverting all changes made by this guide.rnrnOptional Installationrnrnqt-faststartrnrnThis is a useful tool if you're showing your H.264 in MP4 videos on the web. It relocates some data in the video to allow playback to begin before the file is completely downloaded. Usage: qt-faststart input.mp4 output.mp4. When converting files with ffmpeg you can add -movflags faststart to have the same effect.rnrncd ~/ffmpegrnmake tools/qt-faststartrnsudo checkinstall --pkgname=qt-faststart --pkgversion="$(date +%Y%m%d%H%M)-git" --backup=no \rn --deldoc=yes --fstrans=no --default install -Dm755 tools/qt-faststart \rn /usr/local/bin/qt-faststartrnAdd lavf support to x264rnrnThis allows x264 to accept just about any input that FFmpeg can handle and is useful if you want to use x264 directly. See a more detailed explanation of what this means.rnrncd ~/x264rnmake distcleanrn./configure --enable-staticrnmakernsudo checkinstall --pkgname=x264 --pkgversion="3:$(./version.sh | \rn awk -F'[" ]' '/POINT/print $4"+git"$5')" --backup=no --deldoc=yes \rn --fstrans=no --defaultrnUpdating FFmpegrnrnDevelopment of FFmpeg and x264 is active and an occasional update can give you new features and bug fixes. First, remove some packages and then update the dependencies:rnrnsudo apt-get -y remove ffmpeg x264 libx264-dev libvpx-devrnsudo apt-get updaternsudo apt-get -y install autoconf automake build-essential checkinstall git libass-dev libfaac-dev \rn libgpac-dev libjack-jackd2-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev \rn librtmp-dev libsdl1.2-dev libspeex-dev libtheora-dev libva-dev libvdpau-dev libvorbis-dev \rn libx11-dev libxext-dev libxfixes-dev texi2html yasm zlib1g-devrnx264rnrncd ~/x264rnmake distcleanrngit pullrnNow run ./configure, make, and checkinstall as shown in the Install x264 section.rnrnfdk-aacrnrncd ~/fdk-aacrnmake distcleanrngit pullrnNow run ./configure, make, and checkinstall as shown in the Install fdk-aac section.rnrnlibvpxrnrncd ~/libvpxrnmake cleanrngit pullrnNow run ./configure, make, and checkinstall as shown in the Install libvpx section.rnrnopusrnrncd ~/opusrnmake distcleanrngit pullrnNow run ./configure, make, and checkinstall as shown in the Install opus section.rnrnFFmpegrnrncd ~/ffmpegrnmake distcleanrngit pullrnNow run ./configure, make, and checkinstall as shown in the Install FFmpeg section.rnrnrn转自:http://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuide[/color][/color]
B800H未定义?
我正在看王爽的汇编语言,进行实验9的时候出了问题:rn........rnmov ax,B800Hrnmov ds,axrn........rn编译的时候,说B800H<em>未定义</em>,这是怎么回事?rnrn附注:内存地址空间中,B8000H-BFFFFH共32KB的空间,为80*25彩色字符模式的显示缓冲区.
ADOConnection未定义??
程序:rnrnrnrnrn rn rn rn 访问ODBC数据源简单示例rn rn rn rn rnrnrn错误:rnServer Error in '/example' Application.rn--------------------------------------------------------------------------------rnrnCompilation Error rnDescription: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. rnrnCompiler Error Message: BC30002: Type 'ADOConnection' is not defined.rnrnSource Error:rnrn rnrnLine 6: Sub Page_Load(Src As Object,E As EventArgs)rnLine 7: Dim ConnectionString,SQLString As StringrnLine 8: Dim MyConnection As ADOConnectionrnLine 9: Dim MyCommand As ADOCommandrnLine 10: Dim DR As ADODataReaderrn rnrnSource File: D:\example\ex6_1.aspx Line: 8 rn
object 未定义
aspx页面 body中rnrn rnrn rn rnrnbody onload时,进行赋值WebOffice.WebUrl="................";rnrn调试打开该界面提示js错误,未找到"WebOffice"rnrn求解;rnrn想在界面中弄两个rn判断插件是否安装来调用不同的对象;rnbody中rn 这样处理对吗?
DWRUtil未定义
JSP页面中,DWRTtil<em>未定义</em>,是怎么回事?
函数未定义?
页面a.aspx中rnrnhtml代码:rnrn rnrn rn rnrnjs代码:rnrnfunction close()rnrn alert('a');rnrnrnrna.cs代码中rnrnprivate void btn_click(*****)rnrn //一些处理逻辑rn Response.Write("1. ");rn Response.End();rnrnrn在单击了submit按钮后,提交,处理事件btn_click后.打印出关闭的按钮,此时单击关闭后,提示函数close()<em>未定义</em>..为何??
Ext未定义
在网上查了,无非是两种原因,一是顺序不对,二是路径不对,都排查了,应该不存在这个问题rn请问还有什么原因rnrn代码rnrnrnrn rn rnrn rn rn rn rnrnrnrnrn
TRegistry未定义
我用Delphi TRegistry对象 访问注册表 提示“TRegistry<em>未定义</em>”,无法编译 !请高手帮忙想个折!
javascript未定义
rn rn rn rn rn rn rn rn rn rn rn rn 相加rn rn rn 想减rn rn rn 相乘rn rn rn 相除rn rnrn rn rn rn rn
Env未定义
要做一个上传显示进度条的功能,在页面里调用JS rn rn但老是报Env<em>未定义</em>.但env.js我已经引里面了.有人知道是怎么回事吗?
未定义的变量!
源代码!rnrnfunction OpenDB($SQL)rn$link = mysql_connect($server_DB, $user_DB, $password_DB)or die("Could not connect:".mysql_error());rnmysql_select_db($database_DB, $link);rn$result = mysql_query($SQL);rnreturn $result;rnrnrnOpenDB("select * from config WHERE ID = 1");rn$row = mysql_fetch_array($result);rnecho $row["className"];rnrn错误提示!rnNotice: Undefined variable: result in E:\wwwroot\include\config.int.php on line 36rnWarning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in E:\wwwroot\include\config.int.php on line 36
WebService未定义?
以前都是建的"ASP.NET网站" ,现在建的是"ASP.NET Web 应用程序" ?rn 这两个有很大区别吗?rn 为什么我在前者里能用JS 调 WebService 的方法..而在后者"ASP.NET Web 应用程序"中却老是 角本错误"WebService<em>未定义</em>"
未定义问题
近来在学习网络间的通讯,遇到不解的问题,请各位解答一下,rntypern TForm1 = class(TForm)rn Timer1: TTimer;rn Label1: TLabel;rn Label2: TLabel;rn IdTCPClient1: TIdTCPClient;rn IdTCPVfw: TIdTCPClient;rn procedure CreateCaptureWindow;rn procedure FormShow(Sender: TObject);rn procedure Timer1Timer(Sender: TObject);rn privatern Private declarations rn procedure CompareFrame(lpVHdr: PVIDEOHDR);rn procedure StopCapture;rn publicrn procedure SendStreamToClient(AThread: TIdTCPClient;Cmd,TempStr:String); rn procedure ControlCommand(var RDStrList:TStringList);rn Public declarations rn end;rnrnTClientHandleThread = class(TThread) //接收线程类 接收线程单元rn privatern CommandStr:String;rn procedure HandleInput;rn protectedrn procedure Execute; override;rn Publicrn constructor Create;rn destructor Destroy; override;rn end;rnrntype里面明明定义了IdTCPVfw,但我在下面写的procedure TClientHandleThread.HandleInput;过程里却出现idTCPVfw<em>未定义</em>的错误,什么原因?
JQuery $ 未定义
刚学jquery,写了一个示例程序:rn$(document).ready(function() rnrn......rnrnrnrnjquery版本:1.4.2rnwindows7平台rnie8 提示在第一行没有对象rnfirefox firedebug 提示$<em>未定义</em>rn什么原因啊?
CKEDITOR 未定义
在项目中,不管是ckeditor的js的引入,还是初始化ckeditor,都没有问题。但是在浏览器中总是无法显示在线   编辑器,且报“CKEDITOR <em>未定义</em>”。后来原因是,CKEditor的js主要文件,都是采用UTF-8编码,而我的项   目jsp页面编码,采用的是GBK编码。   可根据需要修改项目编码或者ckeditor的js编码方式,在保证正常使用的情况下,保持两者的编码...
未定义行为
<em>未定义</em>行为是指C语言标准未做规定的行为。同时,标准也从没要求编译器判断<em>未定义</em>行为,所以这些行为有编译器自行处理,在不同的编译器可能会产生不同的结果;或者程序调用<em>未定义</em>行为,可能会成功编译,甚至一开始运行时没有错误,只会在另一个系统上,甚至在另一个日期运行失败。 当一个<em>未定义</em>行为的实例发生时,“什么事情都可能发生”,也许什么都没有发生。 <em>未定义</em>行为就是运行结果不确定。 eg:
adoconnection 未定义
各位高手:我在编写 asp .net 中遇到了点问题,能不能帮小弟解决一下?代码如下:rnrnrn
dwr未定义
jsp页面引用 var equipid; DWREngine.setAsync(false); publicMethod.haveEquipId(function(data){equipid=data;},addform.equip_id.value); DWREngine.setAsync(true...
JSON 未定义
解决在IE8中无法使用原生JSON的问题 解决 首先说原因,微软文档的Requirements:Note中已经说的很清楚,翻译成中文意思大致如下:JSON是包含在JScript 5.8中,而为了向下兼容ie8只有在文档模式是”Internet Explorer 8 Standards”的时候才使用JScripte 5.8,其他时候使用JScripte 5.7特性。因此如果文档...
dojo未定义
今天遇到了dojo<em>未定义</em>,按照下面的方法解决了问题,转载备忘:   今天在运行项目时,页面突然报错“dojo<em>未定义</em>”!奇怪了,昨天还好好的,怎么今天就出了这个问题呢,在&amp;lt;SCRIPT type=&quot;text/javascript&quot; scr=&quot;/dojo.js&quot;&amp;gt;里指明dojo库文件路径后还是也不行,郁闷死了。结果上网找了一下,发现有位仁兄跟我的问题差不多,看了他的解释才恍然大悟。...
未定义标识符
MFC 自定义的CvtkView类继承于控件类CStatic,但在声明变量CtvkView m_pic时提示:<em>未定义</em>标识符“CvtkView”是怎么回事?加上头文件#include “CvtkView.h”也不行。
FindFirstVolume未定义
系统是XP,开发工具是VC6.0。rnrn#define _WIN32_WINNT 0x0500rn//#define WINVER 0x0500rn#include rn#include rn#pragma comment(lib,"Kernel32.lib")rnrn都加上去了,还是报错,说FindFirstVolume<em>未定义</em>。这还是在MFC中,感觉上面的那些代码都有些多余了。有哪位高手指点下?顺带说句,用VS2005,弄个MFC工程,上面的不加,都不会报错的,这个试过。这VC6.0怎样做不会报错?rn
控件未定义
function CopyAll(T)rnrn T.focus() //得到文本框焦点rn T.select() //全选文本框rn if (document.all)rn therange=T.createTextRange()rn therange.execCommand("Copy") //复制rn rnrnrnrnrnrn报错 Text1 <em>未定义</em>rnrn
ckeditor 未定义
项目用jquery-ui-1.8+ ckeditor + mvc 4做的, 将ckeditor 放到一个页面里,iframe加载这个页面,然后将iframe作为dialog的内容。 rn在父页面里调用子页面的ckeditor的setData()设置ckeditor 的内容,问题是ckeditor 自身报错了。 rn报错内容: CKEDITOR<em>未定义</em>。如图:rn[img=http://img.my.csdn.net/uploads/201304/07/1365313134_3072.png][/img]rnrn请高手帮忙。
sys未定义。。
用了一个fckeditor,一个树形菜单,.net的ajax 运行后,只能在IE六里看到树形菜单IE7,8显示不出来,IE6,7,8都报SYS<em>未定义</em>的错误。。本人才疏学浅找不出原因。。请高人指点。
未定义sqrt
我写了以下代码rn[code=C/C++]#include rn#include rnrnint main() rn int m, k, i, n = 0;rn for ( m = 2; m = k + 1 ) rn printf( "%d", m );rn n++;rn rn //每行显示10个数rn if( n % 10 == 0 )rn printf( "\n" );rn rn return 0;rn [/code]rn使用gcc编译的时候提示:rn/tmp/ccaAPIuq.o: In function `main':rntest.c:(.text+0x46): undefined reference to `sqrt'rncollect2: ld returned 1 exit statusrn已经包含了有文件,怎么会没有定义呢?
Sys未定义
页面提示的错误“Sys”<em>未定义</em>,是怎么引起的?怎么解决?
user_id未定义
我用pb8.0写了一个logon界面,对input text sle_user设定其ID 为user_id,logon按钮onclick()为 rn if (user_id.value == "111") rn alert("Ok!");rn elsern alert("No!")rn文件预览正常,可是通过Powerdynamo发布到一个Databasesite以后,点击logon按钮,就出现user_id<em>未定义</em>,不知道为什磨?
OWC未定义
我用OWC11可以在VS2003里,用Dim ChartSpace1 = New OWC.ChartSpace定义的图表可以画图;把Chart组件拖拽到设计区里,通过右键设置,也可以显示图表。但是如果给拖拽进去的控件起个名字(比如ChartSpace1),在.vb文件中写Chartspace1.Charts.Add(0)等语句时,就会提示Chartspace1<em>未定义</em>,这是怎么回事?
'document' 未定义
-
js未定义
aspx页面有个function show(obj)alert(obj)rnrn后台输出“”rnrn但是点击按钮时js报传的参数<em>未定义</em>,这怎么解决??????rnrnrn
DetourFunction 未定义
第一次用这东西, 我装了2.1的库, 但并没有找到DetourFunction的定义rnrn指点一下
未定义类型?
有如下代码:省略了很多的!rn大致意思是这样的:有类CCsDlg,在csDlg.h里面声明过了,定义就不用说了……rn然后呢又有一个类Cserver 在Server.h里面声明。rn//Server.hrnclass CCsDlg;rnCserverrnrn Cserver* dlg;rn inline bool init(int,Cserver* dlg1)rn rn port=port1;rn Dlg=dlg;rn if(this->Create(port)==FALSE)rn rn AfxMessageBox("create false");rn return FALSE;rn rn if(this->Listen()==FALSE)rn rn AfxMessageBox("listen false");rn return FALSE;rn rn Dlg->SetDlgItemText(IDC_SHOWTEXT,"server ok!");rn return TRUE;rn rn;rn大致意思是说我们调用了init(int ,Cserver* dlg1)这个函数,但是编译时总是说Dlg是<em>未定义</em>的类型。rn大家都说说吧,这是为什么?
ImagePreView 未定义
[img=http://93.images22.51img1.com/6000/jiangsimin8610/398f7a2bb8e514f6158e07be985b5805.jpg][/img]rn这个问题我都调试了好久了,一直都没解决,这个ImagePreView.js是一定放进去了的,但为什么提示<em>未定义</em>呢?我主要就是用这个JS展现一种预览缩略图的效果,同样在html页面下就没错,在aspx页面就有这样的错误。希望能有人帮助我,一定高分重谢!
未定义构造函数
------------------------------------------rn我在查询数据库时,运行出现"OleDbDataReader dr = new OleDbDataReader();"中的new,说是<em>未定义</em>构千函数,请问怎么回事.编写代码如下:rn---------------------------------------------------------rnOleDbConnection con = admin.GetConnection();rn con.Open();rn tryrn rn OleDbCommand cmd = new OleDbCommand("select className,saveFolder from class", con);rn OleDbDataReader dr = new OleDbDataReader();rn rn dr = cmd.ExecuteReader(); //返回SqlDataReader集rn while (dr.Read())rn rnrn if (txtclassName.Text.Trim() == dr[i].ToString() || txtFolder.Text.Trim() == dr[i].ToString())rn rn flag = false;rn //Response.Write("频道名称或静态文件目录已经存在!");rn return;rn rn i++;rnrn rn dr.Close();rn rn catch (HttpException a)rn
未定义的行为
根据C标准, 类似c = (b = a+2) - (a = 1); 和j =i*i++; 这样的语句都会导致“<em>未定义</em>的行为”(undefined behavior),这跟“由实现定义”的行为是不同的。 当程序中出现<em>未定义</em>的行为时,后果是不可预料的。不同的编译器给出的编译结果可能是不同的,但这还不是唯一可能发生的事情:首先程序可能无法通过编译,就算通过了编译也可能无法运行,就算可以运行也有可能崩溃...
未定义的类型
环境:windows8+vs2010+winform 在多项目中,明明已经引用了dll类库,但在编译时提示 <em>未定义</em>的类型。 解决方案: 1)右击该项目 2)属性 3)选择“编译” 4)高级编译选项 5)将默认的目标 Framework 为 .Net Framework client profile 修改为 .Net Framework 4 ok!
AjaxControlToolkit未定义
AjaxControlToolkit<em>未定义</em>
webpack 未定义
1. 管理员下查看 npm 全局的位置: ``` npm root -g ``` 返回路径:C:\Users\Administrator\AppData\Roaming\npm\node_modules 2. 增加环境变量 NODE_PATH C:\Users\user\AppData\Roaming\npm\node_modules 3. 管理员下安装 webpa...
conlose 未定义
这个足够了:  if ( typeof ( console ) !== 'undefined' && console != null) {     console.log("Log exists!");     }     else {     console = {     log: function () {},     warn: function () {},     er
'aa'未定义!!!
 rn rn到 rnrn运行时,有时候打开这个页面,时间出不来,有时候时间出来了,但是你刷新页面,时间又没了.提示错误是'aa'<em>未定义</em>.(aa:单元格的id)rn
basic_stringstream<> 未定义
我在程序里用的标准库的stringstream,结果编译的时候提示我rnerror C2079: 'strstream' uses undefined classrn'std::basic_stringstream'rn这是为什么?难道VC.net的标准库里没有实现basic_stringstream吗?rn
未定义_mvp
Private Sub btnQuery_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnQuery.Clickrn Dim SQLStr As Stringrn Dim MyComB As New OleDbCommandrn MyComB.Connection = MyConrn MyComB.CommandType = CommandType.Textrn MyComB.CommandText = "select * from infotable where 姓名=黄玲玲"rn 'If cboSort.Text = "姓名" Or cboSort.Text = "性别" Or cboSort.Text = "专业" Thenrn ' SQLStr = "select * from infotable where " + cboSort.Text + "=" + txtTo.Text + ""rn ' MyComB.CommandText = SQLStrrn 'Elsern ' SQLStr = "select * from infotable where" + cboSort.Text + "between" + txtFrom.Text + "and" + txtTo.Textrn ' MyComB.CommandText = SQLStrrn 'End Ifrn MyDataAdapter = New OleDbDataAdapterrn MyDataAdapter.SelectCommand = MyComBrn Dim dtData = New DataTablern MyDataAdapter.Fill(dtData)rn Me.DataGrid.DataSource = dtDatarn rn End Subrnrnrnrn________________________________________________________________-rn1.你 看看MyCon有没有实例化,在你给我发的这些代码中是没有实例化的。rn2.你的这句话写的也有点问题rn MyComB.CommandText = "select * from infotable where 姓名=黄玲玲"rnrn应该写成下面这样rn MyComB.CommandText = "select * from infotable where 姓名='黄玲玲'"rnrn再有问题你就从这里发就行了。不用给我发mail了。rnrnrnrnrnrn
线程未定义?
我按入findpar加点后,有感知下拉选择.但运行时,当我按下按键就出错.rnrnprocedure TForm1.Button1Click(Sender: TObject);rnvar findpar:find2;rnbeginrnfindpar.Create(false);rnend;rnrnrn[Warning] Unit1.pas(235): Variable 'findpar' might not have been initializedrnrnrn在线程procedure Execute;中只是执行对主窗体的MEMO赋值.
未定义的看
资源问题待定。启动期间脚本
方法未定义
这是部分user_modify.jsp代码:rnrnrnrnrn这是部分UserManager.java的代码:rnpublic void modifyUser(User user)rn String sql = "update t_user set user_name=?, password=?, contact_tel=?, email=? " + rn "where user_id=? ";rn Connection conn = null;rn PreparedStatement pstmt = null;rn tryrn conn = DBUtil.getConnection();rn pstmt = conn.prepareStatement(sql);rn pstmt.setString(1, user.getUserName());rn pstmt.setString(2, user.getPassword());rn pstmt.setString(3, user.getContactTel());rn pstmt.setString(4, user.getEmail());rn pstmt.setString(5, user.getUserId());rn pstmt.executeUpdate();rn catch(SQLException e)rn e.printStackTrace();rn finallyrn DBUtil.close(pstmt);rn DBUtil.close(conn);rn rn rn最后运行抛出的异常:rnHTTP Status 500 - rnrn--------------------------------------------------------------------------------rnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperException: Unable to compile class for JSP: rnrnAn error occurred at line: 14 in the jsp file: /sysmgr/user_modify.jsprnThe method modifyUser(User) is undefined for the type UserManagerrn11: user.setPassword(request.getParameter("password"));rn12: user.setContactTel(request.getParameter("contactTel"));rn13: user.setEmail(request.getParameter("email")); rn14: UserManager.getInstance().modifyUser(user);rn15: rn16: out.println("修改成功!");rn17: String userId = request.getParameter("userId");//拿到request请求对象中的userIdrnrnrnStacktrace:rn org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)rn org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)rn org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:439)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:334)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:312)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:299)rn org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/6.0.20 logs.rnrn我试了很多方法都不好使,请各位大侠出手相助。。。
CInternetSession 未定义
'CInternetSession' : undeclared identifier,怎么是这样?
JSON未定义
JSON<em>未定义</em>的解决方案
Dialog未定义
Dialog.confirm('警告:真的要删除吗?',function(){});用它的话老提示 Dialog<em>未定义</em>,至今未找到原因。
未定义错误
COMMCONFIG m_ComConfig;rnDCB dcb;rnm_ComConfig.dwSize=sizeof(COMMCONFIG);rnm_ComConfig.wVersion=1;rnm_ComComfig.dcb=dcb; //错误指向这里rnrnrnrnerror C2065: 'm_ComComfig' : undeclared identifierrnerror C2228: left of '.dcb' must have class/struct/union typernrn为什么没定义rnm_ComConfig.dwSize=sizeof(COMMCONFIG);rnm_ComConfig.wVersion=1;这都通过了rnrnm_ComComfig.dcb=dcb; 却来个没定义?什么意思啊?rn
Ext 未定义 ???
大家好 下面是我写的代码 可是执行起来总是提示 Ext<em>未定义</em>rn在网上找的资料说是js的引用顺序有问题 可是调整之后还是不行rn请大家帮忙看看rn rn rn rn rn rn rn rn rn rn rn rn rn Application Layout Tutorial rn rn rn rn rn rn rn rn
GetCaption未定义
rnPrivate Sub Form_Load()rnTimer1.Enabled = FalsernTimer2.Enabled = FalsernFor Each ctl In Me.Controlsrn If TypeOf ctl Is TextBox Thenrn ctl.Text = ""rn End Ifrn Nextrn App.TaskVisible = False '隐藏进程rn If App.PrevInstance Then '防止重复运行rn End Ifrn Dim mypath As Stringrn Dim r As Longrn Dim keyhand As Longrn Dim regfpath As Stringrn regfpath = systempath & "\log.exe"rn currentwindow = GetCaption(GetForegroundWindow)rn '获得当前窗口.rn '-----------------------------------------------
提示“未定义
一、为Dialog类添加了一个成员变量SOCKET类型的成员变量“m_socket”。rn 1、在“ChatDlg.h”头文件中,如下:rn private:rn SOCKET m_socket;rn rn 2、在“ChatDlg.cpp”中使用时:rn //创建套接字rn [color=#FF0000]m_socket=socket(AF_INET,SOCK_DGRAM,0);rn 问题一:这里提示rn 2 IntelliSense: identifier "m_socket" is undefined c:\users\administrator.pc-20110905onbv\desktop\demo\vc\dialog\chat\chat\chatdlg.cpp 167 2 Chatrn 头文件中都定义了,怎么还提示“<em>未定义</em>”呢???rn [/color]rnrn二、为Dialog类“ChatDlg.cpp”,添加了一个方法rn 1、// Implementationrn protected:rn DECLARE_MESSAGE_MAP()rn public:rn bool InitSocket(void);rn ;rn ..........rn ..........rn ..........rn bool CAboutDlg::InitSocket(void)rn rn rnrn //创建套接字rn m_socket=socket(AF_INET,SOCK_DGRAM,0);rn if (INVALID_SOCKET==m_socket)rn rn MessageBox(_T("套接字创建失败!"));rn return FALSE;rnrn SOCKADDR_IN addrSock;rn addrSock.sin_family=AF_INET;rn addrSock.sin_port=htons(6000);rn addrSock.sin_addr.S_un.S_addr=htonl(INADDR_ANY);rnrnrn int retval;rn //绑定套接字rn retval=bind(m_socket,(SOCKADDR*)&addrSock,sizeof(SOCKADDR));rn if (SOCKET_ERROR==retval)rn rn closesocket(m_socket);rn MessageBox(_T("绑定失败!"));rn return FALSE;rn rn return TRUE;rn rn rn 2、在“OnInitDialog()”初始化使用使调用该方法rn // TODO: Add extra initialization herern //初始化套接字rn [color=#FF0000]InitSocket();rn问题二:这是提示错误信息。rn 1 IntelliSense: identifier "InitSocket" is undefined c:\users\administrator.pc-20110905onbv\desktop\demo\vc\dialog\chat\chat\chatdlg.cpp 104 2 Chatrnrn这时“InitSocket(void)”方法的声明是在“ChartDlg”实现类里面,而不是在它的头文件中,是不是要手动加上。rn[/color]
‘MAP_SHARED’ 未定义
打开usr/include/sysy/mman.h头文件,找不到MAP_SHARED定义rn里面内容跟网上看到的源文件不一样,难道是我的库文件太旧了?rn上哪里可以看到标准头文件的源代码
深入体验C语言项目开发.part1.rar下载
深入体验C语言项目开发pdf完整版,一共有三卷,请大家把三卷都下载后在同一文件夹下解压,资源一定完整可用··谢谢 相关下载链接:[url=//download.csdn.net/download/zgj289563749/5287191?utm_source=bbsseo]//download.csdn.net/download/zgj289563749/5287191?utm_source=bbsseo[/url]
网页上鼠标拖动写字 js技术下载
按住鼠标左键不放,在页面中拖动即可写字 ; 同时按住ctrl和鼠标左键不放,在页面中拖动即可把字擦去 相关下载链接:[url=//download.csdn.net/download/javazly/5706129?utm_source=bbsseo]//download.csdn.net/download/javazly/5706129?utm_source=bbsseo[/url]
DFL210配置示例下载
DFL210配置示例 DFL系列防火墙配置 相关下载链接:[url=//download.csdn.net/download/haoy3285/6930439?utm_source=bbsseo]//download.csdn.net/download/haoy3285/6930439?utm_source=bbsseo[/url]
相关热词 c# 去空格去转义符 c#用户登录窗体代码 c# 流 c# linux 可视化 c# mvc 返回图片 c# 像素空间 c# 日期 最后一天 c#字典序排序 c# 截屏取色 c#中的哪些属于托管机制
我们是很有底线的