首先写一个应用服务器端的jsp程序,用jsp和servlet简单实现,如下图所示package cn.roco.domain;public class News { private Integer id; private String title; private Integer timelength; public News() { } public News(Integer id, String title, Integer timelength) { this.id = id; this.title = title; this.timelength = timelength; } ... Read More
posted @ 2013-04-03 17:06
javawebsoa
Views(271)
Comments(0)
Diggs(0)
在网上看到的,拿来和大家一起讨论下。文中不会逐条的列举Qt和MFC各自的优缺点。我在使用MFC之前就已经使用Qt这个事实可能影响了我的客观性。(MFC效率较高,但大量的Windows API和消息机制使得其较难理解,不易用;QT封装较好,易用且跨平台,但效率较低) 文章从实用主义的观点出发:我的老板给我一份软件的规划说明,并且让我来开发。其中一些我用Qt来开发,而另外一些我使用MFC来开发。 MFC(微软基础类库)是专门为windows设计的一个用于开发图形用户界面的类库。MFC或多或少使用了面向对象的方法包装了Win32的API,正因如此,这些API有时是C++,有时是C,甚至是C和C+.. Read More
posted @ 2013-04-03 17:03
javawebsoa
Views(277)
Comments(0)
Diggs(0)
#include <stdio.h>#include <stdlib.h>#include <string.h>#include <sys/resource.h>#include <signal.h>void sigxcpu_handler(int signum){ printf ("SIGXCPU Received!\n"); //可以在这里就退出进程 exit(1);}void sigkill_handler(int signum){ printf ("SIGKILL received!\n" Read More
posted @ 2013-04-03 16:59
javawebsoa
Views(267)
Comments(0)
Diggs(0)
<Window x:Class="TestOfGridLayout.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="留言板" Height="240" Width="400" MinHeight="200" MaxHeig Read More
posted @ 2013-04-03 16:56
javawebsoa
Views(229)
Comments(0)
Diggs(0)
Static Text用法简介static text是一段不可编辑的文字,主要用来起提示作用.在C#中类似的控件叫Label.如果只是没啥特殊要求,并且内容固定.就简单的在属性窗口中中Caption中输入内容即可.另外在代码中常用到的一些操作如下(假设static text ID为IDC_STATIC_NOTE)直接通过函数操作GetDlgItem(IDC_STATIC_NOTE)->SetWindowText("this is note info"); //动态指定static text显示内容GetDlgItem(IDC_STATIC_NOTE)->Enab Read More
posted @ 2013-04-03 16:52
javawebsoa
Views(413)
Comments(0)
Diggs(0)
2.定义和声明2.1.extern和static关键字在上一节我们把两个程序文件放在一起编译链接,main.c用到的函数push、pop和is_empty由stack.c提供,其实有一点小问题,我们用-Wall选项编译main.c可以看到:$ gcc -c main.c -Wallmain.c: In function ‘main’:main.c:8: warning: implicit declaration of function ‘push’main.c:12: warning: implicit declaration of function ‘is_empty’main.c:13: Read More
posted @ 2013-04-03 16:49
javawebsoa
Views(525)
Comments(0)
Diggs(0)
1. centos 6.4 桌面系统,卸载了自带的java7和不用的其它软件,不带openoffice等办公及娱乐软件,安装后yum update升级系统到最新,安装Qt4编译需要的开发包(参照)2. 安装oracle依赖包yum install kernel-devel kernel-headers binutils-devel dos2unix lrzsz python-devel compat-db compat-gcc-34 compat-gcc-34-c++ compat-libstdc++-33 glibc-devel ksh yum install libaio-devel nu Read More
posted @ 2013-04-03 16:45
javawebsoa
Views(211)
Comments(0)
Diggs(0)
UAG 作为微软的一款的网关类产品,致力于提供内部资源的发布和为外部用户提供内部访问。在众多发布方式中,我们今天介绍一种发布 RemoteAPP。RemoteAPP 是 Windows 2008中的一个概念,当终端用户运行 RemoteAPP 的时候,实际的资源消耗是在远程主机(RDS)上的;由于限制,客户端只能访问远程主机上的特定应用程序,而不是整个远程桌面,这样也很利于管理和安全。UAG 在安装完成后,会集成安装一个 Remote Desktop Gateway Manager 的角色。由于这个角色的安装,UAG 可以对外网的客户端提供 RemoteAPP 的发布。下面让我们来看看如何安装 Read More
posted @ 2013-04-03 16:41
javawebsoa
Views(386)
Comments(0)
Diggs(0)
编者:因为LINUX内核对S3C2440的Host驱动的已经支持,而且支持的外设相当的丰富,所以这一部分只是进行配置就可以使用。因为配置的东西较多,没有给出详细的截图,看手册上介绍的就很明白。需要手册的请留下邮箱索取。1 配置和测试USB 键盘、扫描器和鼠标 在内核源代码目录的终端输入:make menuconfig,依次选择如下子菜单项: Device Drivers ---> [*] HID Devices --->按空格键选中“USB Human Interface Device (full HID) support”,这样就配置好了USB键盘和鼠标项。 提示:这里的配置选项 Read More
posted @ 2013-04-03 16:38
javawebsoa
Views(248)
Comments(0)
Diggs(0)
最近用sql lite数据库,因为数据库版本的问题,导致数据库中的数据表内容不同步,所以需要整合二个数据库中的对应表及其表中数据。现在的思路:打开一个目的库,打开一个源库,因为目的库中的某些表内容和源库的表内容不一致,所以需要把源库中的某些表导入到目的库中,步骤如下:1.通过sql lite打开目的库,然后选中目的库右键,弹出有个date transfer wizard 的菜单,单击后,打开此窗体,里面有二个选项,其中export为导出,import为导入,此时选中import选项。2.选中import选项后,对应下面资源有三个选项。(1)annother sqllite database ( Read More
posted @ 2013-04-03 16:35
javawebsoa
Views(426)
Comments(0)
Diggs(0)

浙公网安备 33010602011771号