try it, then you know it____________just do it , as love easily fade.

一次只有一个目标,步子迈小些,抑制一次实现所有功能的冲动。 过程如何结果就如何,行动是欢喜的,不管是兴奋还是沮丧的情绪都对结果无益。贵在持之以恒

导航

2013年8月4日 #

VC++ CEdit

摘要: CEDIT_1, //selectionpEdit1->SetSel(0,strBuffer-m_strInput,0);pEdit1->SetFocus(); //theselectedwillbehighlighted_2, //commentfilternstrBuffer=m_strInpu... 阅读全文

posted @ 2013-08-04 16:33 吾一 阅读(302) 评论(0) 推荐(0) 编辑

CRC

该文被密码保护。 阅读全文

posted @ 2013-08-04 16:16 吾一 阅读(118) 评论(0) 推荐(0) 编辑

2013年7月29日 #

CString

摘要: ______CString::Left.Return Value: ACStringobject containing a copy of the specified range of characters. Note that the returnedCStringobject may be empty.// example for CString::LeftCString s( _T("abcdef") );ASSERT( s.Left(2) == _T("ab") );//intGetLength()const;The count does not 阅读全文

posted @ 2013-07-29 22:44 吾一 阅读(312) 评论(0) 推荐(0) 编辑

strtok

摘要: 转载,地址在最后strtok的函数原型为char *strtok(char *s, char *delim),功能为“Parse S into tokens separated by characters in DELIM.If S is NULL, the saved pointer in SAV... 阅读全文

posted @ 2013-07-29 22:31 吾一 阅读(772) 评论(0) 推荐(0) 编辑

2013年7月28日 #

sscanf, sspritf

摘要: // crt_sprintf.c// compile with: /W3// This program uses sprintf to format various// data and place them in the string named buffer.#include int main(... 阅读全文

posted @ 2013-07-28 13:18 吾一 阅读(267) 评论(0) 推荐(0) 编辑

problems in c++ 指针等

该文被密码保护。 阅读全文

posted @ 2013-07-28 12:47 吾一 阅读(45) 评论(0) 推荐(0) 编辑

2013年7月27日 #

CString string int char* 转换

摘要: Convert strings to a long-integer value.___longstrtol(constchar*nptr,char**endptr,intbase);nptr: Null-terminated string to convertendptr: Pointer to ... 阅读全文

posted @ 2013-07-27 11:53 吾一 阅读(324) 评论(0) 推荐(0) 编辑

2013年7月15日 #

C 函数 strcpy and memcpy, strdup, memcmp,memset 库函数皆小写

摘要: void*memcpy(void*dst,constvoid*src,size_tn);//If copying takes place between objects that overlap, the behavior is undefined因此标准库提供了地址重叠时的内存拷贝函数:memmo... 阅读全文

posted @ 2013-07-15 14:41 吾一 阅读(352) 评论(0) 推荐(0) 编辑

2013年7月11日 #

VC++ chap19 动态链接库 VC++ 孙鑫

摘要: 19.2win32DLL的创建和使用1.VC++新建Win32Dynamic-LinkLibrary类型的工程,选项anemptydllproject2,添加C++源文件Dll.cpp,编写代码,加法和减法19.2.1Dumpbin命令1,安装目录vc98\bin目录下,执行dumpbin命令。如无法执行,运行vcvars32.bat这个批处理文件,建立环境信息2,如果要查看一个DLL提供的导出函数,使用/exports选项来运行dumpbin命令。在DLL1.dll文件所在目录下,输入下述命令并回车Dumpbin-exportsdll1.dll19.2.2为了让dll导出一些函数,在需要被导 阅读全文

posted @ 2013-07-11 17:32 吾一 阅读(191) 评论(0) 推荐(0) 编辑

VC++ chap12 hook 和 数据库访问

