上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 77 下一页
摘要: #include "stdafx.h"#include "windows.h"class CLock{private: CRITICAL_SECTION m_section;public: CLock(void) { InitializeCriticalSection(&m_section); } ~CLock(void) { DeleteCriticalSection(&m_section); } void lock() { EnterCriticalSection(&m_section); } void unLock() { 阅读全文
posted @ 2012-12-17 21:41 ahuo 阅读(1129) 评论(0) 推荐(0)
摘要: extern int __argc;extern TCHAR** __argv;修改为:调试,静态库 MFC 应用程序的"调试 Multithreaded"。发行版中,静态库的 MFC 应用程序的"Multithreaded"。 阅读全文
posted @ 2012-12-16 20:15 ahuo 阅读(494) 评论(0) 推荐(0)
摘要: Runtime Library四个选项的含义:(D表示Dll,而d表示debug版本)MT(Multi-threaded):多线程版本MTd(Multi-threaded debug):多线程调试版本MD(Multi-threaded Dll):多线程Dll版本MDd(Multi-threaded debugdebug):多线程调试Dll版本正常情况下,当我们用VC编译出一个Console/Win32类型项目的exe程序时(这里暂不考虑MFC程序),会依赖于msvcrxx.dll文件(xx为不同VC对应的版本号,VC2005为80,VC2008为90,VC2010为100),发布程序的时候,就 阅读全文
posted @ 2012-10-29 14:29 ahuo 阅读(603) 评论(0) 推荐(0)
摘要: http://files.cnblogs.com/ahuo/boost_asio.rar 阅读全文
posted @ 2012-10-08 15:35 ahuo 阅读(147) 评论(0) 推荐(0)
摘要: 1、 Linux中一些头文件的作用:<assert.h>:ANSI C。提供断言,assert(表达式)<glib.h>:GCC。GTK,GNOME的基础库,提供很多有用的函数,如有数据结构操作函数。使用glib只需要包含<glib.h><dirent.h>:GCC。文件夹操作函数。struct dirent,struct DIR,opendir(),closedir(),readdir(),readdir64()等<ctype.h>:ANSI C。字符测试函数。isdigit(),islower()等<errno.h>: 阅读全文
posted @ 2012-09-18 23:51 ahuo 阅读(2119) 评论(0) 推荐(0)
摘要: man -f openopen (3tcl) - 打开基于文件或命令管道的一个通道open (2) - 用来 打开和创建 一个 文件或设备open (n) - Open a file-based or command pipeline channelopen (1) - start a program on a new virtual terminal (VT).man -k openfdopen (3) - 打开流fopen (3) - 打开流freopen (3) - 打开流iconv_open (3) - 分配... 阅读全文
posted @ 2012-09-17 14:38 ahuo 阅读(293) 评论(0) 推荐(0)
摘要: kill -l1) SIGHUP 2) SIGINT 3) SIGQUIT 4) SIGILL 5) SIGTRAP6) SIGABRT 7) SIGBUS 8) SIGFPE 9) SIGKILL 10) SIGUSR111) SIGSEGV 12) SIGUSR2 13) SIGPIPE 14) SIGALRM 15) SIGTERM16) SIGSTKFLT 17) SIGCHLD 18) SIGCONT 19) SIGSTOP 20) SIGTSTP21) SIGTTIN 22) SIGTTOU 23) SIGURG 24) SIGXCPU 25) SIGXFSZ26) ... 阅读全文
posted @ 2012-09-13 10:52 ahuo 阅读(444) 评论(0) 推荐(0)
摘要: 执行命令WSDL http://www.wsdl.com/dddd?wsdl生产对于的C#类文件,加入工程既可以使用 阅读全文
posted @ 2012-09-12 13:46 ahuo 阅读(644) 评论(0) 推荐(0)
摘要: /*server.c*/#include<signal.h>#include<sys/wait.h>#include"inet.h"#include<stdlib.h>intinit_ser(int);intmax(inta,intb){intthemax;if(a>b)themax=a;elsethemax=b;returnthemax;}voidset_name(char*line,char*name){strcpy(name,&line[1]);sprintf(line,"%sjointheroom\n&qu 阅读全文
posted @ 2012-09-05 16:47 ahuo 阅读(2738) 评论(0) 推荐(0)
摘要: 下载地址:http://sourceforge.net/projects/gsoap2官方网站:http://genivia.com/Products/gsoap/index.html工程: http://files.cnblogs.com/ahuo/gsoap.rar生成代码:soapcpp2.exe add.h 阅读全文
posted @ 2012-08-28 18:07 ahuo 阅读(239) 评论(0) 推荐(0)
摘要: ssize_t ret; while(len!=0&&(ret=read(fd,buf,len))!=0){if(ret==-1){if(errno==EINTR)continue;perror("read");break;}len-=ret;buf+=ret;}#include <stdio.h>#include <errno.h>#include <string.h>#include <sys/types.h>#include <fcntl.h>intmain (int argc, char * 阅读全文
posted @ 2012-08-27 16:15 ahuo 阅读(284) 评论(0) 推荐(0)
摘要: ifconfig eth0 ip 更改IP 网关可以用 route命令查看修改添加网关route add default gw 网关地址 删除网关route del default gw 网关地址用这两个命令改`只能保证在电脑开着的时候用` 而且你一重新启动 这俩地址就会还原到以前的`不想还原可以改配置文件网关IP都在 /etc/sysconfig/network-scripts/ifcfg-eth0 这个文件里改 可以永久保存 DNS是在/etc/resolv.conf 这个配置文件里修改 修改后也是永久保存 阅读全文
posted @ 2012-08-27 14:37 ahuo 阅读(256) 评论(0) 推荐(0)
摘要: sudo apt-get install nfs-kernel-server $sudo gedit /etc/exports /home/ *(rw,sync,no_root_squash) /home 192.168.3.0/24(rw,sync,no_root_squash,no_subtre 阅读全文
posted @ 2012-08-27 14:31 ahuo 阅读(172) 评论(0) 推荐(0)
摘要: gdbserverUsage: gdbserver [OPTIONS] COMM PROG [ARGS ...] gdbserver [OPTIONS] --attach COMM PID gdbserver [OPTIONS] --multi COMMCOMM may either be a tty device (for serial debugging), orHOST:PORT to listen for a TCP connection.gdbserver 127.0.0.1:1234gdbtarget remote127.0.0.1:1234 阅读全文
posted @ 2012-08-27 10:59 ahuo 阅读(372) 评论(0) 推荐(0)
摘要: gdb和arm-elf-gdb只是针对的目标平台不一样gdb 是This GDB was configured as "i686-pc-linux-gnu" 本机平台arm-elf-gdb 是This GDB was configured as "--host=i686-pc-linux-gnu --target=arm-elf". 目标平台是 arm-elf的编译命令./configure --target=arm-elfmake 阅读全文
posted @ 2012-08-27 10:39 ahuo 阅读(812) 评论(0) 推荐(0)
上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 77 下一页