自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

helonSY欢迎您的到来!

知识积累的殿堂,有些可能很低级,大家勿见笑,只是方便复制!

  • 博客(59)
  • 资源 (6)
  • 收藏
  • 关注

原创 PostThreadMessage

<br />该函数用于向线程发送消息,对于线程消息,MSG结构体中的hwnd成员为NULL.<br /> <br />Posts a message to the message queue of the specified thread. It returns without waiting for the thread to process the message.

2011-03-31 12:44:00 754

原创 SendMessage和PostMessage

<br />SendMessage将消息直接发送给窗口,并调用该窗口的窗口过程函数进行处理。在窗口过程对消息处理完毕后,该函数才返回(SendMessage发送的消息不进消息队列),PostMessage将消息放入与创建窗口的线程相关的消息队列后立即返回。

2011-03-31 12:42:00 500

原创 PeekMessage和GetMessage

<br />GetMessage从线程的消息队列中取出消息,GetMessage函数只有在接收到WM_QUIT消息时才返回0.<br />从消息队列中获取消息还可以调用PeekMessage函数,该函数的声明如下<br />BOOL PeekMessage(<br />LPMSG lpMsg,// message information<br />HWND hWnd,// handle to window<br />UNIT wMsgFilterMin,// first message<br />UNIT

2011-03-31 12:38:00 548

原创 getch

在window平台下从控制台无回显地取一个字符,在linux下是有回显的。  #include //linux 下  #include //window 平台返回值  从键盘上读取到的字符用 法  int getch(void);  在linux平台下时(即包含的是curses.h),还应该在使用函数之前使用initscr(),使用完毕之后调用endwin().否则得话不需输入就会返回。

2011-03-31 10:00:00 729

原创 bzero

<br />  原型:extern void bzero(void *s, int n);  用法:#include <string.h>  功能:置字节字符串s的前n个字节为零。  说明:bzero无返回值。

2011-03-30 17:23:00 453

原创 C语言连Mysql数据库

<br />见帖子:http://andrew913.javaeye.com/blog/433280

2011-03-30 17:10:00 570

原创 perror

见链接:http://baike.baidu.com/view/1928446.htm

2011-03-30 17:03:00 479

原创 VC++数据库编程:之一

<br />1.在AppWizard低第二步选择 Database view without file support选项。单击Data Source按钮,选中ODBC单选按钮和Dynaset单选按钮。<br />2.将控件绑定响应的成员变量m_pSet->m_ID,m_pSet->m_Name,m_pSet->m_GradYear.注:m_pSet是CMySet的指针,它的父类是CRecordset.CRecordset为记录集类,,是MFC封装的用于处理数据库记录集的类。部分成员如下:MoveFirst

2011-03-30 10:22:00 1629 2

原创 UpDateData

当为TRUE时,其功能是为编辑框中的内容更新成员变量,当为FALSE时,其功能为用成员变量更新编辑框的内容。

2011-03-30 09:53:00 546

原创 英文注释

cluster:集群Interop :互操作  让受管代码对象和非受管对象协同工作的过程称为互用性(interoperability),通常简称为 interop。unmanaged code:非托管代码托管(collocation) 搭配collocat

2011-03-30 08:58:00 1482

原创 ODBC连MySQL实例用法

<br />相见以下链接:http://c.chinaitlab.com/vc/765393_4.html

2011-03-29 17:42:00 857

原创 Transact SQL

<br />占地!

2011-03-29 17:14:00 572

原创 Ansi SQL

<br />占地!

2011-03-29 17:13:00 517

原创 动手写第一个Windows程序

//------------------------------------------------// WinMain.cpp//------------------------------------------------LRESULT CALLBACK WinSunProc( HWND hwnd, // handle to window UNIT uMsg, // message identifier WPARAM wParam, // first mes

2011-03-29 14:46:00 740

原创 _stdcall和cdecl

<br />在函数调用过程中,会使用栈。_stdcall与cdecl是两种不同德函数调用约定,定义了函数参数入栈的顺序,由调用函数还是被调用函数将参数弹出栈,以及产生函数修饰名的方法。对于参数可变的函数,如printf,使用的是_cdecl调用约定,Win32的API函数都遵循_stdcall调用约定。在VC++开发环境中,默认的编译选项是_cdecl,对于那些需要_stdcall调用约定的函数,在声明时必须显示的加上_stdcall。在Windows程序中,回调函数必须遵循_stdcall调用约定,所以我

2011-03-29 09:24:00 600

原创 关于map的使用方法

SErrorCodeMessageContrast arrErrorCodeMessage[]={ {TOA_NOERROR ,"没有错误" }, {TOA_PASSWORD_ERROR ,"用户名密码错误" }, {TOA_NOENOUGHPRI ,"权限不足" }, {TOA_NOINIT ,"没有初始化" }, {TOA_VERSIONNOMATCH ,"版本不匹配" }, {TOA_N

2011-03-28 09:39:00 476

原创 WaitForMultipleObjects

<br />见博客:http://www.cnblogs.com/andyhere/archive/2008/10/20/1314808.html<br /> <br />DWORD WINAPI WaitForMultipleObjects( __in DWORD nCount, __in const HANDLE *lpHandles, __in BOOL bWaitAll, __in DWORD dwMilliseconds);nCount [in] <br />T

2011-03-25 10:15:00 540

原创 WaitForSingleObject

<br />见帖子:http://topic.csdn.net/u/20110324/18/2ec680cc-13a7-4d4f-809e-6530d47bb7f3.html   6楼和8楼。<br /> <br />及<br /> <br />博客:http://www.cnblogs.com/andyhere/archive/2008/10/20/1314803.html

2011-03-25 09:38:00 495

原创 ReleaseSemaphore

BOOL WINAPI ReleaseSemaphore( __in HANDLE hSemaphore, __in LONG lReleaseCount, __out_opt LPLONG lpPreviousCount);hSemaphore [in] <br />A handle to the semaphore object. The CreateSemaphore or OpenSemaphore function returns this hand

2011-03-24 16:06:00 2228

原创 sprintf的转换字符

<br />转换字符<br />  =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-<br /> <br />  %% 印出百分比符号,不转换。<br /> <br />  %c 整数转成对应的 ASCII 字元。<br /> <br />  %d 整数转成十进位。<br /> <br />  %f 倍精确度数字转成浮点数。<br /> <br />  %o 整数转成八进位。<br /> <br />  %s 整数转成字符串。<br /> <br />  %x 整数转成小写十六进位。<br />

2011-03-24 11:15:00 1534

原创 vs2008部分快捷键

ctrl+k/k:设标签和消标签。ctrl+k/p:上一标签。ctrl+k/n:下一标签。ctrl+k/c:注释某一行.可以不选中。ctrl+t:交换某字符和它前面的字符。ctrl+shift+t:调换某一单词和它后面的单词。 注:a = b 则交换a和b,把中间的=去掉了。alt+shift+t交换当前行和它的下一行。ctrl+shift+u:当前字符或选中字符变为大

2011-03-23 18:01:00 2003

原创 char buf[sizeof "0x7fffffff"]

<br />见帖子:http://topic.csdn.net/u/20110322/09/433ce554-a5ee-4e81-bfdf-16e8952eb01d.html<br /> <br />的12楼和14楼。

2011-03-23 17:49:00 778

原创 怎样避免赋值空行

<br />vs2008:<br />工具-》选项-》文本编辑器-》所有语言-》常规-》取消 “没有选定内容时对

2011-03-23 15:56:00 642

原创 .//和..//

<br />见帖子:http://topic.csdn.net/u/20110321/15/c24448bc-af67-436c-bc8e-e247925aba38.html<br /> <br />的3楼。

2011-03-22 16:37:00 439

原创 预处理定义操作符Stringizing Operator (#) ,Charizing Operator (#@), Token-Pasting Operator (##)

<br />引用自:http://pppboy.blog.163.com/blog/static/30203796201011501033268/一、开始<br />前几天看代码,居然出来了“##”这个东东,不知道做什么的,学C++这么长时间了,居然。。。(太不给面子了)<br />本着“先行先赢”的实践学习精神和“为人民服务”的奉献精神,以网上找的很多资料为参考,美美地总结一下,激励自己,启发别人。二、Charizing Operator (#@)1.作用<br />字符化操作符。只能用于有传入参数的宏定

2011-03-21 17:21:00 807

原创 GetPrivateProfileInt

<br />UINT WINAPI GetPrivateProfileInt( __in LPCTSTR lpAppName, __in LPCTSTR lpKeyName, __in INT nDefault, __in LPCTSTR lpFileName);ParameterslpAppName [in] <br />The name of the section in the initialization file.lpKeyName [in] <br />The

2011-03-21 13:55:00 1854

原创 GetModuleFileName

<br />DWORD WINAPI GetModuleFileName( __in_opt HMODULE hModule, __out LPTSTR lpFilename, __in DWORD nSize);<br />Retrieves the fully-qualified path for the file that contains the specified module. The module must have been loaded by th

2011-03-21 13:29:00 666

原创 GetPrivateProfileString

<br />DWORD WINAPI GetPrivateProfileString( __in LPCTSTR lpAppName, __in LPCTSTR lpKeyName, __in LPCTSTR lpDefault, __out LPTSTR lpReturnedString, __in DWORD nSize, __in LPCTSTR lpFileName);ParameterslpAppName [in] <br />The

2011-03-21 11:41:00 1606

原创 strcpy_s

<br />errno_t strcpy_s( char *strDestination, size_t numberOfElements, const char *strSource );strDestination<br />Location of destination string buffernumberOfElements<br />Size of the destination string buffer.strSource<br />Null-terminat

2011-03-21 10:12:00 837

原创 MFC的初始化过程相关类及其成员。

<br />CWnd类:Create(),CreateEX(),PreCreateWindow().<br />CFrameWnd类:Create(),PreCreateWindow().<br /><br />CWinThread类:InitInstance(),Run().<br />CWinApp类:InitInstance(),Run(),InitApplication(),m_pCurrentWinApp,m_pMainWnd.<br />CxxxWinAPP类:InitInstance().<b

2011-03-21 09:22:00 863

原创 怎么让垂直滚动条不往上刷新?

<br />见帖:http://topic.csdn.net/u/20110311/15/bf3269b0-c9df-4320-a22e-36ea753017c9.html<br /> <br />的第二楼和第三楼。

2011-03-18 17:41:00 559

原创 GetLocalTime

<br />void WINAPI GetLocalTime( __out LPSYSTEMTIME lpSystemTime);lpSystemTime [out] <br />A pointer to a SYSTEMTIME structure to receive the current local date and time.Return Value<br />This function does not return a value. Remarks<br />To set the

2011-03-18 14:21:00 529

原创 difftime, _difftime32, _difftime64

<br />double difftime( time_t timer1, time_t timer0 );double _difftime32( __time32_t timer1, __time32_t timer0 );double _difftime64( __time64_t timer1, __time64_t timer0 );timer1<br />Ending time.timer0<br />Beginning t

2011-03-18 14:05:00 1002

原创 _beginthread, _beginthreadex

<br />uintptr_t _beginthread( // NATIVE CODE void( __cdecl *start_address )( void * ), unsigned stack_size, void *arglist );uintptr_t _beginthread( // MANAGED CODE void( __clrcall *start_address )( void * ), unsigned stack_size,

2011-03-18 13:18:00 1133

原创 shutdown

<br />int shutdown( __in SOCKET s, __in int how);Parameterss [in] <br />A descriptor identifying a socket.how [in] <br />A flag that describes what types of operation will no longer be allowed. Possible values for this flag are listed in the Wins

2011-03-18 10:34:00 899

原创 WaitForSingleObject

<br />DWORD WINAPI WaitForSingleObject( __in HANDLE hHandle, __in DWORD dwMilliseconds);ParametershHandle [in] <br />A handle to the object. For a list of the object types whose handles can be specified, see the following Remarks section. <br />I

2011-03-18 09:47:00 624

原创 CreateSemaphore

<br />HANDLE WINAPI CreateSemaphore( __in_opt LPSECURITY_ATTRIBUTES lpSemaphoreAttributes, __in LONG lInitialCount, __in LONG lMaximumCount, __in_opt LPCTSTR lpName); <br />ParameterslpSemaphoreAttributes [in, optional] <br />A

2011-03-17 18:02:00 2125

原创 errno

<br />errno 记录系统的最后一次错误代码,代码是一个int型的值。

2011-03-17 15:02:00 519

原创 fgets

char *fgets( char *str, int num, FILE *stream );函数fgets()从给出的文件流中读取[num - 1]个字符并且把它们转储到str(字符串)中. fgets()在到达行末时停止,在这种情况下,str(字符串)将会被一个新行符结束. 如果fgets()达到[num - 1]个字符或者遇到EOF, str(字符串)将会以null结束.fgets()成功时返回str(字符串),失败时返回NULL.

2011-03-17 14:45:00 566

原创 RightTrim

RightTrim  RightTrim()  功能删除字符串尾部空格。  语法RightTrim ( string )  参数string:string类型,指定要删除右部空格的字符串返回值String。函数执行成功时返回删除了string字符串右部空格的字符串,发生错误时返回空字符串("")。如果任何参数的值为NULL,RightTrim()函数返回NULL。

2011-03-17 14:33:00 679

SecureCRT绿色版

SecureCRT是非长好的远程登录到linux系统的工具,可以在你的windows系统上装上,然后就可以操纵一台远程的linux机器。

2012-02-24

7zip(windows+linux下的压缩包)

7zip是一个从windows上把文件打包成能在linux下解压的压缩包,打包步骤为先打包成 tar 格式,然后再压缩为 gzip 格式

2012-02-24

tinyxml类(windows+linux均可用)

C++读取xml文件的类,另外几个比较好的工具有 libxml2 和 xerces(IBM的一个开源项目发展起来的,现在是JDK的默认实现)

2012-02-24

libxml2.2.7.4.tar.gz

c++读取xml的好工具,移植性比较好,另外还有一个叫tinyxml的也比较好

2012-02-24

libiconv-1.13.1.tar.gz

进行代码格式转化的好工具,不如UTF-8转化到gb2312

2012-02-24

freetds-stable.tgz

freetds是在linux下连接SQLServer的好工具

2012-02-24

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除