摘要: Lesson20 hook和数据库访问20.1HOOK编程20.1.1基本知识1,将特殊消息屏蔽,安装一个HOOK过程,称为钩子过程。2,操作系统在传递消息时,将我们感兴趣的消息先传递给hook过程,在此函数中进行检查,然后决定是否放行该消息。3,安装钩子过程Setwindowshookex20.1.2进程内钩子1,安装鼠标钩子_1,定义相应的鼠标钩子过程LRESULTCALLBACKMouseProc(intnCode,//hookcodeWPARAMwParam,//messageidentifierLPARAMlParam//mousecoordinates){return1;}_2,在 阅读全文

posted @ 2013-07-11 17:30 吾一 阅读(181) 评论(0) 推荐(0) 编辑

2013年7月10日 #

doing VC++

摘要: 1, when you met strange question , not knowing how it occure, delete the project and restart, because the compiler has problem, they just have problem... 阅读全文

posted @ 2013-07-10 14:03 吾一 阅读(177) 评论(0) 推荐(0) 编辑

2013年7月9日 #

转 vc调试技巧

摘要: VC调试技巧收集整理 调试是一个程序员最基本的技能,其重要性甚至超过学习一门语言。不会调试的程序员就意味着他即使会一门语言,却不能编制出任何好的软件。 这里我简要的根据自己的经验列出调试中比较常用的技巧,希望对大家有用。本文约定,在选择菜单时,通过/表示分级菜单,例如File/Open表示顶级菜单File的子菜单open。 1 设置 为了调试一个程序,首先必须使程序中包含调试信息。一般情况下,一个从AppWizard创建的工程中包含的Debug Configuration自动包含调试信息,但是是不是Debug版本并不是程序包含调试信息的决定因素,程序设计者可以在任意的Con... 阅读全文

posted @ 2013-07-09 17:37 吾一 阅读(572) 评论(0) 推荐(0) 编辑

2013年7月8日 #

vc++ 编译器工具

摘要: 1,在命令行界面下 实现复制 和 粘贴选中数据后,按下回车键即可实现数据的复制功能,单击鼠标右键即可实现数据粘贴功能2,VC++ 建立一个C++工程win32 console application:1,选择建立一个程序。如果建立一个windows程序win32 application(1)Win32 Application就是普通的常见的窗口应用程序,当然有的界面做得比较个性化,比如圆形的、不规则形状的…它们都是所谓的GUI(Graphics User Interface图形用户接口),我们可以通过鼠标点击来完成控制。Win32 Application是为你开发windows应用程序所准备的 阅读全文

posted @ 2013-07-08 21:30 吾一 阅读(469) 评论(0) 推荐(0) 编辑

lesson 17 进程间通信 孙鑫 VC++

摘要: Lesson17进程间通信17.1剪贴板1,建立发送和接收对话框,用于拷贝和粘贴2,拷贝到剪贴板-1,打开剪贴板OpenClipboard();-2,清空剪贴板EmptyClipboard();-3,从堆上分配指定的字帖HGLOBALGlobalAlloc(UINTuFlags,SIZE_TdwBytes);-4,对全局内存加锁,然后返回该对象内存第一个字节的指针LPVOIDGlobalLock(HGLOBALhMem);-5,将数据拷贝到全部内存中Strcpy(pBuf,str);-6对该内存解锁LPVOIDGlobalLock(HGLOBALhMem);-7,向剪贴板中放置数据HANDLE 阅读全文

posted @ 2013-07-08 20:07 吾一 阅读(312) 评论(0) 推荐(0) 编辑

2013年7月7日 #

VC++ msdn

摘要: VC++ msdn 帮助文档网上回答:到微软的网站下载Windows SDK安装就可以了。帮助文件会一起安装在电脑上。直接用在线的http://msdn.microsoft.com/ 阅读全文

posted @ 2013-07-07 20:05 吾一 阅读(278) 评论(0) 推荐(0) 编辑

2013年6月18日 #

VC++ 相关问题

摘要: ——在学习VC++的时候,遇到的错误:LINK : fatal error LNK1168: cannot open Debug/Test.exe for writing解决办法: 打开任务管理器,将test.exe进程杀掉,然后重新编译链接,就可以了——从CDilog中继承下来的类系统都自动生成enum {IDD=IDD_DIALOG1};可是当编译时出现"IDD_DIALOG1未定义"#include"resource.h"——— lesson 17命名管道,创建管道后,会等待连接,服务器端表现的死机状态也是正常,此时在客户端连接管道_______V 阅读全文

posted @ 2013-06-18 08:56 吾一 阅读(211) 评论(0) 推荐(0) 编辑

2013年6月12日 #

转vc++ 类自己消失

摘要: http://blog.csdn.net/liulina603/article/details/76405111、软件的bug方法一、左边类消失的话,可以在文件视图里面选择打开这个类的头文件,然后在头文件里的代码上,打几个空格,再删除掉,然后左边就显示出来了。C++犯这样的低级问题实在是...方法二、先把VC关掉。然后把该工程中扩展名为.ncb的文件删掉或删除.clw文件。再打开VC,就可以了。方法三、 我们首先假设CMyClass这个类无法在ClassView中显示。解决方法如下: 1、切换到FileView视图中,并在Header Files结点下找到MyClass.h文件,双击打开该文件 阅读全文

posted @ 2013-06-12 20:07 吾一 阅读(212) 评论(0) 推荐(0) 编辑

2013年5月22日 #

转 中断和事件

摘要: 这张图是一条外部中断线或外部事件线的示意图,图中信号线上划有一条斜线,旁边标志19字样的注释,表示这样的线路共有19套.图中的蓝色虚线箭头,标出了外部中断信号的传输路径,首先外部信号从编号1的芯片管脚进入,经过编号2的边沿检测电路,通过编号3的或门进入中断挂起请求寄存器,最后经过编号4的与门输出到NVIC中断检测电路,这个边沿检测电路受上升沿或下降沿选择寄存器控制,用户可以使用这两个寄存器控制需要哪一个边沿产生中断,因为选择上升沿或下降沿是分别受2个平行的寄存器控制,所以用户可以同时选择上升沿或下降沿,而如果只有一个寄存器控制,那么只能选择一个边沿了.按下来是编号3的或门,这个或门的另一个输入 阅读全文

posted @ 2013-05-22 09:29 吾一 阅读(143) 评论(0) 推荐(0) 编辑

2013年4月22日 #

c 输入输出

摘要: __________输出字符串char str[]="two"; //orchar *str = "two";puts(str); //orprintf("%s",str);__wrong:-------char **str = "two";printf("%s",*str);_______... 阅读全文

posted @ 2013-04-22 10:37 吾一 阅读(199) 评论(0) 推荐(0) 编辑

2013年4月18日 #

getch, getche, getchar 转

摘要: (1) getch()和getche()函数 这两个函数都是从键盘上读入一个字符。其调用格式为: getch(); getche(); 两者的区别是: getch()函数不将读入的字符回显在显示屏幕上, 而getche()函数却将读入的字符回显到显示屏幕上。 例1: #include<stdio.h> main() { char c, ch; c=getch(); /*从键盘上读入一个字符不回显送给字符变量c*/ putchar(c); /*输出该字符*/ ch=getche(); /*从键盘上带回显的读入一个字符送给字符变量ch*/ putchar(ch); } 利用回显和不回显 阅读全文

posted @ 2013-04-18 21:38 吾一 阅读(145) 评论(0) 推荐(0) 编辑

2013年3月24日 #

chap14 c++

摘要: 输出操作符//output operator redefinedostream& operator> (istream& in, Sales_item& si){ in >> si.isbn >> si.units_sold; //check that the inputs succee... 阅读全文

posted @ 2013-03-24 23:18 吾一 阅读(161) 评论(0) 推荐(0) 编辑

转义字符 / ascll表

摘要: 所有的ASCII码都可以用“\”加数字(一般是8进制数字)来表示。而C中定义了一些字母前加"\"来表示常见的那些不能显示的ASCII字符,如\0,\t,\n等,就称为转义字符,因为后面的字符,都不是它本来的ASCII字符意思了。 转义字符 意义 ASCII码值(十进制) \a 响铃(BEL) 007 \b 退格(BS) 008 \f 换页(FF) 012 \n 换行(LF) 010 \r 回车(CR) 013 \t 水平制表(HT) 009 \v 垂直制表(VT) 011 \\ 反斜杠 092 \? 问号字符 063 \' 单引号字符 039 \"... 阅读全文

posted @ 2013-03-24 22:55 吾一 阅读(1485) 评论(0) 推荐(0) 编辑

2013年3月23日 #

c++ 输入流

摘要: open fileifstream in;in.open("input.txt"); //parameter is uchar*! just correspond with the main parameter, argv[1].ifstream& openFile(ifstream& inf, const char* pN){ inf.close(); //close flow inf.clear(); //clear any existing error //combine inf and file, open file. inf.op... 阅读全文

posted @ 2013-03-23 20:08 吾一 阅读(257) 评论(0) 推荐(0) 编辑

const_cast/常量表达式视为宏

摘要: #include int main(int argc, char* argv[]) { const int ic = 100; // 编译期间的常量,没有地址,类似于C中的#define const int *pc=&ic; // 分配内存. const_cast(i... 阅读全文

posted @ 2013-03-23 19:20 吾一 阅读(252) 评论(0) 推荐(0) 编辑

2013年3月20日 #

程序的编写/数据结构和操作/容器的应用/查询程序

摘要: 容器的综合应用:文本查询程序该程序将读取用户指定的任意文本文件,然后允许用户从该文件中查找单词。查询的结果是该单词出现的次数,并列出每次出现的行。如果某单词在同一行多次出现,程序将只显示该行一次。行号按升序显示。设计程序的一个良好习惯是首先将程序所涉及的操作列出来。明确需要提供的操作有助于建立需要的... 阅读全文

posted @ 2013-03-20 17:01 吾一 阅读(298) 评论(0) 推荐(0) 编辑

2013年3月19日 #

库函数, string , integer to char

摘要: #include //use of itoa: integer to char//puts output char* //convert string to char* //string name with accumulated acount.string sName = "book-";int ... 阅读全文

posted @ 2013-03-19 20:24 吾一 阅读(183) 评论(0) 推荐(0) 编辑

C C++ 数字转化为字符串的库函数

摘要: 1、itoa 功 能:把一整数转换为字符串 用 法:char *itoa(int value, char *string, int radix); 详细解释:itoa是英文integer to array(将int整型数转化为一个字符串,并将值保存在数组string中)的缩写. 参数: value: 待转化的整数。 radix: 是基数的意思,即先将value转化为radix进制的数,范围介于2-36,比如10表示10进制,16表示16进制。 * string: 保存转换后得到的字符串。 返回值: char * : 指向生成的字符串, 同*string。 备注:该函数的头... 阅读全文

posted @ 2013-03-19 14:22 吾一 阅读(1753) 评论(0) 推荐(0) 编辑

2013年3月15日 #

R8应用摘记

摘要: 1.变量,内存,存储空间ResaseRAMAUTO变量只是动态分配存储空间而已,硬件不帮你做清零的事所以,局部变量需要自己做清零处理。仿真时,不要用看门狗,否则设置断点时CPU一直复位。所以仿真时要对程序进行修改,#ifdefine或者#if3问题:当基于瑞萨M16C,R8C系列微控制器进行C语言应用程序设计时,如果在子函数中定义的变量超过255个字节,程序编译出错。分析:针对这种情况,问题的主要原因是子函数中定义的变量在函数调用时都是保存在堆栈中,而NC30编译器默认设置的在函数调用时使用的堆栈大上限为255个字节,因此,当子函数中定义超过255个字节的变量时,编译会出错。解决:基于上述分析 阅读全文

posted @ 2013-03-15 16:19 吾一 阅读(716) 评论(0) 推荐(0) 编辑

R8记录

摘要: ——When do initiation for mcu module,must disable interrupt flag. ——When change interrupt control register, must according the code guild in the spec.t 阅读全文

posted @ 2013-03-15 16:03 吾一 阅读(194) 评论(0) 推荐(0) 编辑

2013年3月6日 #

鹦鹉辞典去广告

摘要: http://www.enkoo.net/lingoes-no-ad.htmlI hope it works 阅读全文

posted @ 2013-03-06 13:43 吾一 阅读(124) 评论(0) 推荐(0) 编辑

2013年3月1日 #

c++ learning

摘要: Obviously, C++ is very complex. Obviously, people get lost. However, most peple get lost when they get diverted into becoming language lawyers rather ... 阅读全文

posted @ 2013-03-01 15:55 吾一 阅读(195) 评论(0) 推荐(0) 编辑

2013年2月18日 #

读编程语言的书

该文被密码保护。 阅读全文

posted @ 2013-02-18 17:54 吾一 阅读(31) 评论(0) 推荐(0) 编辑

2013年2月14日 #

notepad change background color

摘要: so annoying, picture can not be uploded or pasted set ->language format setting setting -> preferences -> backup/auto-completion 85,123,205 阅读全文

posted @ 2013-02-14 00:08 吾一 阅读(223) 评论(0) 推荐(0) 编辑

2013年2月11日 #

time and task manage in coding

摘要: You aren’t able to judge the business value of any programming task.related to previous issue--many tachnically strong developers fail to reallize the... 阅读全文

posted @ 2013-02-11 11:56 吾一 阅读(169) 评论(0) 推荐(0) 编辑

2013年2月8日 #

make_tutorial and from last artical cygwin

摘要: make tutorialhttp://mrbook.org/tutorials/make/If you have several makefiles, then you can execute them with the command:make -f MyMakefilecompile related artical ,include makehttp://www3.ntu.edu.sg/home/ehchua/programming/cpp/gcc_make.html2.GNU MakeThe "make" utility automates the mundane 阅读全文

posted @ 2013-02-08 22:31 吾一 阅读(201) 评论(0) 推荐(0) 编辑

cygwin Mingw

摘要: cygwin is a unix-like enviroment and command-line interface for microsoft windows.cygwin is huge and includes most of the Unix tools and utilities. It... 阅读全文

posted @ 2013-02-08 14:19 吾一 阅读(295) 评论(0) 推荐(0) 编辑

2013年2月1日 #

添加右键命令窗口 转

摘要: 直接用这个reg注册表文件:新建记事本,复制如下内容,保存为cmdhere.reg文件,然后双击运行。REGEDIT4[HKEY_CLASSES_ROOT\Directory\shell\DosHere]@="Command &Prompt Here"[HKEY_CLASSES_ROOT\Directory\shell\DosHere\command]@="C:\\WINDOWS\\System32\\cmd.exe /k cd \"%1\""[HKEY_CLASSES_ROOT\Drive\shell\DosHere]@=& 阅读全文

posted @ 2013-02-01 15:14 吾一 阅读(131) 评论(0) 推荐(0) 编辑

2013年1月28日 #

viso tips

摘要: 1, default font sizetools->option->advancedset in developer mode.....currently it works, it later want to figure it out, below are some linkshttp://social.technet.microsoft.com/Forums/en-US/visiogeneral/thread/0e79f02c-071e-47c7-b3da-2b3319228a39/http://www.visguy.com/2008/08/04/top-9-reasons- 阅读全文

posted @ 2013-01-28 14:55 吾一 阅读(137) 评论(0) 推荐(0) 编辑

visio_create layers

摘要: When working on a diagram in Visio the use of layers can be a boon. For example, intrusive shapes can be hidden to free up space to work in and different segments of a flowchart can be colour coded for effect. Here are some basic guidelines for working with layers.When creating a diagram or drawing 阅读全文

posted @ 2013-01-28 14:40 吾一 阅读(234) 评论(0) 推荐(0) 编辑

2013年1月15日 #

生成随机数 random value generation

摘要: 下面给出了生成随机数的函数应用,但光知道怎么用,应用中还是会出问题。知道为什么可以用,知道它是怎么来得更重要。就像数学公式,理解它的原理比用它更重要。The C programming language 会讲得比较彻底一些,告诉你它是怎么来的。 the standard libary include 阅读全文

posted @ 2013-01-15 20:39 吾一 阅读(316) 评论(0) 推荐(0) 编辑