移植vsftpd至OK335XS开发板遇到问题请技术支持和大牛们帮忙指导 [问题点数:20分]

Bbs1
本版专家分:0
结帖率 33.33%
安装net-snmp时遇到问题了,大牛指导
我是用./configure make make install安装好的rn但是执行写的例子时,报如下错误:rnerror while loading shared libraries: libnetsnmp.so.9: cannot open shared object file: No such file or directoryrn我在系统里面搜索了下,确实没有libnetsnmp.so.9这个文件,有人建议说不用rpm格式的安装rn能提供其他方法安装吗?并且给我个链接,谢谢了
大牛指导
小弟自己做得打飞机游戏,求<em>大牛</em><em>指导</em>[img=https://img-bbs.csdn.net/upload/201705/18/1495099803_702589.png][/img][img=https://img-bbs.csdn.net/upload/201705/18/1495099816_849982.png][/img]
CSDN的大牛帮忙
用ASP+AJAX写的搜索提示框(类似于GOOGLE),但是不能进行键盘操作,即:rn下拉列表只能用鼠标选择,我想实现键盘上下键选择列表,回车之后自动选择rn还<em>请</em>CSDN的<em>大牛</em>们帮<em>帮忙</em>!rn我的AJAX中用到了rnrow =document.createElement("tr");rncell =document.createElement("td");rn即在DIV中欠套了HTMLrn谢了!~
移植无线网卡驱动至开发板(PXA16x)
将无线网卡插入任何可以识别USB的机器,此处将360随身WIFI插入虚拟机中。通过以下命令查看VID和PID号。可得出使用的是联发科的MT7601U芯片。rd@rd-virtual-machine:~/sda3/4310$ lsusb Bus 001 Device 002: ID 148f:760b Ralink Technology, Corp. MT7601U Wireless Adapter
诚心大牛指导啊!!!
小弟要做嵌入式开发,目标是一个类似网络摄像机的系统,但是不知道怎么实现:远程客户端在浏览器中输入相应URL就能对摄像头所在环境进行实时视频监控。主要是不知道客户端这边是怎么实现打开浏览器,输入URL就打开一个视频监控界面进行实时监控,要用哪些技术?大致步骤是什么?恳<em>请</em><em>大牛</em>们赐教啊!!小弟在这方面是小白一个。
初学dll webbrowser 遇到问题大牛帮忙
library testdll;rnusesrn SysUtils,rn Classes,rn Unit1 in 'Unit1.pas' Form2;rn$R *.resrnbeginrn Form2 := TForm2.Create(Nil);rn tryrn Form2.ShowModal;rn finallyrn Form2.Free;rn end;rnend.rn——————————————————————————————————————rnunit Unit1;rninterfacernusesrn Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,rn Dialogs, OleCtrls, SHDocVw,activex;rntypern TForm2 = class(TForm)rn WebBrowser1: TWebBrowser;rn procedure FormCreate(Sender: TObject);rn privatern Private declarations rn publicrn Public declarations rn end;rnrnvarrn Form2: TForm2;rnrnimplementationrnrn$R *.dfmrnprocedure TForm2.FormCreate(Sender: TObject);rnbeginrn webbrowser1.Navigate('http://www.baidu.com');rn //以上一句出错rnend;rnrnInitializationrnCoInitialize(Nil);rnFinalizationrnCoUnInitialize;rnend.rnrn————————————————————rn<em>问题</em>1rn在exe中一个button下调用!rnloadlibrary('testdll.dll');rn这句就出错 webbrowser1.Navigate('http://www.baidu.com');rn<em>问题</em>2rn如何判断webbrowser中的网页下载完毕?(带frame的网页)rn我想做成,rnwebbrowser1.Navigate('http://www.1.com');//完毕后rnwebbrowser1.Navigate('http://www.2.com');//这2个网页都是带多个frame的rnrn<em>请</em><em>大牛</em>指教下!十分感谢!
大牛帮忙指导指导!!!!
[b]小弟最近学的java ,jsp,以后想从事web开发,但是范围太广,希望各位大侠能<em>帮忙</em>指点下,哪个方向比较好,以及像这个方向发展要学哪些知识???rn小弟已经学完了html,java ,jsp的基础知识,最近在学oracle数据库!!!![/b][size=11px][/size]
求解 !!!!!大牛们!!!!!!!! linux中的vsftpd 的虚拟用户
 这是contos7 中的<em>vsftpd</em>中的虚拟用户  求解!!!!!!!
移植vsftpd
下载<em>vsftpd</em>源码 http://www.rpmfind.net/linux/rpm2html/search.php?query=<em>vsftpd</em> 或者 http://<em>vsftpd</em>.beasts.org/ 解压后,修改Makefile CC = gcc 改为 CC = /usr/local/arm/arm-linux-gnueabihf/bin/arm-linux-gnueabihf...
live555的问题大牛帮忙
live555是软件吗,在哪有下载的,还有要一份live555代码用来学习
关于socket,大牛帮忙看一下。。。。
[code=java]package com.inscom.server.model;rnimport java.io.*;rnimport java.net.*;rnimport com.inscom.common.*;rnimport com.inscom.server.db.*;rnimport java.sql.*;rnimport java.util.*;rnpublic class ChatThread extends Threadrn Socket s;rn public ChatThread(Socket s)rn rn this.s=s;rn rn public void run()rnrn ObjectInputStream ois=null;rn ObjectOutputStream oos=null;rn try rn while(true)rn //读取客户端发来的信息rn ois=new ObjectInputStream(s.getInputStream());rn Message m=(Message)ois.readObject();rn if(m.getMessageType()==MessageType.comm_message)rn //System.out.println(m.getSenderId()+" 发送给 "+m.getGetterId()+" 内容为: "+m.getInfo());rn rn //完成转发rn oos=new ObjectOutputStream(ManageChatThread.getChatThread(m.getGetterId()).s.getOutputStream());rn oos.writeObject(m);rn else if(m.getMessageType()==MessageType.search_friends)rn //到数据库中查找用户rn if(m.getSearchFriendsMethod()==MessageType.search_friends_ic)rn DBHelper helper=new DBHelper();rn ResultSet rs=helper.Query("select * from UserInfo where id='"+m.getGetterId()+"'");rn Vector vRows=null;rn while(rs.next())rn //System.out.println(rs.getString("id")+" "+rs.getString("name")+" "+rs.getString("sex")+" "+rs.getString("birthdate"));rn vRows=new Vector();rn Vector v=new Vector();rn v.add(rs.getString("id"));rn v.add(rs.getString("name"));rn v.add(rs.getString("sex"));rn v.add(rs.getString("birthdate"));rn vRows.add(v);rn //System.out.println(v);rn rn m.setOb(vRows);rn oos=new ObjectOutputStream(s.getOutputStream());rn oos.writeObject(m);rn rn rn rn catch(EOFException e2)rn try rn if(s!=null)rn s.close();rn rn catch (Exception e3) rn // TODO: handle exceptionrn e3.printStackTrace();rn rn catch (Exception e) rn // TODO: handle exceptionrn System.out.println("异常");rn e.printStackTrace();rn rn rnrn rnrnrn[/code]rnrn这是异常信息:rn[code=java]rn服务启动,在8897端口监听....rnjava.net.SocketException: Software caused connection abort: socket write errorrn at java.net.SocketOutputStream.socketWrite0(Native Method)rn at java.net.SocketOutputStream.socketWrite(Unknown Source)rn at java.net.SocketOutputStream.write(Unknown Source)rn at java.io.ObjectOutputStream$BlockDataOutputStream.drain(Unknown Source)rn at java.io.ObjectOutputStream$BlockDataOutputStream.setBlockDataMode(Unknown Source)rn at java.io.ObjectOutputStream.writeNonProxyDesc(Unknown Source)rn at java.io.ObjectOutputStream.writeClassDesc(Unknown Source)rn at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)rn at java.io.ObjectOutputStream.writeObject0(Unknown Source)rn at java.io.ObjectOutputStream.writeFatalException(Unknown Source)rn at java.io.ObjectOutputStream.writeObject(Unknown Source)rn at com.inscom.server.model.ChatThread.run(ChatThread.java:48)[/code]rnrnrn错误出在:oos.wirteObject(m); 这一句。搞不懂!
大牛帮忙解释一下这段代码
这个是从微软的CRT中找到得strlen的代码片段,谁<em>大牛</em>们<em>帮忙</em>解释一下这段代码,谢谢rn[code=Assembly]rn ; 上面保证ecx 是4字节对齐,ecx中存放的是字符串指针rn mov eax,dword ptr [ecx] ; read 4 bytesrn mov edx,7efefeffhrn add edx,eaxrn xor eax,-1rn xor eax,edxrn add ecx,4rn test eax,81010100hrn je short main_looprnrn ;执行到这里就证明4个字节中包含0的字节,为什么??rn[/code]rnrn这段代码实在是看不明白,但是编译器这么实现了应该是因为其效率高吧,求解rn
MSsql分组查询,大牛帮忙看下
[img=https://img-bbs.csdn.net/upload/201709/28/1506590091_340737.png][/img]rn上方为表结构,rnData_biao与Data_log关联字段为DJ_NumberrnCLLB_Dict与CL_Dict关联字段为LB_CodernCL_Dict与Data_Log关联字段为CL_Codernrn现在想以CLLB_Dict表里的字段LB_Code进行分组查询,查询该字段下的所属CL_Code在Data_log表里JH_Monty值的累计和在Data_biao里存在的单据张数(分为入库和出库两种),在CL_Dict表里QCJe的累计,rn[code=sql]SELECTrn a.lb_code,rn SUM (b.qcje) AS 期初金额,rn SUM (rn CASErn WHEN lb = '入库' THENrn 1rn ELSErn 0rn ENDrn ) AS 入库单据张数,rn SUM (rn CASErn WHEN lb = '入库' THENrn c.jh_moneyrn ELSErn 0rn ENDrn ) AS 入库金额,rn SUM (rn CASErn WHEN lb = '出库' THENrn 1rn ELSErn 0rn ENDrn ) AS 出库单据张数,rn SUM (rn CASErn WHEN lb = '出库' THENrn c.jh_moneyrn ELSErn 0rn ENDrn ) AS 出库金额rnFROMrn cllb_dict arnleft JOIN cl_dict b ON a.lb_code = b.lb_codernLEFT JOIN data_log c ON c.cl_code = b.cl_codernLEFT JOIN data_biao d ON d.dj_number = c.dj_numberrnand (rn (lb = '入库' OR lb = '出库')rn AND dj_date BETWEEN '2017-9-01 00:00:00'rn AND '2017-9-30 23:59:59'rn)rnGROUP BYrn a.lb_codernORDER BYrn a.lb_code[/code]rn用上方语句,返回[img=https://img-bbs.csdn.net/upload/201709/28/1506590185_215825.png][/img]rn返回的期初金额和出入库的单据张数都是错的,总是重复计算了,搞了快一天了,来个<em>大牛</em>指点一下吧,现在只知道是因为Data_log表里CL_code字段值重复的<em>问题</em>,但不知道该如何搞!
大牛们指教
如何写一个 Sharepoint webpart 的GridView 阿,能分页并且能够有模板列,删除、编辑按钮
大牛们帮帮忙
mapx,delphirn一个图层上有4000个点,现在要根据7,8个属性过滤点,由于效率<em>问题</em>,一直没想明白该怎么解决,<em>请</em><em>大牛</em>们指点。rn比如说数据库中有个点的名称叫:point1rn属性有rn 编号rn 名称rn 级别rn 类型rn 位置rn等等rn现在在图层上创建点时只添加编号和名称。(添加多了效率似乎垂直降低)rn现在比如想根据级别过滤图层上的点,不知道有什么好方法rnrn只要能根据数据库中的点,然后实现结果,中间过程只要效率快,其它无所谓。rn只是不能直接在画布上画点实现。rn
移植ubuntu14.04根文件系统至beaglebone开发板探索
<em>移植</em>ubuntu14.04根文件系统至BeagleBone<em>开发板</em>探索<em>移植</em>背景我是一个linux小白,然而由于项目需要,一个师兄为机器人的控制定制了一个<em>开发板</em>,基于beaglebone。由于此<em>开发板</em>是为实现机器人控制所需功能而特殊定制的,所以其内核已经确定并预先装好,现在需要将ubuntu14.04根文件系统<em>移植</em>进去,然后在该系统中安装ROS工具包。可能是因为ubuntu对于ROS工具包的支持性能比较
CanFestival移植至战舰STM32F1开发板
使用STM32CubeMX新建一个工程,仅需对CAN、RCC、SYS做若干简单的配置即可,CAN波特率配置为500k,点击Project -&amp;amp;amp;amp;amp;amp;gt; Generate Code生成Keil工程与代码; 在CanFestival官网下载最新版的源代码,在工程目录下新建CanFestival文件夹,将相应的文件拷入其中,其中ObjDict.c,ObjDict.h在博文使用Objdictedit生成C...
net-snmp移植开发板后snmpd无法启动
pc+redhat9 rn目标板:hi3515rn交叉编译参数:rn./configure --prefix=/home/cyy/snmp --build=i686-linux --host=arm-hismall-linux CC=arm-hismall-linux-gcc --disable-ipv6 --with-endianness=little --disable-manuals --disable-ucd-snmp-compatibility --enable-as-needed rn--disable-embedded-perl --without-perl-modules --disable-snmptrapd-subagent --disable-applications --disable-scripts LDFLAGS="-static"rnrn然后make make install。rnsnmpd.conf内容:rwcommunity publicrnrnrn<em>问题</em>:将生成的snmpd文件 移到<em>开发板</em>上时,进入所在目录执行:snmpd -c /etc/snmpd.conf 没反应,也无法在执行其他命令,这是怎么回事?是不是我编译的时候 参数不对?搞了好久头疼
Qt4.6.3成功移植至s3c2440开发板
这是经过差不多3天的时间在<em>开发板</em>上成功<em>移植</em>Qt4.6.3库,并能使用触摸屏的功能软件准备1.用于Linux/X11 32位的Qt Creator 1.3.1 二进制软件包qt-creator-linux-x86-opensource-1.3.1.bin2.用于嵌入式 Linux 的 Qt 库 4.6.2包qt-everywhere-opensource-src-4.6..3.tar.gz3.用于触摸屏校正的tslib1.44.用于编译的arm-linux-gcc-3.4.1.tar.bz2
vsftpd安装遇到问题及解决办法
1.设置被动模式 pasv_min_port=10050 (设置被动模式的端口范围) pasv_max_port=10060(设置被动模式的端口范围) 2.无法连接: 防火墙设置 -A INPUT  -m state --state NEW -m tcp -p tcp --dport 21 -j ACCEPT -A INPUT  -m state --state NEW
vsftpd安装遇到问题
1. ftp: connect: No route to host     FTP症状:能连接上,ls 和 dir 显示目录的时候,提示 " ftp: connect: No route to host " FTP命令行连接设置主动和被动模式 windows的ftp命令默认是使用的主动方式连接FTP serer。 linux默认是PASV模式,并通过 passive on
2440开发板LCD驱动程序,教下大牛们!!
最近学习s3c2440的LCD驱动程序:rn说下<em>问题</em>:rninsmod cfbfillrect.ko rninsmod cfbimgblt.ko rninsmod cfbcopyarea.ko rninsmod gq2440_lcd.ko rninsmod gq_ts_drv.kornrnecho nihao > /dev/tty1 LCD屏幕上能显示nihao的字样。rn测试过的,触摸平驱动程序正常rn编译安装tslib1.4:rn修改 /etc/ts.conf第1行(去掉#号和第一个空格):rn# module_raw inputrn改为:rnmodule_raw inputrnrnexport TSLIB_TSDEVICE=/dev/event0rnexport TSLIB_CALIBFILE=/etc/pointercalrnexport TSLIB_CONFFILE=/etc/ts.confrnexport TSLIB_PLUGINDIR=/lib/tsrnexport TSLIB_CONSOLEDEVICE=nonernexport TSLIB_FBDEVICE=/dev/fb0rn测试tslib: 运行 ts_calibrate,屏幕上黑屏,没有十字架图标,点击屏幕终端有输出rn运行 ts_test 屏幕黑屏没有反应,终端:rn# ts_test rn*** glibc detected *** free(): invalid next size (fast): 0x00014060 ***rnAbortedrn弄了很久,都搞不出来,特来<em>请</em>教!rn开发环境是:red hat 5 +arm-linux-gcc-3.4.5+gq2440(国嵌的这个垃圾板子)<em>开发板</em> LCD(LTV350QV_F04) LINUX2.6.22内核rnrn代码如下:rn[code=c]rn#include rn#include rn#include rn#include rn#include rn#include rn#include rn#include rn#include rn#include rn#include rn#include rn#include rn#include rn#include rnrn#include rn#include rn#include rnrn#include rn#include rn#include rn#include rnrnstruct lcd_regs rn unsigned long lcdcon1;rn unsigned long lcdcon2;rn unsigned long lcdcon3;rn unsigned long lcdcon4;rn unsigned long lcdcon5;rn unsigned long lcdsaddr1;rn unsigned long lcdsaddr2;rn unsigned long lcdsaddr3;rn unsigned long redlut;rn unsigned long greenlut;rn unsigned long bluelut;rn unsigned long resaved[9];rn unsigned long dithmode;rn unsigned long tpal;rn unsigned long lcdintpnd;rn unsigned long lcdsrcpnd;rn unsigned long lcdintmsk;rn unsigned long tconsel;rn;rnrnu32 pseudo_pal[16];rnstatic volatile struct lcd_regs *s3c_lcd_regs;rnstatic struct fb_info *s3c_lcd;rnrnstatic inline unsigned int chan_to_field(unsigned int chan, struct fb_bitfield *bf)rnrn chan &= 0xffff;rn chan >>= 16 - bf->length;rn return chan << bf->offset;rnrnstatic int gq_s3c_lcdfb_setcolreg(unsigned int regno, unsigned int red,rn unsigned int green, unsigned int blue,rn unsigned int transp, struct fb_info *info)rnrn unsigned int val;rn //u32 *pal;rn if(regno >16)rn return 1;rn //pal = info->pseudo_palette;rnrn val = chan_to_field(red, &info->var.red);rn val |= chan_to_field(green, &info->var.green);rn val |= chan_to_field(blue, &info->var.blue);rnrn pseudo_pal[regno] = val;rn return 0;rnrnstatic struct fb_ops s3c_fbops = rn .owner = THIS_MODULE,rn// .fb_setcolreg = atmel_lcdfb_setcolreg,rn .fb_setcolreg = gq_s3c_lcdfb_setcolreg,rn .fb_fillrect = cfb_fillrect,rn .fb_copyarea = cfb_copyarea,rn .fb_imageblit = cfb_imageblit,rn;rnrnstatic volatile unsigned long *gpccon;rnstatic volatile unsigned long *gpcdat;rnstatic volatile unsigned long *gpdcon;rnstatic volatile unsigned long *gpddat;rnstatic volatile unsigned long *gpgcon;rnstatic volatile unsigned long *gpgdat;rnrnstatic int gq_lcd_drv_init(void)rnrn /* 1 分配一个fb_info结构体*/rn s3c_lcd = framebuffer_alloc(0,NULL);rn /* 2 设置fb_info结构体 */rn /* 2.1 设置固定的参数*/rn strcpy(s3c_lcd->fix.id,"sust_lcd");rn s3c_lcd->fix.smem_len = 240*320*32/8;rn s3c_lcd->fix.type = FB_TYPE_PACKED_PIXELS;rn s3c_lcd->fix.visual = FB_VISUAL_TRUECOLOR;rn s3c_lcd->fix.line_length = 320*4;rn rn /* 2.2 设置可变的参数*/rn s3c_lcd->var.xres = 320;rn s3c_lcd->var.yres = 240;rn s3c_lcd->var.xres_virtual = 320;rn s3c_lcd->var.xres_virtual = 240;rn s3c_lcd->var.bits_per_pixel = 32;rn /*RGB:565*/rn s3c_lcd->var.red.length = 8; rn s3c_lcd->var.red.offset = 16;rn s3c_lcd->var.green.length = 8; rn s3c_lcd->var.green.offset = 8;rn s3c_lcd->var.blue.length = 8; rn s3c_lcd->var.blue.offset = 0;rn s3c_lcd->var.activate = FB_ACTIVATE_NOW;rnrn /* 2.3 设置fb_ops*/rn s3c_lcd->fbops = &s3c_fbops;rn /* 2.4 设置其它 */rn s3c_lcd->pseudo_palette = pseudo_pal;rn rn s3c_lcd->screen_size = 240*320*4;/*显存的大小*/rn /* 3 硬件相关的设置*/rn /* 3.1 配置引脚用于LCD*/rn gpgcon = ioremap(0x56000060,4);rn *gpgcon |= (3<>1) & ~(3fix.smem_start + s3c_lcd->fix.smem_len)>>1) & 0x1fffff;rn s3c_lcd_regs->lcdsaddr3 = 320*2;/*一行的长度:单位2字节*/rn s3c_lcd_regs->lcdcon1 |= (1screen_base,rn &(s3c_lcd->fix.smem_start));rn iounmap(s3c_lcd_regs);rn iounmap(gpccon);rn iounmap(gpdcon);rn iounmap(gpgcon);rn framebuffer_release(s3c_lcd);rnrnrnmodule_init(gq_lcd_drv_init);rnmodule_exit(gq_lcd_drv_exit);rnMODULE_LICENSE("GPL");rn[/code]
遇到问题大侠前来指导
关于多线程的,小弟刚开始接触,试着写的,但不执行,还<em>请</em>高手多多指点rnrn以下为程序要求:rn1、读取internet 临时文件夹目录下的所有文件(或者找一个目录下文件数超过2000),将这些文件都复制一份到另外一个目录下rn2、将读取的文件路径存放到队列中保存rn3、建多线程同时从队列中取文件路径,将这些文件复制到指定的目录下,文件不能有重复(使用复制文件的api函数时设置如果文件已经存在则返回失败),记录文件复制失败的数目及文件路径rnrnrn这是我写的程序:rn建的工程名为MFCrnrn[code=C/C++]rnclass CMFCDlg : public CDialogrnrn// Constructionrnpublic:rn CMFCDlg(CWnd* pParent = NULL); // standard constructorrn// static DWORD WINAPI ThreadB1(LPVOID lpParam); rn static DWORD WINAPI ThreadManager(LPVOID lpParameter);rn static DWORD WINAPI ThreadFileCopy(LPVOID lpParameter);rn CStringArray FileName;rn int i,j,k;rn...rnrnrnBOOL CMFCDlg::OnInitDialog()rnrn CDialog::OnInitDialog();rnrn // Add "About..." menu item to system menu.rnrn // IDM_ABOUTBOX must be in the system command range.rn ASSERT((IDM_ABOUTBOX & 0xFFF0) == IDM_ABOUTBOX);rn ASSERT(IDM_ABOUTBOX < 0xF000);rnrn CMenu* pSysMenu = GetSystemMenu(FALSE);rn if (pSysMenu != NULL)rn rn CString strAboutMenu;rn strAboutMenu.LoadString(IDS_ABOUTBOX);rn if (!strAboutMenu.IsEmpty())rn rn pSysMenu->AppendMenu(MF_SEPARATOR);rn pSysMenu->AppendMenu(MF_STRING, IDM_ABOUTBOX, strAboutMenu);rn rn rnrn // Set the icon for this dialog. The framework does this automaticallyrn // when the application's main window is not a dialogrn SetIcon(m_hIcon, TRUE); // Set big iconrn SetIcon(m_hIcon, FALSE); // Set small iconrn rn // TODO: Add extra initialization herernrn i=0;rn j=0;rn k=0;rn rn DWORD dwThreadID = 0;rn HANDLE hThread = CreateThread(NULL, 0, ThreadManager, (LPVOID*)this, 0, &dwThreadID);rn rn return TRUE; // return TRUE unless you set the focus to a controlrnrnrnrn//将要复制的文件名保存在FileName中,并建立对应的文件拷贝线程rnDWORD WINAPI CMFCDlg::ThreadManager(LPVOID lpParameter) [code=C/C++][/code]rnrn if (lpParameter == NULL)rn rn return 0;rn rn CMFCDlg* pDlg = (CMFCDlg*)lpParameter;rn CString Source_Path = "C:\\Users\\admin\\AppData\\Local\\Chromium\\User Data\\Default\\Cache\\*.*";rn CFileFind finder;rn BOOL bWorking = finder.FindFile(Source_Path);rn while(bWorking)rn rn bWorking = finder.FindNextFile();rn pDlg->FileName.Add(finder.GetFilePath());rn rn bWorking = finder.FindFile(Source_Path);rn rn pDlg->i = pDlg->FileName.GetSize();rn for ((pDlg->j)=0;(pDlg->j)i);(pDlg->j)++)rn rn DWORD dwThreadID = 0; //保存线程的IDrn Sleep(1000);rn HANDLE hThread = CreateThread( //创建线程。rn NULL, //安全属性使用缺省。rn 0, //线程的堆栈大小。rn ThreadFileCopy, //线程运行函数地址。rn pDlg, //传给线程函数的参数。rn 0, //创建标志。rn &dwThreadID); //成功创建后的线程标识码。 rn// WaitForSingleObject (hThread,INFINITE); //等待线程结束。 rn CloseHandle (hThread); //删除的线程资源。rn rn return 0;rnrnrnrnDWORD WINAPI CMFCDlg::ThreadFileCopy(LPVOID lpParameter) //拷贝文件函数rnrn if (lpParameter == NULL)rn rn return 0;rn rn CMFCDlg* pDlg = (CMFCDlg*)lpParameter;rn CString Des_Path = "D:\\MultiThreadTest";rn //CFileFind finder;rn //finder.FindFile(FileName[lpParameter]);rn CopyFile(pDlg->FileName.GetAt(pDlg->j),Des_Path,true);rn return 0;rn[/code]
第一次编程!遇到问题指导
我刚刚看了C语言第一章,课后习题!是这样的:rn输入a,b,c三个数,得出三个数中最大的一个。rnrn我是这样解答的:rnmain()rnint a,b,c,max;rnscanf("%d,%d,%d",&a,&b,&c);rnmax=arnif (max
大牛指导程序思路
在linux下,利用c写一个获取一台路由器基本参数信息的程序。具体参数可以不讲究,版本号什么的都行。这中间可能是要用到snmp吧?rn本人现在对此还一头雾水,所以想<em>请</em><em>大牛</em><em>指导</em>下思路.....rn谢谢了阿!!!
hibernate大牛帮忙看看
selectrn count(commcdd0_.ID) as col_0_0_ rn fromrn USER_TRADEMARK.commcd_d commcdd0_ rn wherern 1=1rnrn这是myeclipse控制台打印出的sql语句,我想知道from后面的USER_TRADEMARK是什么意思?rn还有,为什么我在数据库中建了这个表,但执行上面的sql语句说是表不存在?rn把USER_TRADEMARK去掉就可以了。rn这是什么<em>问题</em>啊?我应该怎么配一下?跟数据库登陆人的权限有关系吗?
谢谢大牛们,帮忙看看!!
如何根据dropdownlistbox选择的值的变化,例如选择值A 在datawindow中显示出列B中全为A的行.
大牛帮忙看看~~~ 谢谢
小弟想用 snumber 将相关的两个表的内容返回到结果集,并显示在JTable的对应列,找不到<em>问题</em>。。。rn多谢<em>大牛</em>们~~~rnif (e.getSource() == jbTwo) rnrn // jt.removeAll();rnrn for (int i = 0; i < jt.getRowCount(); i++) rnrn String t_Num = jt.getValueAt(i, 0).toString();rn int t_Math = Integer.parseInt(jt.getValueAt(i, 10).toString());rn int t_Politic = Integer.parseInt(jt.getValueAt(i, 11)rn .toString());rn int t_English = Integer.parseInt(jt.getValueAt(i, 12)rn .toString());rn int t_FMajor = Integerrn .parseInt(jt.getValueAt(i, 13).toString());rn int total = t_Math + t_Politic + t_English + t_FMajor;rn // System.out.println(total);rn if (total > 250) rn sql = "select student.snumber,sname,ssex,sage,spolity,sthisyear,sedubackgroud,sroot,mname,scategory,maths,english,politics,f_major from student,firsttest where student.snumber =firsttest.snumber and student.snumber='0001'";rnrn try rn oo.ps = oo.con.prepareStatement(sql);rn oo.ps.setString(1, t_Num);rn oo.rs = oo.ps.executeQuery();rn // oo.stmt = oo.con.createStatement();rn // oo.rs = oo.stmt.executeQuery(sql);rn while (oo.rs.next()) rn // String t_Number =rn // oo.rs.getString("student.snumber");rn String t_Name = oo.rs.getString("Sname");rn String t_Sex = oo.rs.getString("Ssex");rn String t_Age = oo.rs.getString("Sage");rn String t_Polity = oo.rs.getString("Spolity");rn String t_Thisyear = oo.rs.getString("Sthisyear");rn String t_EduBackgroud = oo.rsrn .getString("Sedubackgroud");rn String t_Root = oo.rs.getString("Sroot");rn String t_Major = oo.rs.getString("Mname");rn String t_Category = oo.rs.getString("Scategory");rn String t_maths = oo.rs.getString("maths");rn String t_english = oo.rs.getString("english");rn String t_politics = oo.rs.getString("politics");rn String t_major = oo.rs.getString("f_major");rn // System.out.println(t_Num + " " + t_Name + " "rn // + t_Sex + " " + t_Age + " " + t_Polityrn // + " " + t_Thisyear + " " + t_EduBackgroudrn // + " " + t_Root + " " + t_Major + " "rn // + t_Category + " " + t_maths + " "rn // + t_english + " " + t_politics + " "rn // + t_major);rnrn String[] Info = t_Num, t_Name, t_Sex, t_Age,rn t_Polity, t_Thisyear, t_EduBackgroud,rn t_Root, t_Major, t_Category, t_maths,rn t_english, t_politics, t_major ;rn model.addRow(Info);rn jt.setModel(model);rn rn catch (SQLException e1) rn // TODO Auto-generated catch blockrn e1.printStackTrace();rn rn rn rn rnrnrn错误如下:rnException in thread "AWT-EventQueue-0" java.lang.NullPointerExceptionrn at sun.jdbc.odbc.JdbcOdbcPreparedStatement.clearParameter(JdbcOdbcPreparedStatement.java:1023)rn at sun.jdbc.odbc.JdbcOdbcPreparedStatement.setChar(JdbcOdbcPreparedStatement.java:3057)rn at sun.jdbc.odbc.JdbcOdbcPreparedStatement.setString(JdbcOdbcPreparedStatement.java:766)rn at com.AdministratorSystem.actionPerformed(AdministratorSystem.java:144)rn at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)rn at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)rn at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)rn at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)rn at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)rn at java.awt.Component.processMouseEvent(Component.java:6038)rn at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)rn at java.awt.Component.processEvent(Component.java:5803)rn at java.awt.Container.processEvent(Container.java:2058)rn at java.awt.Component.dispatchEventImpl(Component.java:4410)rn at java.awt.Container.dispatchEventImpl(Container.java:2116)rn at java.awt.Component.dispatchEvent(Component.java:4240)rn at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)rn at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)rn at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)rn at java.awt.Container.dispatchEventImpl(Container.java:2102)rn at java.awt.Window.dispatchEventImpl(Window.java:2429)rn at java.awt.Component.dispatchEvent(Component.java:4240)rn at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)rn at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)rn at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)rn at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)rn at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)rn at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)rn at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)rn
大牛帮忙呀!!!!膜拜!!!!
Problem 1500 Monetary System rnAccept: 307 Submit: 956rnTime Limit: 1000 mSec Memory Limit : 32768 KBrn Problem DescriptionrnIn Byteland they have a very strange monetary system.rnrnEach Bytelandian gold coin has an integer number written on it. A coin n can be exchanged in a bank into three coins: n/2, n/3 and n/4. But these numbers are all rounded down (the banks have to make a profit).rnrnYou can also sell Bytelandian coins for American dollars. The exchange rate is 1:1. But you can not buy Bytelandian coins.rnrnYou have one gold coin. What is the maximum amount of American dollars you can get for it?rn InputrnThe input will contain several test cases (not more than 10). Each testcase is a single line with a number n, 0 n)rn return f(n/2)+f(n/3)+f(n/4);rn else rn return n;rn rn
百思不得其解,大牛帮忙看看
and ds:[bx+si],11011111brn为什么这条代码不能通过,求<em>大牛</em>们给看看,不能编译通过的原因是什么?
高手们,指导
最近用了一些开源项目的类库,想到一个<em>问题</em>:rnrn如何为类库建立自己的exception体系。。。为什么要建立自己的类库异常体系!!!!!rnrn因为所有自己的exception 都是继承自标准类。。一般这么做:rnrn起一个类库相关的exception 类名,如:MyWebExceptionrn然后,就一句:super(msg,ex);rnrn何必呢。。。<em>请</em>高手们谈谈高见!!!!谢谢啦。。。~~~
遇到问题了,高手帮忙~~
三个对话框:1,主程序对话框MasterDlg,2,点击主对话框上的按键“XX”弹出一个模式对话框TestDlg,3,点击TestDlg上的按键“YY”,在TestDlg下方弹出非模式对话框CModallessDlg,上面有一个Edit控件IDC_EDIT1.rnrn主程序类中定义一个成员变量m_Dlg,在主程序对话框类CMasterDlg的构造函数中m_Dlg = new CModallessDlg((CWnd*)this);并在析构函数中deleternrn在CTestDlg的On<em>OK</em>函数中实现添加内容到非模式对话框的edit控件中rnCString mes;//全局变量rnvoid CTestDlg::On<em>OK</em>() rnrn CMasterDlg *pParWnd = (CMasterDlg *)GetParent();rn CEdit *pEditCtrl = (CEdit *)pParWnd->m_Dlg->GetDlgItem(IDC_EDIT1);rn pEditCtrl->GetWindowText(mes);rn mes += "XXXX:";rn pEditCtrl->SetWindowText(mes);rnrn CDialog::On<em>OK</em>();rnrnrn现在的<em>问题</em>程序可以运行,但是点击TestDlg上的<em>OK</em>键就会发生内存错误,程序关闭。如果先点击“YY”键弹出非模式对话框后再点击<em>OK</em>就好用了rn经查发现是CEdit *pEditCtrl = (CEdit *)pParWnd->m_Dlg->GetDlgItem(IDC_EDIT1);这句造成的,<em>请</em>问高手怎么回事呢?怎么修改才能实现功能呢?rn
遇到问题了,帮忙看看.
<em>请</em>帮我看看是哪里出了<em>问题</em>呢?rnset conn=server.createobject("adodb.connection")rnconn.open "driver=SQL server;server=DARK;uid=d000;pwd=1357;database=xscj;"rnset rec=server.createobject("adodb.recordset") rnrec.open "zt",conn,3,3rnrec.addnewrnrec("title")=request.form("tetle")rnrec("mem")=request.form("mem")rnrec.updaternend if
大牛帮忙看下
我使用jdbc连接数据库,产生rn MESSAGE:Io exception: [color=#FF0000]There is no process to read data written to a pipe.[/color]rnjava.sql.SQLException: Io exception: There is no process to read data written to a pipe.rn at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java(Compiled Code))rn at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java(Inlined Compiled Code))rn at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java(Compiled Code))rn at oracle.jdbc.driver.OracleStatement.(OracleStatement.java(Compiled Code))rn at oracle.jdbc.driver.OracleStatement.(OracleStatement.java(Inlined Compiled Code))rn at oracle.jdbc.driver.OracleConnection.privateCreateStatement(OracleConnection.java(Inlined Compiled Crnode))rn at oracle.jdbc.driver.OracleConnection.createStatement(OracleConnection.java(Compiled Code))rn at org.apache.commons.dbcp.DelegatingConnection.createStatement(DelegatingConnection.java(Compiled Codrne))rn at org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.createStatement(PoolingDataSournrce.java(Compiled Code))rnrn<em>请</em>问什么原因啊
大牛帮忙
今天去面试一个软件外包的C++题目,结果被鄙视了:<em>请</em>各位<em>帮忙</em>解答下。rnrnA:<em>请</em>问运行Test 函数会有什么样的结果?rnvoid GetMemory(char *p)rnrn p = (char *)malloc(100);rnrnvoid Test(void)rnrn char *str = NULL;rn GetMemory(str);rn strcpy(str, "hello world");rn printf(str);rnrn-----------------------------------------rnrnrnrnB:已知strcpy 函数的原型是rnchar *strcpy(char *strDest, const char *strSrc);rn其中strDest 是目的字符串,strSrc 是源字符串。rn不调用C++/C 的字符串库函数,<em>请</em>编写函数 strcpyrnrnrnrnrn----------------------------------------rnC:交换两个int数,不用第三块儿内存:
关于开发板各位指导
我现在想买个<em>开发板</em>,不知道选购2440的还是6410的, 我是初学者,<em>请</em>各位高手给我分析下,并且做个比较,和未来方向<em>指导</em>,让我做个参考,谢谢各位了~~~
jsp中遇到问题!各位大牛帮忙
org.apache.jasper.JasperException: Unable to compile class for JSPrnrnAn error occurred at line: 5 in the jsp file: /inbox.jsprnGenerated servlet error:rnReceiveMail cannot be resolved or is not a typernrnAn error occurred at line: 5 in the jsp file: /inbox.jsprnGenerated servlet error:rnReceiveMail cannot be resolved or is not a typernrnrn org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)rn org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)rn org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:397)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)rn org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:810)rn org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)rn
eclipse无法编辑xml,大牛指导
今天学习struts2框架,在struts的核心jar包下的struts-default.xml文件无法编辑,但是我可以编辑其他的xml文件,<em>请</em>问有人<em>遇到</em>跟我一样的<em>问题</em>吗?<em>请</em><em>大牛</em>们<em>指导</em>一下,刚入门,很受打击呀~~
VSFTPD的umask问题!帮忙.
大家好,我现在有一下一个<em>问题</em>. rnrn我在一台装RH9的机器上安装了<em>vsftpd</em>,允许没有登陆权限的用户以及匿名用户登陆,rn在<em>vsftpd</em>.conf中, 我允许匿名用户上传文件,并且设置了 umask=022, 理论上说,如果匿名用户以及系统用户上传文件的话,文件的权限就应给自动成为755, 但是,现在我尝试上传一个文件(用匿名用户以及系统用户),文件的权限却是622(-rw--r--r-),好像我在ftpd里面设置的umask并没有作用,百思不得其解,希望大家能<em>帮忙</em>看看.rn我的uploads目录的所有人ftp,使用组也是ftp. rnrn谢谢啦
初步学习Ajax,出现了一个错误,大牛指导
写了一个Ajax例子,运行时出现:rnComponent returned failure code:(NS_ERROR_FAILURE)rn网上查了一下,有人说是open方法要提前执行,也无法解决。rn错误定位在 myXmlHttpRquest.send(data)这一行...有人知道如何解决吗?rn初学就调不通例子很挫败啊!!
大牛帮忙下,谢谢
 用C或C++设计下rn 在交通网络非常发达,交通工具和交通方式不断更新的今天,人们在出差、旅游或做其他出行时,不仅关心节省交通费用,而且对里程和所需要的时间等<em>问题</em>也感兴趣。对于这样一个人们关心的<em>问题</em>,可用一个图结构来表示交通网络系统,利用计算机建立一个交通咨询系统。图中的顶点表示城市,边表示城市之间的交通关系。这个交通系统可以回答出行旅客提出的各种路径选择<em>问题</em>。例如,<em>问题</em>之一:“一位旅客要从A城到B城,他希望选择一条途中中转次数最少的路线。”假设图中每一站都需要换车,那么这个<em>问题</em>反映到图上就是要找一条从顶点A到顶点B的所含边数目最少的路径。我们只需要从顶点A出发对图作广度优先搜索,一旦<em>遇到</em>顶点B就终止。由此所得广度优先生成树上,从根顶点A到顶点B的路径就是中转次数最少的路径。路径上A与B之间的顶点就是路径的中转站,但这只是一类最简单的图的最短路径<em>问题</em>。系统还可以回答诸如此类的等等的路径选择<em>问题</em>。rn  设计一个交通咨询系统,为出差、旅游或做其他出行的客人提供各种路径选择信息查询服务。
各位大牛帮忙
rnrnrn rn rn 无标题文档rn rnrnrnrnasdfasrn rnasdfsrnrnzcvxrnrnrnrn问下这个是 拖拽的<em>问题</em> 。 if里的代码是在IE下拖拽时 不会选中div外面的文字 else里的是 在火狐下拖拽div时 不会选中 div外面的文字 去这个bug 是因为return false。 但是为什么写在else外面才好使 。不是应该放在else里面吗 放到里面反而不好使了这是为什么啊 ?
移植vsftpd到ARM开发板
1. 下载源码 https://security.appspot.com/downloads/<em>vsftpd</em>-3.0.3.tar.gz 2. 解压并编译 2.1 解压 tar -zxvf /home/chy/work/tar/<em>vsftpd</em>-3.0.3.tar.gz -C ./ 2.2 设置交叉编译环境 $ export PATH=/opt/ARM/mys-4279/bin:$PA
更新vsftpd遇到问题,求助
有一台很老的服务器被扫描到vsftp服务存在漏洞,要求整改。于是我想升级下此服务。官网下载最新的vsftp编译安装时报了如下的错误:rn[root@lhapp2 src]# cd <em>vsftpd</em>-3.0.2rn[root@lhapp2 <em>vsftpd</em>-3.0.2]# makerngcc -c main.c -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wall -W -Wshadow -Werror -Wformat-security -D_FORTIFY_SOURCE=2 -idirafter dummyincrncc1: error: unrecognized command line option "-fstack-protector"rncc1: error: invalid parameter `ssp-buffer-size*rnmake: *** [main.o] 错误 1rn看起来是gcc版本太老的原因,求教下有办法在不更新gcc的情况下处理吗?
大牛们,,,
// if.cpp -- using the if statementrnrnrn#include rnrnrnint main()rnrnrnrn using namespace std;rnrn char ch;rnrn int spaces = 0;rnrn int total = 0;rnrn cin.get(ch);rnrn while (ch != '.') // quit at end of sentencernrn rnrn if (ch == ' ') // check if ch is a spacernrnrn ++spaces;rnrn ++total; // done every timernrnrn cin.get(ch);rnrnrn rnrn cout << spaces << " spaces, " << total;rnrn cout << " characters total in sentence\n";rnrnrn return 0;rnrnrnrnrnrn------------------rnrnrncin.get(ch);rnrn while (ch != '.') // quit at end of sentencernrn rnrn if (ch == ' ') // check if ch is a spacernrnrn ++spaces;rnrn ++total; // done every timernrnrn cin.get(ch);rnrnrn这段不懂,求解释rnrn
技术支持啊,高手们
现在我在做一个电脑销售的小程序,要求比如我选中一个电脑这个大类,就可以分别出来配件包括主板\内存\cpu\等,配件可以选择修改,最后有个单价汇总,用datagridview能实现吗?为了实现哪种价格好些.
在搞过技术支持的朋友指导指导
搞了4个月的.net了,发现自己不是很适合编程这门工作,我希望与人多点沟通,不是总坐在电脑面前编程.而人又不是特别外向的那种,我想做做<em>技术支持</em>这个工作.想<em>请</em>问一下做过<em>技术支持</em>的前辈给点这方面的<em>指导</em>,<em>技术支持</em>需要掌握哪方面的重要技能,有什么方面需要特别注意,在进入这个行业以后要注意加强哪方面的能力,谢谢.
救命,高手们指导
在下初学不久,还<em>请</em>高手指教,我想实现~~~rn~~~连续打印出整个科室的所有病人的信息,每个人的项目都包含在基本信息中一次显示出来,然后是下一个人的。。我用的是freefrom风格,,怎样可以实现一个人打完,接着下一个人的。而且每个人项目的数量不一定,如何可以自动增加。我是初学,可以讲的详细一点吗????rnrn~ 床号 姓名 诊断结果 科室rn 02 王凤 待查 妇科 ~~(基本信息)rn -----------------------------------------------------------rn 类型 项目名 数量 申<em>请</em>时间 ~~~(项目)rn 化验 肝功全套 1 2004-09-23rn 化验 石蜡切片 1 2004-09-23rn ...............rn ..............rn -----------------------------------------------------------rn 打印日期 2004-09-23 ~~~~(基本信息)
大侠们指导学习方法
大家好,我是一名JAVA 初行者。rn学过C语言以及数据结构,自己认为学得还算可以。rn有一点关于面向对象的肤浅知识。rn现在很想学一门面向对象语言。rnrn我知道学习编程实践是非常必要和重要的,在学C时候深刻体会到。rn但还是很想<em>请</em>大侠们指教怎样学习好JAVA?rnrnPS:目前正在看Java How to Program和Thinking in Java 这两本书。
高手们指导小弟下!
小弟马上面临毕业,在毕业前准备练练手,现在<em>遇到</em>一个<em>问题</em>想<em>请</em>教前辈们,(本人表达能力极度缺乏<em>请</em>前辈们谅解)rnrn<em>问题</em>大概是这样,这是客户端的一部分代码rnString strBaseUrl = "http://127.0.0.1/test/test.jsp?"rnString strQueryString = "method=add&value1=***&value2=***";rnprivate String http()rn throws RemoteException rn try rn URL httpUrl = new URL(strBaseUrl);rn HttpURLConnection httpconn = (HttpURLConnection) httpUrlrn .openConnection();rn httpconn.setRequestMethod("POST");rnrn httpconn.setDoOutput(true);rn PrintWriter out = new PrintWriter(httpconn.getOutputStream());rn out.print(strQueryString);rn out.close();rnrn StringBuffer sbRet = new StringBuffer();rn BufferedReader in = new BufferedReader(new InputStreamReader(rn httpconn.getInputStream()));rn int chr;rn while ((chr = in.read()) != -1) rn sbRet.append((char) chr);rn rn in.close();rnrn String value = sbRet.toString();rn logger.info("---------------return xml:");rn logger.info(value);rnrn return value;rnrn catch (MalformedURLException e) rn throw new RemoteException(e.getMessage());rn catch (IOException e) rn throw new RemoteException(e.getMessage());rn rn rn然后我注册了一个RMI服务rn LocateRegistry.createRegistry(80);rn OtaFunctions of = new OtaFunctionsImpl();rn Naming.rebind("//127.0.0.1:80/test/test.jsp",of);rn然后客户端调用到了我的RMI服务,并且将"method=add&value1=***&value2=***"通过rnPrintWriter out = new PrintWriter(httpconn.getOutputStream());rn out.print(strQueryString);rn out.close();rn传输给我,我想问的是怎么获取到客户端传输给我的数据啊?然后怎么返回回去?rn我现在弄了半天都没头绪,希望前辈们赐教,小弟在这里先谢谢了n[b]<em>问题</em>补充:[/b]n就是在注册的RMI文件里怎么读取客户端穿过来的字符串,rn我这个老是在rnBufferedReader in = new BufferedReader(new InputStreamReader( rnhttpconn.getInputStream()));rn出错,rnjava.rmi.RemoteException: http://127.0.0.1/ota/otaFunctions.jsp?
php 代码遇到问题帮忙
init();rnmysql_query("set names 'gb2312'");rn$str="select * from $msql->album order by datex DESC";rn$msql->query($str);rn?>rnrnrn rn 无标题文件rn rnrnrnrnrnrnrnrnrn rn rn 编号rn 留言者rn 主题rn 日期rnrn rn rn rn rn rnrn rn rnrnrnrnrnrnrnrnrnrn在运行init();rnmysql_query("set names 'gb2312'");rn$str="select * from $msql->album order by datex DESC";rn$msql->query($str);rn?>rn的时候,系统把匹配,后面的东西当成文本输出了。rnfunction的内容是这样的。rnlinkmysql=mysql_connect($this->ip,$this->user,$this->password);rn if(!$this->linkmysql)rn rn echo("登陆MYSQL失败,<em>请</em>联系系统管理员");rn rn rn function close_mysql()rn rn mysql_close($this->linkmysql);rn rn function select_db()rn rn $link_Isok=mysql_select_db($this->db,$this->linkmysql);rn if(!$link_Isok)rn rn echo ("选择数据库错误,<em>请</em>联系系统管理员");rn mysql_close($this->linkmysql);rn exit;rn rn rn function init()rn rn $this->link_mysql();rn $this->select_db();rn rn function query($str)rn rn $this->listmysql=mysql_query($str,$this->linkmysql);rn rnrnrnrnrnclass tools_hrnrn function showmessage($str)rn rn echo " ";rn rn function goURL($str)rn rn header("Location:$str");rn rn function submitURL($str)rn rn echo " ";rn echo "";rn echo "script language=\"JavaScript\">";rn echo "submitfrm.submit();";rn echo "";rn rnrn?>
升级到2005遇到问题,帮忙
我以前的项目是2003下用的,有水晶报表rn结果升级后<em>遇到</em>错误如下,<em>请</em><em>帮忙</em>,谢谢!rn错误 1 类型“CrystalDecisions.CrystalReports.Engine.ReportClass”同时存在于“c:\WINDOWS\assembly\GAC\CrystalDecisions.CrystalReports.Engine\10.0.3300.0__692fbea5521e1304\CrystalDecisions.CrystalReports.Engine.dll”和“c:\WINDOWS\assembly\GAC_MSIL\CrystalDecisions.CrystalReports.Engine\10.2.3600.0__692fbea5521e1304\CrystalDecisions.CrystalReports.Engine.dll”中 D:\zj\App_Code\zjoffice\zjstudent\studentstatemarksaverpt.cs 19 44 D:\zj\rn
遇到问题帮忙解决,谢谢
系统:windows.net iis6rnasp中所有的包含文件只要有包含上级的()就出错.rn<em>请</em>问如何解决呢?rnrneg:rnrnhttp://202.97.215.155/1/test.asprnrnrnTechnical Information (for support personnel)rnrnError Type:rnActive Server Pages, ASP 0131 (0x80004005)rnThe Include file '../test1.asp' cannot contain '..' to indicate the parent directory.rn/1/test.asp, line 1rnrnrnBrowser Type:rnMozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3215; .NET CLR 1.0.3705) rn
菜鸟遇到问题高手帮忙
void CTest1Dlg::OnOpenButton() rnrn CFileDialog diaFile;rnrn diaFile.DoModal();rnrnrn编译时出错,错误提示:error C2512: no appropriate default constructor availablernrn<em>请</em>高手指点!
我又遇到问题了,帮忙
我的电脑上已经安装了vc6,office2000,sqlserver,我再安装msde ,报错,内容为‘指定的实例名无效’,怎样才知道是否已经安装了msde,如果我在应用程序中安装盘中打包MSDE,我要采集哪写文件?
一个设计问题大牛帮忙
QT调用c++的dll的时候,怎么才能把UTF8协同好?rn举个列子:rn我在 设计 C++的DLL接口的时候用什么类型让他们互传UTF8很好的工作?rnrn很急,忘有经验的不吝赐教!!!!!!!!!
关于头文件重复包含问题大牛帮忙
[color=#FF0000]1.h[/color]包含以下头文件:#pragma once #include #include #include "ini.h" #include #include #include"winsoch.h" #include"mysql.h" #include #include #includeM #include #include #includernrn[color=#FF0000]2.h[/color]包含以下头文件: #pragma once #include #include"dbcontainer.h" (其中dbcontainer.h包含 #pragma once #include)rnrn[color=#FF0000]2.cpp[/color]包含以下头文件:#pragma once #include #include #include #include"process.h" #include"2.h" #include"config.h" #include #includernrn[color=#FF0000]当2.cpp中包含1.h后,编译报windows.h重复include.[/color]rnrn<em>请</em><em>大牛</em>们<em>帮忙</em>分析一下是哪些头文件之间有矛盾。
大牛帮忙小弟图形学capstone final project?
小弟正在上图形学的课,但老师给出的fianl project 确实做不来,只做了一部分。rnrn如果哪位<em>大牛</em>对图形学感兴趣,<em>请</em>给我一点提示,谢谢。这学期过不过就靠这个fianl project 了。rnrn留学学习辛苦啊,大家体谅体谅!rnrnrn[img=http://img1.douban.com/view/status/median/public/b2b445e8083a730.jpghttp://][/img]rn[img=http://img3.douban.com/view/status/median/public/788562d804ee716.jpghttp://][/img]
各位大牛帮忙看看这个二叉树错在哪里了。。。
[code=c]rn#include rnusing namespace std;rnrnclass BinaryChainTree;rnrnclass BinaryChainTreeNodernrn friend BinaryChainTree;rnprivate:rn char data;rn BinaryChainTreeNode* leftChild;rn BinaryChainTreeNode* rightChild;rnpublic:rn BinaryChainTreeNode()rn rn leftChild = NULL;rn rightChild = NULL;rn rnrn char getData()rn rn return this->data;rn rn;rnrnclass BinaryChainTreernrnprivate:rn BinaryChainTreeNode* root;rn rnpublic:rn BinaryChainTree()rn rn root = NULL;rn rnrn BinaryChainTreeNode *getRoot()rn rn return root;rn rnrn void creat(BinaryChainTreeNode* t)rn rn char ch;rn cin>>ch;rn if(ch == '#')rn rn t = NULL;rn rn elsern rn t = new BinaryChainTreeNode;rn t->data = ch;rn creat(t->leftChild);rn creat(t->rightChild);rn rn rnrn bool isEmpty()rn rn return (root == NULL);rn rnrn int depth(BinaryChainTreeNode* p)rn rn int left,right;rn if(p == NULL)rn rn return 0;rn rn elsern rn left = depth(p->leftChild);rn right = depth(p->rightChild);rn rn return ((left > right) ? left : right) + 1;rn rnrn void clear(BinaryChainTreeNode* p)rn rn delete p;rn rnrn int count(BinaryChainTreeNode* p)rn rn if(p == NULL)rn return 0;rn elsern rn return (count(p->leftChild)+1) + (count(p->rightChild)+1);rn rn rnrn void inorder(void (*Visit)(BinaryChainTreeNode* u),BinaryChainTreeNode* p)rn rn if(p)rn rn inorder(Visit,p->leftChild);rn Visit(p);rn inorder(Visit,p->rightChild);rn rn rnrn void postorder(void (*Visit)(BinaryChainTreeNode* u),BinaryChainTreeNode* p)rn rn if(p)rn rn postorder(Visit,p->leftChild);rn postorder(Visit,p->rightChild);rn Visit(p);rn rn rnrn void preorder(void (*Visit)(BinaryChainTreeNode* u),BinaryChainTreeNode* p)rn rn if(p)rn rn Visit(p);rn preorder(Visit,p->leftChild);rn preorder(Visit,p->rightChild);rn rn rn;rn[/code]rn这个是二叉树的实现的.h文件rn下面是测试文件rn[code=c]rn#include"binaryChainTree.h"rnrnvoid visit(BinaryChainTreeNode *t)rnrn cout << t->getData();rnrnrnint main()rnrn BinaryChainTree tree;rn tree.creat(tree.getRoot());rn cout<<
屏蔽热键遇到问题!!帮忙!!!
我参照网上的关于屏蔽win2000热键的程序,但为什么在我的机器上编译总是通不过呢?总是说"KBDLLHO<em>OK</em>STRUCT"没有定义?<em>请</em>高手指点!!多谢!rn
遇到问题了。。大虾帮忙。。
是这样的rn数据源的名字叫bean,access文件名叫user,表名叫userinforn表的格式是rnusername departname type timern张三 国资委 硕士研究生 2007-07-12(这个部分使用locale生成的。格式我忘记了。。)rn李四 财政部 博士研究生 2006-03-14rn....rn等等rnrn每页显示50个信息。把新人,也就是time晚的列在前面。rnrn因为人事变动很大,数据库经常要改,所以希望能有一个jsp页面(动态)来用表格形式显示数据库中所有数据。rn另外,还希望有2个查询功能筐,因为不可能一页把所有的人信息都写上。查两个关键字username 和departnamernrn这个jsp代码怎么写呢?用javabean也行。。我用netbeans实在是不熟,<em>请</em>大家<em>帮忙</em>。。。rn非常感谢/。。。rnrn
应用正则表达式遇到问题帮忙
对正则表达式不熟,现在转移论坛帖子时<em>遇到</em>一些麻烦,<em>请</em>大家帮帮我。rnrn要把$txt中的BB代码标识rn[wav]http://www.xxx.com/1.mp3[/wav]rnrn替换成rn[player]http://www.xxx.com/1.mp3[/player]rnrn应该怎么写??rnrn我这么写为什么不行?rn$txt = preg_replace( "/\[wav\]/", "[player]", $txt );rn$txt = preg_replace( "/[\/wav\]/", "[/player]", $txt );rnrn有没有什么办法一句话搞定呢??rnrn谢谢!
项目发布时遇到下面问题大牛帮忙看看
Deployment failure on Tomcat 6.x. Could not copy all resources to D:\Tomcat6.0.30\webapps\videoWebsite. If a file is locked, you can wait until the lock times out to redeploy, or stop the server and redeploy, or manually remove the deployment at D:\Tomcat6.0.30\webapps\videoWebsite
macosx下,搭建gitlab的配置问题大牛帮忙看看什么问题
hello,rnmacosx下,搭建gitlab的配置<em>问题</em>,结果始终报502错误,如下:rn[b]502rnrnWhoops, GitLab is taking too much time to respond.rnrnTry refreshing the page, or going back and attempting the action again.rnrnPlease contact your GitLab administrator if this problem persists.[/b]rnrnrn<em>请</em>各位<em>大牛</em><em>帮忙</em>参详一番。相关的配置项,<em>请</em>参考下面列举的,如果有缺少,<em>请</em>留言,我马上增加上,谢谢啦。rnrn[b]unicorn.rb:[/b]rnworker_processes 3rnrnlisten "/Users/git/gitlab/tmp/sockets/gitlab.socket", :backlog => 1024rnlisten "80", :tcp_nopush => truernrn[b]redis.conf:[/b]rn打开下面两行注释rnunixsocket /tmp/redis.sockrnunixsocketperm 777rnrn[b]resque.xml:[/b]rndevelopment: redis://localhost:6379rntest: redis://localhost:6379rn# production: unix:/var/run/redis/redis.sockrnproduction: unix:/tmp/redis.sockrnrn[b]gitlab:[/b]rnupstream gitlab rn## server 127.0.0.1:80;rn server unix:/Users/git/gitlab/tmp/sockets/gitlab.socket fail_timeout=0;rnrnrnupstream gitlab-git-http-server rn server unix:/Users/git/gitlab/tmp/sockets/gitlab-git-http-server.socket fail_timeout=0;rnrnrn## Normal HTTP hostrnserver rn ## Either remove "default_server" from the listen line below, rn ## or delete the /etc/nginx/sites-enabled/default file. This will cause gitlabrn ## to be served if you visit any address that your server responds to, eg.rn ## the ip address of the server (http://x.x.x.x/)n 0.0.0.0:80 default_server;rn # zn修改rn listen 80;rn # listen 0.0.0.0:80 default_server;rn # listen [::]:80 default_server;rn server_name 127.0.0.1; ## Replace this with something like gitlab.example.comrn server_tokens off; ## Don't show the nginx version number, a security best practicern root /Users/git/gitlab/public;rnrnrn[b]gitlab.yml:[/b]rngitlab:rn ## Web server settings (note: host is the FQDN, do not include http://)rn host: 127.0.0.1 # localhost # change by myself localhost ->urlrn port: 80 # Set to 443 if using HTTPS, see installation.md#using-https for additional HTTPS configuration detailsrn https: false # Set to true if using HTTPS, see installation.md#using-https for additional HTTPS configuration detailsrnrn[b]config.yml:[/b]rn---rnuser: gitrngitlab_url: http://127.0.0.1/rnhttp_settings:rn self_signed_cert: falsernrepos_path: "/Users/git/repositories/"rnauth_file: "/Users/git/.ssh/authorized_keys"rnredis:rn bin: "/usr/local/bin/redis-cli"rn namespace: resque:gitlabrn socket: "/tmp/redis.sock"rnlog_level: INFOrnaudit_usernames: falsernrn[b]nginx.conf:[/b]rn#user nobody;rnworker_processes 1;rnrn#error_log logs/error.log;rn#error_log logs/error.log notice;rn#error_log logs/error.log info;rnrn#pid logs/nginx.pid;rnrnrnevents rn worker_connections 1024;rnrnrnrnhttp rn include mime.types;rn default_type application/octet-stream;rnrn #log_format main '$remote_addr - $remote_user [$time_local] "$request" 'rn # '$status $body_bytes_sent "$http_referer" 'rn # '"$http_user_agent" "$http_x_forwarded_for"';rnrn #access_log logs/access.log main;rnrn sendfile on;rn #tcp_nopush on;rnrn #keepalive_timeout 0;rn keepalive_timeout 65;rnrn #gzip on;rnrn server rn listen 80;rn server_name localhost;rnrn #charset koi8-r;rnrn #access_log logs/host.access.log main;rnrn location / rn root html;rn index index.html index.htm;rn rnrn #error_page 404 /404.html;rnrn # redirect server error pages to the static page /50x.htmlrn #rn error_page 500 502 503 504 /50x.html;rn location = /50x.html rn root html;rn rnrn # proxy the PHP scripts to Apache listening on 127.0.0.1:80rn #rn #location ~ \.php$ rn # proxy_pass http://127.0.0.1;rn #rnrn # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000rn #rn #location ~ \.php$ rn # root html;rn # fastcgi_pass 127.0.0.1:9000;rn # fastcgi_index index.php;rn # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;rn # include fastcgi_params;rn #rnrn # deny access to .htaccess files, if Apache's document rootrn # concurs with nginx's onern #rn #location ~ /\.ht rn # deny all;rn #rn rnrnrn # another virtual host using mix of IP-, name-, and port-based configurationrn #rn #server rn # listen 8000;rn # listen somename:8080;rn # server_name somename alias another.alias;rnrn # location / rn # root html;rn # index index.html index.htm;rn # rn #rnrnrn # HTTPS serverrn #rn #server rn # listen 443 ssl;rn # server_name localhost;rnrn # ssl_certificate cert.pem;rn # ssl_certificate_key cert.key;rnrn # ssl_session_cache shared:SSL:1m;rn # ssl_session_timeout 5m;rnrn # ssl_ciphers HIGH:!aNULL:!MD5;rn # ssl_prefer_server_ciphers on;rnrn # location / rn # root html;rn # index index.html index.htm;rn # rn #rn include servers/*;rn
大牛帮忙,jsp+tomcat+sql2000报错信息
2012-6-1 10:36:54 org.apache.catalina.core.StandardWrapperValve invokern严重: Servlet.service() for servlet [SaveServlet] in context with path [/hcgl] threw exceptionrnjava.lang.NullPointerExceptionrn at com.optable.opuser.query_id(opuser.java:189)rn at servlet.SaveServlet.doPost(SaveServlet.java:555)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:306)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:380)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:243)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:188)rn at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:288)rn at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rn2012-6-1 10:51:42 org.apache.catalina.core.StandardWrapperValve invokern严重: Servlet.service() for servlet [SaveServlet] in context with path [/hcgl] threw exceptionrnjava.lang.NullPointerExceptionrn at com.optable.opuser.query_id(opuser.java:189)rn at servlet.SaveServlet.doPost(SaveServlet.java:555)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:306)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:380)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:243)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:188)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:166)rn at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:288)rn at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rn2012-6-1 11:27:57 org.apache.catalina.core.StandardWrapperValve invokern严重: Servlet.service() for servlet [SaveServlet] in context with path [/hcgl] threw exceptionrnjava.lang.NullPointerExceptionrn at com.optable.opuser.query_id(opuser.java:189)rn at servlet.SaveServlet.doPost(SaveServlet.java:555)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:306)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:380)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:243)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:188)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:166)rn at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:288)rn at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rn2012-6-1 11:29:02 org.apache.catalina.core.StandardWrapperValve invokern严重: Servlet.service() for servlet [SaveServlet] in context with path [/hcgl] threw exceptionrnjava.lang.NullPointerExceptionrn at com.optable.opuser.query_id(opuser.java:189)rn at servlet.SaveServlet.doPost(SaveServlet.java:555)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:306)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:380)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:243)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:188)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:166)rn at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:288)rn at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rn
有个疑问,大牛帮忙解答一下,谢谢~!
是这样的,在对比多线程编程的时候,效率是要优于多进程的。这是因为线程的特点,轻量资源、共享等。rnrn如果现在是单个进程和单个线程去对比的话,孰优孰劣?rnrn单个进程,直接执行代码;rnrn单个线程,创建、执行、关闭、退出等。rnrn<em>请</em>问这种情况下,二者有何区别?rnrn第二个<em>问题</em>,多进程和多线程的时候,因为多线程之间会有内部的切换等,是否存在这样一个现象:rnrn相同数量的线程和进程,是否线程占用资源更少?rnrn越详细越好,谢谢!
内核编译时出错,大牛帮忙解答下
我用arm-linux-gcc 3.4.1编译linux-2.6.26.5内核。rnlinux提示的<em>问题</em>如下:rndrivers/built-in.o(.text+0x33288): In function `drm_lock_take':rn/mnt/hgfs/shared/cheshi/linux-2.6.26.5/include/asm-generic/cmpxchg-local.h:42: undefined reference to `wrong_size_cmpxchg'rndrivers/built-in.o(.text+0x336ec): In function `drm_lock_free':rn/mnt/hgfs/shared/cheshi/linux-2.6.26.5/include/asm-generic/cmpxchg-local.h:42: undefined reference to `wrong_size_cmpxchg'rndrivers/built-in.o(.text+0x337ac):/mnt/hgfs/shared/cheshi/linux-2.6.26.5/include/asm-generic/cmpxchg-local.h:42: undefined reference to `wrong_size_cmpxchg'rndrivers/built-in.o(.text+0x339cc): In function `drm_notifier':rn/mnt/hgfs/shared/cheshi/linux-2.6.26.5/include/asm-generic/cmpxchg-local.h:42: undefined reference to `wrong_size_cmpxchg'rndrivers/built-in.o(.text+0x33b20): In function `drm_idlelock_release':rn/mnt/hgfs/shared/cheshi/linux-2.6.26.5/include/asm-generic/cmpxchg-local.h:42: undefined reference to `wrong_size_cmpxchg'rnmake[1]: *** [.tmp_vmlinux1] 错误 1rnmake: *** [sub-make] 错误 2rnrn下面的代码是cmpxchg-local.h中的含有wrong_size_cmpxchg部分,已经在文件头用“extern unsigned long wrong_size_cmpxchg(volatile void *ptr)”定义调用外部函数wrong_size_cmpxchg了,但是编译时却出现了上面linux提示的<em>问题</em>,<em>请</em><em>大牛</em><em>帮忙</em>解答下这是什么原因造成的以及怎么解决。rnrn#define __ASM_GENERIC_CMPXCHG_LOCAL_Hrnrn#include rnrnextern unsigned long wrong_size_cmpxchg(volatile void *ptr);rnrn/*rn * Generic version of __cmpxchg_local (disables interrupts). Takes an unsignedrn * long parameter, supporting various types of architectures.rn */rnstatic inline unsigned long __cmpxchg_local_generic(volatile void *ptr,rn unsigned long old, unsigned long new, int size)rnrn unsigned long flags, prev;rnrn /*rn * Sanity checking, compile-time.rn */rn if (size == 8 && sizeof(unsigned long) != 8)rn wrong_size_cmpxchg(ptr);rnrn local_irq_save(flags);rn switch (size) rn case 1: prev = *(u8 *)ptr;rn if (prev == old)rn *(u8 *)ptr = (u8)new;rn break;rn case 2: prev = *(u16 *)ptr;rn if (prev == old)rn *(u16 *)ptr = (u16)new;rn break;rn case 4: prev = *(u32 *)ptr;rn if (prev == old)rn *(u32 *)ptr = (u32)new;rn break;rn case 8: prev = *(u64 *)ptr;rn if (prev == old)rn *(u64 *)ptr = (u64)new;rn break;rn default:rn wrong_size_cmpxchg(ptr);rn rn local_irq_restore(flags);rn return prev;rn
对于hook运行机理的疑问...大牛帮忙解惑
[b][/b][size=13px][/size] 为了方便起见,hook为键盘钩子(全局钩子),写在hookdll中,dll里有钩子的回调(里面有SendMessage函数to监控进程),安装(传参为hwnd...),卸载函数。rn 我想问的:rn 1.hookdll是不是应该加载到监控进程?如果是的话,安装函数直接把监控进程的hwnd传回到hookdll中了,为什么还必须要设定hookdll中的hwnd为共享变量?rn 2.如果在被监控进程按键盘,键盘钩子应该能够钩到吧,然后调用回调函数中的SendMessage函数把消息传给监控进程,监控进程再处理消息。这样子理解没错吧?为什么我按照这个思路下来,监控进程只能监控到本进程的,别的进程根本监控不到?rn 3.我上网看了很多,有的说是“hookdll映射到被监控进程中”,为什么dll会被映射到被监控进程啊,他俩应该没有关系吧,监控进程加载dll,而被监控进程和钩子的关系仅仅是 SetWindowsHookExtern函数和回调函数的关系,为什么dll会被映射呢??我是初学者,可能有点语无伦次,<em>请</em>谅解啊...
大牛帮忙出出主意
目前公司项目有个需求,就是不能让用户直接通过浏览器的url访问网站中的一个用来存放数据的html文件(这个文件不是用来显示给用户的而是存放数据)rn后端代码使用C写的cgi反馈的数据,存到这个html文件,然后前端用了artTemplate模板引擎将数据呈现在页面上。这里用户可以通过查看源码的方式看到我存放数据的文件路径,并可以直接访问查看到数据。有没有什么方法可以阻止这种操作,万分感激!rnrn
大牛帮忙提点建议
初次使用数据库的【对称证书加密技术】,rn有如下<em>问题</em>想<em>请</em>教下:rn1:如果之前创建的证书或者对称密钥丢失怎么办?rn2:当我把数据库放到另外一台服务器,这些加密是否还能正常使用?(过会自己测试下)rn3:备份 Master Key 、证书、对称密钥的作用rn4:加密的算法,通常都使用哪些种类?目前使用的是DES。rn5:加密后,以后要注意哪些事宜。rn6:<em>帮忙</em>看下这个帖子:rn[url=http://topic.csdn.net/u/20120615/12/12be04c7-c56d-40c6-8450-710366f079e3.html][/url]rnrn以下是自己写的一个使用案例,rn如果有不合适的地方,望指点下rnrnrnrn[code=SQL]rnif object_id('t_encryption','u') is not null drop table t_encryption rngorncreate table t_Encryptionrn(rn DCNO int identity primary key,rn DCNAME varchar(50) ,rn SalaryInfo varbinary(max)rn)rngorn---------------------------------------------------创建加密证书rncreate certificate cert_SalaryInfornEncryption by password='P@ssw0rd'rnwith rn subject=N'Salary Information Encryption',rn expiry_date='9999-12-31'rn-----删除证书 rn----- drop certificate cert_SalaryInforngorn---------------------------------------------------创建对称加密rncreate symmetric key sym_SalaryInfornwith rn algorithm=DES --使用DES 加密算法(*不知道原理)rnencryption by certificate cert_SalaryInforn----删除对称加密rn----drop symmetric key sym_SalaryInforngorn---------------------------------------------------打开对称加密(插入数据前要打开对称加密,否则将无效)rnopen symmetric key sym_SalaryInforndecryption by certificate cert_SalaryInfornwith password =N'P@ssw0rd'rngorn---------------------------------------------------插入加密数据rninsert into t_Encryption(DCNAME,SalaryInfo)rnselect 'andy',ENCRYPTBYKEY(KEY_GUID('sym_SalaryInfo'),N'1000.00') union all rnselect 'job',ENCRYPTBYKEY(KEY_GUID('sym_SalaryInfo'),N'2000.03')rngorn---------------------------------------------------关闭密钥rnclose symmetric key sym_SalaryInforngorn---------------------------------------------------查询表数据rnselect * from t_Encryptionrn/*rnDCNO DCNAME SalaryInforn----------- -------------------------------------------------- -----------------------------------------------------------------------------------------------------------rn1 andy 0x00A4EFE20ABB16458517D289B626ECB20100000060F12ABBD792B7C542DC8AAEC496A3796A9C0B7D454F56CAC6AA60763953B631rn2 job 0x00A4EFE20ABB16458517D289B626ECB2010000003CAAC262CE95588561CA30139608AD380608F12F70E7271006702FA037D5AE1Arnrn(2 row(s) affected)rn*/rngorn---------------------------------------------------使用对称加密直接查看(不开启对称加密)rnselect rn DCNO,rn DCNAME,rn convert(nvarchar(500),DECRYPTBYKEY(SalaryInfo)) as SalaryInfornfrom t_Encryptionrn/*rnDCNO DCNAME rn----------- -------------------------------------------------- -------------------rn1 andy NULLrn2 job NULLrnrn(2 row(s) affected)rn*/rngorn--------------------------------------------------查询数据前要打开加密rnopen symmetric key sym_SalaryInforndecryption by certificate cert_SalaryInfornwith password =N'P@ssw0rd'rngornselect rn DCNO,rn DCNAME,rn convert(nvarchar(500),DECRYPTBYKEY(SalaryInfo)) as SalaryInfornfrom t_Encryptionrn/*rnDCNO DCNAME SalaryInforn----------- -------------------------------------------------- ------------------rn1 andy 1000.00rn2 job 2000.03rnrn(2 row(s) affected)rn*/rngorn--------------------------------------------------更新DCNO=1的salaryinfo 变为1500rnupdate t_Encryption set SalaryInfo=ENCRYPTBYKEY(KEY_GUID('sym_SalaryInfo'),N'1500')rnwhere DCNO=1rngorn--------------------------------------------------再次插入一条记录rninsert into t_Encryption(DCNAME,SalaryInfo)rnselect 'Ivan',ENCRYPTBYKEY(KEY_GUID('sym_SalaryInfo'),N'3000')rngornselect rn DCNO,rn DCNAME,rn convert(nvarchar(500),DECRYPTBYKEY(SalaryInfo)) as SalaryInfornfrom t_Encryption rn/*rnDCNO DCNAME SalaryInforn----------- -------------------------------------------------- ---------------------rn1 andy 1500rn2 job 2000.03rn3 Ivan 3000rnrn(3 row(s) affected)rn*/rngorn--------------------------------------------------使用完成后一定要记住关闭掉rnclose symmetric key sym_SalaryInforngorn--------------------------------------------------关闭后查询(在没有开锁的情况下)rnselect rn DCNO,rn DCNAME,rn SalaryInfo as SalaryInfo_,rn convert(nvarchar(500),DECRYPTBYKEY(SalaryInfo)) as SalaryInfornfrom t_Encryptionrn/*rnDCNO DCNAME SalaryInfo_ SalaryInforn1 andy 0x00A4EFE20ABB16458517D289B626ECB201000000DF23BA3059585CF3C6F0D3C3CA7EB685B201DAEAEF4351570FEE080D5927DD46 NULLrn2 job 0x00A4EFE20ABB16458517D289B626ECB2010000003CAAC262CE95588561CA30139608AD380608F12F70E7271006702FA037D5AE1A NULLrn4 Ivan 0x00A4EFE20ABB16458517D289B626ECB201000000D39FA6B1F9090FFC9488DD8947BD068D9B995776FC1A6E018DED081EA3150D5C NULLrn*/rnrn[/code]
大牛帮忙,shell脚本的问题
$vi test.shrn#!/bin/bashrntable=xx_20$(date +%y%m)rnecho $tablernvalue=sqlplus ttt/ttt@ts
vsftpdOK6410上的移植(linux)
描述了<em>vsftpd</em>在ok6410<em>开发板</em>上的详细<em>移植</em>过程以及总结的一些相关资料。在老师文档的基础上修改而成。 使用的交叉编译器为arm-linux-gcc 4.3.2
嵌入式FTP服务器(vsftpd)移植手册
嵌入式FTP服务器(<em>vsftpd</em>)<em>移植</em>手册
大牛帮忙.. 关于弹出菜单...
菜单类似csdn 点[论坛列表]然后弹出的那个菜单,美工不错.rn 偶需要源码,最重要是您能抽时间给偶解释一下,越详细越好. 100分.
===========移植libbt1.05到uclinux2.4遇到问题============
/* rn * Copyright 2003,2004,2005 Kevin Smathers, All Rights Reservedrn * the file COPYING.LGPL for details.rn */rn/*我在<em>移植</em>libbt1.05到uclinux2.4,使用arm-elf-gcc,编译libbt需要openssl(已经安装),url $ zlib(这俩还没有安装)*/rn/*首先使用gcc 在redhatlinux9.0上编译通过,可以使用该软件,简单修改原来的Makefile文件后(GCC->arm-elf-gcc,ar->arm-elf-ar,均在我用的toolchain里安装),我使用arm-elf-gcc编译出错:btDownload parser 错误,但是它也在这个函数前面的两个函数中使用时却没有出错,rn;另外,我把这个函数注释掉后没有出现这个错误!!所以我怀疑是这个函数和arm-elf-gcc的<em>问题</em>,还<em>请</em>大虾指点一二!!!!*/rnrn/*....下面是该文件peer.c出现错误的函数rn...............*/rn/*使用arm-elf-gcc编译出错,btDownload parser 错误,而它在这个函数前面的两个函数中使用时却没有次错误,rn并且我已经使用gcc 在redhatlinux9.0上编译通过*/rn...............rnintrnupdate_interested( btContext *ctx, btPeer *p) rn int interest;rn rn bttrace("update_interested");rn btDownload *dl=ctx->downloads[p->download];/*这句话大概是什么意思,ctx->downloads[p->download]*/rn DIE_UNLESS (p->downloaddownloadcount);/*(p->downloaddownloadcount)是什么意思*/rn interest = bs_hasInteresting( &dl->fileset.completed, &p->blocks, &dl->interested);rn if (interest != p->local.interested) rn if (send_interested( p, interest)) return -1;rn if (interest == 0 && !p->remote.choked) */rn /* stop the rate counter */rn stop_rate_timer( &p->remote, time(NULL));rn rn rn bttrace("update_interested exit");rn return interest;rnrn.........rn/*该文件(peer.c)的头文件说明区部分内容*/rn# include "config.h"rnrn#if !WIN32rn# include rn# include rn# include rn# include rn# include rn# if HAVE_UNISTD_Hrn# include rn# endifrn# if HAVE_FCNTL_Hrn# include rn# endifrn#endifrn#include rn#include rn#ifdef HAVE_STRINGS_Hrn# include rn#endifrn#include rn#include rn#include rn#include rnrn#include "bterror.h"rn#include "btmessage.h"rn#include "peer.h"rn#include "stream.h"rn#include "bitset.h"rn#include "context.h"rn#include "segmenter.h"rnrn#if WIN32rn# define EINPROGRESS WSAEINPROGRESS /* Operation now in progress */rn# define close(s) closesocket(s)rn# define int32_t signed intrn#endifrn#define REQMAX 10 /* Maximum requests to send. Must be less than queuesize or local queue will overflow */rn#define DOWNLOADS 4rn#define REQUEST_SIZE 16384 /* Default request size */rnchar g_filebuffer[MAXREQUEST]; /* This should be moved to context or allocated in process_queue */rnrn#ifdef TRACErn# define bttrace(msg) printf("%s+%d:%s\n", __FILE__, __LINE__, msg)rn#elsern# define bttrace(msg)rn#endifrnrnbtPeerset* btPeerset_create( btPeerset *pset) rn if (!pset) rn pset = (btPeerset *)btmalloc(sizeof(btPeerset));rn rn memset(pset, 0, sizeof(btPeerset));rn return pset;rnrnrn/* prototypes */rnintrnsend_have( btPeer *peer, int piece);rnint rnsend_cancel( btPeer *peer, int piece, int offs, int len);rnintrnsend_choke( btPeer *peer, int choke) ;rn...............rn...............rn.........rn还有!!!!!rn/*btDownload结构在下面的头文件里,叫做context.h,定义*/rnrn#ifndef __CONTEXT__Hrn#define __CONTEXT__Hrn#include rn#include rn#if WIN32rn# include "poll.h"rn#elsern# include rn# include rn#endifrn#include "types.h"rn#include "segmenter.h"rn#include "peer.h"rn#include "bitset.h"rn#define IDSIZE 20rn#define KEYSIZE 8rn#if WIN32rn# define MAXCONN 60rn#elsern# define MAXCONN 100rn#endifrn#define SOCKID_MAX 1024rn#define TMPLOC SOCKID_MAXrnrn#define CTX_STATUS_REVENTS(ctx,ev) ((ctx)->status[ev].revents)rnrn/* TBD */rntypedef struct btDownload rn btObject *md; /* tracker metadata */rn char *url; /* announce url */rn char infohash[SHA_DIGEST_LENGTH];rn kBitSet requested; /* requested blocks */rn kBitSet interested; /* interested blocks */rn btFileSet fileset; /* set of files to be written */rn int reregister_interval; /* how often to reregister with tracker */rnrn btPeerset peerset; /* set of peers on this torrent */rnrn int complete;rn btDownload;rnrntypedef struct btContext rn btDownload **downloads; /* Torrents this context keeps track of */rn int downloadcount;rn struct btPeer* sockpeer[FD_SETSIZE];rn rn char myid[IDSIZE];rn char mykey[KEYSIZE];rn int listenport;rn /*struct in_addr ip; / * my ip address */rnrn int statmap[SOCKID_MAX+1]; /* socket number to status number map */rn int nstatus; /* next available status */rn struct pollfd status[MAXCONN]; /* socket status */rnrn int x_set[SOCKID_MAX]; /* timeslicing bits */rn int xsock; /* number of bits that are set in x_set */rn int ss; /* server socket */rn float ulfactor; /* upload multiplier */rn btContext;rn........rn........rn
ckeditor4.3如何上传本地图片???大牛指导!!!!
[img=https://img-bbs.csdn.net/upload/201401/09/1389264831_995565.png][/img][img=https://img-bbs.csdn.net/upload/201401/09/1389264819_68969.png][/img]rnrn rn rnrnrn图片能上传到服务器上,为什么图片格式都变成.tmp格式的临时文件了呢?。也不自动切换图片信息中显示相应信息!!!<em>请</em><em>大牛</em><em>指导</em>!!!
一个类型上的问题大牛指导
用c语言实现snmp中的set方法,做过snmp开发的朋友都知道,这时候是要封装pdu的,封装的时候要将所设参数的类型也一起封装进去,我在这里set的是system.sysName,它的类型是STRING,在编译的时候,报了STRING未定义,凭感觉应该是头文件没包含进来,但是我不知道该包含什么样的头文件?<em>请</em><em>大牛</em>们<em>指导</em>!另外,我查了下man手册,里面讲到STRING类型是ASN.1中定义的类型,难道是跟这个有关系?rn下面是我的源程序:rn#include rn#include rn#include rnrn//#include rnrn#include rnrnrnintrnmain(int argc, char *argv[])rnrn netsnmp_session session, *ss;rn netsnmp_pdu *pdu, *response = NULL;rn netsnmp_variable_list *vars;rn int count;rn int status;rn int exitval = 0;rn struct variable_list *vp;rn char names[] = "system.sysName.0";rn char value[] = "I set the name!";rnrn vp = (struct variable_list *)malloc(sizeof(struct variable_list));rn vp->next_variable = NULL;rn vp->name = NULL;rn vp->val.string = NULL;rnrn init_mib();rnrn vp->name_length = MAX_NAME_LEN;rn vp->name = (oid *)malloc(sizeof(oid) * vp->name_length);rn if(snmp_parse_oid(names,vp->name,&vp->name_length) == NULL)rn exit (-1);rnrn vp->type = STRING;rn vp->val_len = strlen(value);rn vp->val.string = (u_char *)malloc(vp->val_len);rn memcpy((char *)vp->val.string,(char *)value,vp->val_len);rnrn init_snmp("mysetapp");rn rnrn snmp_sess_init( &session );rn session.peername = strdup("192.168.10.194");rnrnrn session.version = SNMP_VERSION_2c;rnrn session.securityName = strdup("motorola");rn session.securityNameLen = strlen(session.securityName);rnrn session.community = "public";rn session.community_len = strlen(session.community);rnrn session.securityLevel = SNMP_SEC_LEVEL_AUTHNOPRIV;rnrn session.securityAuthProto = usmHMACMD5AuthProtocol;rn session.securityAuthProtoLen = sizeof(usmHMACMD5AuthProtocol)/sizeof(oid);rnrn session.securityAuthKeyLen = USM_AUTH_KU_LEN;rnrn SOCK_STARTUP;rnrn /*rn * open an SNMP session rn */rn ss = snmp_open(&session);rn if (ss == NULL) rn /*rn * diagnose snmp_open errors with the input netsnmp_session pointer rn */rn snmp_sess_perror("snmpset", &session);rn SOCK_CLEANUP;rn exit(1);rn rnrn /*rn * create PDU for SET request and add object names and values to request rn */rn pdu = snmp_pdu_create(SNMP_MSG_SET);rn pdu->variables = vp;rnrn status = snmp_synch_response(ss, pdu, &response);rn if (status == STAT_SUCCESS) rn if (response->errstat == SNMP_ERR_NOERROR) rn if (!quiet) rn for (vars = response->variables; vars;rn vars = vars->next_variable)rn print_variable(vars->name, vars->name_length, vars);rn rn else rn fprintf(stderr, "Error in packet.\nReason: %s\n",rn snmp_errstring(response->errstat));rn if (response->errindex != 0) rn fprintf(stderr, "Failed object: ");rn for (count = 1, vars = response->variables;rn vars && (count != response->errindex);rn vars = vars->next_variable, count++);rn if (vars)rn fprint_objid(stderr, vars->name, vars->name_length);rn fprintf(stderr, "\n");rn rn exitval = 2;rn rn else if (status == STAT_TIMEOUT) rn fprintf(stderr, "Timeout: No Response from %s\n",rn session.peername);rn exitval = 1;rn else /* status == STAT_ERROR */rn snmp_sess_perror("snmpset", ss);rn exitval = 1;rn rnrn if (response)rn snmp_free_pdu(response);rn snmp_close(ss);rn SOCK_CLEANUP;rn return exitval;rn
informatica 9刚刚开始学习,大牛指导
[size=12px]workfilow manager 报错:未为工作流找到集成服务。<em>请</em>问是怎么回事呢,百度也找不到对应的解决办法,我在域主页配置只有repository存储资料库,没有配集成资料库。(pc实验,64位win7 64infor 64oracle 安装没有错误)[/size]
遇到问题了,没办法了,高手们,帮忙啊!
前段时间,我加一个同学的MSN,出现了以下<em>问题</em>:rn我加他的时候,居然在我的MSN上显示两个他的号(都是同一个MSN号),而且更郁闷的是,删除其中任何一个,另外的一个也跟着被删除,好郁闷,<em>请</em>问如何解决,只让它显示一个号啊!rn<em>请</em>看下人物中的图的 “怀远” 都是同一个号,怎么显示两个呢?<em>请</em>教我方法,谢谢!rnrn图的地址是:http://www.cnbeta.com/forums/index.php?act=Attach&type=post&id=307rnrn谢谢了,我都快要死人了!
大牛指导 大量大量 CMEMTHREAD等待
本周二 周三 本人对数据库进行了索引重建和统计信息更新 这两天 数据库执行等待类型都是大量 CMEMTHREAD等待。<em>请</em>教一下是什么方面原因rn[img=https://img-bbs.csdn.net/upload/201707/28/1501235153_755807.png][/img]rnrn<em>请</em>大神<em>帮忙</em>一下
遇到问题了,在线等,大拿们帮忙sqlldr
平台 redhat linux 企业4,Oracle10g。两个程序,一个生成文件,另一个把生成的文件倒入Oracle。用的是sqlldr,由于数据量很大,所以是一直连续调用sqlldr的,当sqlldr进程数量打到一定数量的时候,我就不让他在起sqlldr进程了。但是已经起来的sqlldr进程为什么不退出,Oracle高手帮看看
大牛们,帮忙设计一下方案,
有一个应用软件rnrn程序刚运行的时候,需要登录,登录的时候,需要 输入用户名好密码rnrn有不同的角色。。。。。。。rnrn当然还有个功能, 用户注册的功能rnrn不同的权限,能操作的功能是不同的,对吧?rnrnrnrn如何使 用户能操作不同的部分呢?rnrn比如:好多菜单,菜单有不少功能, 部分用户就不能使用某些菜单,,,rnrn谁做过类似的模板rnrnrn
大牛帮忙看一个问题
我给input添加了一个事件 代码如下rnrnrnrn但是在页面加载以后rn onfocus function() this.className = focusClass; rnrnrn 而 onclick function onclick(event) divId('Content1')rnrn 正常 rnrn这个onfocus 事件发生这样的变化是为什么啊?
帮忙设计一下 方案,大牛
有一个应用软件rnrn程序刚运行的时候,需要登录,登录的时候,需要 输入用户名好密码rnrn有不同的角色。。。。。。。rnrn当然还有个功能, 用户注册的功能rnrn不同的权限,能操作的功能是不同的,对吧?rnrnrnrn如何使 用户能操作不同的部分呢?rnrn比如:好多菜单,菜单有不少功能, 部分用户就不能使用某些菜单,,,rnrn谁做过类似的模板rn
大牛帮忙看看占了多少字节
void main()rnrn struct sturn rn int num;rn char name[20];rn char sex;rn int age;rn float score;rn char address[30];rn struct stu zhang,wang;rn rnrn printf("%d",sizeof(zhang));rn system("pause");rnrnrn我在vs2012上面运行后说是68字节rn[img=https://img-bbs.csdn.net/upload/201306/03/1370258262_125365.png][/img]rnrn但是我怎么数的是2+20+1+2+4+30=59rn求指教????????????????
求一sql语句,大牛帮忙
有四张表 图片表,教师资料表,视频表 这4张表,以课程表为中心,主键FID 另外三张表中 各有一个字段来关联 课程表 设立外键kcID ,那么我现在删除 课程表的时候,先要检查下另外三个表里([color=#FF0000]也就是已知课程FID,怎么到三张表里去查询,写一个sql语句[/color]) 是否已添加内容,如果其中某张表里添加了内容,那么就不能删除 课程,提示该课程下已存在内容,不能删除。。。。。这个sql语句 该 怎么写呢?谢谢了先rn
新手shell编程求助,大牛们,帮忙看看
shell编程实现当一个文件夹里面增加文件时,就把增加的这个文件复制到另外一个文件夹,新手,没有分,但是希望各位<em>大牛</em>帮<em>帮忙</em>nn
大牛帮忙一个小问题
我在桌面上建了“main.c”“c.h”“c.c”三个文件。rn分别为:rn/*main.c*/rn#include rn#include "c.h"rnint main()rnrn f();rnrnrn/*c.h*/rnvoid f();rnrn/*c.c*/rn#include rn#include "c.h"rnvoid f()rnrn printf("cc.c\n");rnrnrn我用DEV-C++的,编译出错,找不到f引用,小弟我实在不解,<em>问题</em>出在哪呢?rn<em>大牛</em>们帮个小忙啊!!!
大牛帮忙实现一个小功能
有一个层,鼠标拖动层的边框。层随着鼠标变大变小! 在线急等……
大牛帮忙看看这个奇怪的问题
想做个会员卡,类似超市会员卡积分那样,测试的时候发现 卡号 111 等于 0111 或者00111,也就是说前面不管有几个0 都是无效的,这样的话 卡号111的用户 登录后也可以查看到卡号0111的会员信息,这是怎么回事呢?该怎么不让前面的0失效呢?
【文件夹加密】大牛帮忙
想做个文件夹加密软件,功能如下:rn 1 加密后的文件夹需要输入密码才能进入。rn 2 加密后的文件夹被移动到其他电脑输入密码也可以进入,即与加密软件无关了。rn隐藏文件夹那些小伎俩就别说了,最好不用到驱动技术。。。。rn可以的话提供关键API ,或者其他。
IP设置问题大牛们快来帮忙
由于公司有一个IP,我在家也上网也要有一个IP,所以每天上班的第一件事情就是更改我机器的IP,下班回家做的第一件事情也是更改IP,感觉特别烦!曾经听说Windows支持一种功能(好像是profile)来解决这种<em>问题</em>,不知道那位<em>大牛</em>了解,在此先谢谢喽!我的机器是Win XP的。
ASP.NET 求助,大牛帮忙看看
小弟刚学asp.net 我在点击 服务器端按钮之后 执行顺序是 page_load 事件 之后才是按钮事件。这个不太明白!rn小弟认为应该先执行按钮事件 之后服务器有数据返回来之后 重新加载页面 执行page_load事件!rn<em>大牛</em>们,帮帮小弟 解决这个疑惑!
大牛们:关于mysql数据事务处理,感谢帮忙
在利用数据库事务处理会员注册时<em>遇到</em>一个<em>问题</em>。。rn数据库是MYSQL;事务隔离级别是:REPEATABLE READ rnrn假设注册账号为“tmp”rn[color=#FF0000]php代码:[/color]rnrn页面代码:rn$isreg=$user->get_isreg(); //get_isreg()函数主要查询user表,判断有没有name='tmp',如果有则返回false,没有返回true;rnif($isreg)return $user->set_reg();rnrn===========================================================rn调用的方法:rnfunction set_reg()rnrn mysql_query("BEGIN");//开启事务rnrn 插入会员表(); rnrn if(插入是否成功)rnrn rn mysql_query("COMMIT");rn return true;rn rn elsern rn mysql_query("ROLLBACK");rn return false;rn rnrnrnrn=====================================rnrnrn好了<em>问题</em>出来了,假设“插入会员表(); ”这个函数需要执行1分钟才结束(注意:假设)rnA用户申<em>请</em>注册TMP,在8:01分01秒的时候提交了,这时候数据库查询没有,则利用事务执行注册程序。rnB用户也同时申<em>请</em>注册TMP,在8:01分02秒的时候,这时候也去查询了,也没查到(虽然执行了A的注册,但函数需要1分钟时间 所以还没执行完呢),这时候程序就自然而然进行B的注册。rnrn//插入会员表(); 这个函数主要是插入各种表的操作,比如基本信息表,积分表,空间表,好友表,等等等等rnrnrn结果出来了 就是注册了2个名称相同的会员数据。rn总不能在注册的时候锁定会员表吧.rn<em>请</em>问该如何解决这个<em>问题</em>呢,感谢各位rnrn
移植u-boot-2009.11至广嵌GEC2440开发板(摘录)
看了就知道怎么样!<em>移植</em>u-boot-2009.11至广嵌GEC2440<em>开发板</em>
求助,基于Qt的小软件遇到问题大牛们帮帮忙
想直接调用系统自带计算器 用了句 system("calc");rn编译正常 运行时候 弹出计算器同时弹出控制台黑框框,不希望黑框框弹出rn怎么办???
帮忙推荐arm9开发板
要求如下rn1、支持[color=#FF0000]wince6[/color]rn2、带有电话、gprs、短信模块rn3、ARM9 CPUrnrn总的来说就是方便我能用这个<em>开发板</em>进行一款基于wince6平台的手机开发,价格2000以内吧,如果有性价比更好的,价格高一些也可以,谢谢大家了!
大牛指导
[code=c]#include rnusing namespace std;rn#include rnrntypedef int Type;rnrnstruct BiNodernrn Type data;rn BiNode *L,*R;rn;rnrnvoid CreatTree(BiNode *ptr)rn/*ÏÈÐòÊäÈ룬µÝ¹éµ÷ÓÃrn */rnrn Type data;rn cin>>data;rn if(!data)rn ptr=NULL;rn elsern rn ptr=new BiNode;rn if(!ptr)rn exit(0);rn (*ptr).data=data;rn CreatTree((*ptr).L);rn CreatTree((*ptr).R);rn rn // return ptr;rnrnrnrnrnvoid PrePrint(BiNode *ptr)rnrn if(ptr!=NULL)rn rn coutR);rn rnrnrnint main()rnrn BiNode T;rn BiNode *Tptr=&T;rn CreatTree(Tptr);rn// cout<<
Opera11Opera11下载
Opera11Opera11Opera11 相关下载链接:[url=//download.csdn.net/download/alihuahua/3203240?utm_source=bbsseo]//download.csdn.net/download/alihuahua/3203240?utm_source=bbsseo[/url]
3D_PLM技术发展下载
3D-PLM技术发展与设计制造一体化在产品研发中的应用 相关下载链接:[url=//download.csdn.net/download/sakawinki/7654097?utm_source=bbsseo]//download.csdn.net/download/sakawinki/7654097?utm_source=bbsseo[/url]
ViewFlipper+GestureDetector多页面切换下载
ViewFlipper+GestureDetector多页面切换 相关下载链接:[url=//download.csdn.net/download/cuixiaofeng_cc/8115677?utm_source=bbsseo]//download.csdn.net/download/cuixiaofeng_cc/8115677?utm_source=bbsseo[/url]
相关热词 c# login 居中 c# 考试软件 c# 自然语言分析 c# 分段读取文件 c# 泛型反射 c#打断点 c# 时间转多少秒 c# 线程函数加参数 c# modbus 读取 c#查询集合表
我们是很有底线的