上一页 1 ··· 3 4 5 6 7 8 9 10 下一页
摘要: http://blog.csdn.net/qiuchenl/article/details/7774641在编写windows程序时,很多时候要用到播放音乐的函数,而windows下就提供了一个函数PlaySound首先说下这个函数的使用范围,PlaySound函数用于播放一个音频文件,且这个文件时... 阅读全文
posted @ 2015-04-27 19:00 Lthis 阅读(2100) 评论(0) 推荐(0) 编辑
摘要: 转自http://www.cnblogs.com/rosesmall/archive/2012/09/12/2681897.html::WritePrivateProfileString( _T("Options"), _T("Name"), m_strName, pApp->m_szIni );I... 阅读全文
posted @ 2015-04-27 12:56 Lthis 阅读(6117) 评论(0) 推荐(0) 编辑
摘要: 先贴代码(小数点后6位) vc6.0测试#include "stdafx.h"#include #include int main(int argc, char* argv[]){ double d = 0.0; int nCount = 0; srand((int)time(0)... 阅读全文
posted @ 2015-04-18 20:18 Lthis 阅读(12112) 评论(0) 推荐(0) 编辑
摘要: 头文件#pragma once#include #include #include class CLoadNtDriver{public: CLoadNtDriver(); ~CLoadNtDriver(); BOOL pathIsFile(CString strPath); ... 阅读全文
posted @ 2015-03-23 21:35 Lthis 阅读(629) 评论(0) 推荐(0) 编辑
摘要: void showErrorInfo(UINT nErrCode, UINT nLine, LPCTSTR lpFuncName, UINT nType);/**************************************************************** // Fun... 阅读全文
posted @ 2015-03-23 21:14 Lthis 阅读(327) 评论(0) 推荐(0) 编辑
摘要: VS2013下测试// conselTest.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include int _tmain(int argc, _TCHAR* argv[]){ printf_s("行号:%d\n函数名:%s\n文件名:%s\n", ... 阅读全文
posted @ 2015-03-23 20:03 Lthis 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 一般来说,一个控件可以绑定两个变量。1.控件变量 2.常规变量所谓常规变量就是常用的int long DWORD CString等下面以Edit控件为例进行手动绑定操作一、绑定控件变量//1.头文件中 CEdit m_edtPath;//2.源文件中void CxxxxDlg::... 阅读全文
posted @ 2015-03-23 16:11 Lthis 阅读(838) 评论(0) 推荐(0) 编辑
摘要: ON_MESSAGE响应的是自定义消息,有关自定义消息的处理请看如下步骤:1.定义消息:在CCDlg类的头文件中加入如下代码: #define WM_CUSTOMIZE WM_USER+1 头文件中加入Customize的声明: afx_msg LRESULT Customize(WPARAM wP... 阅读全文
posted @ 2015-03-18 17:45 Lthis 阅读(1002) 评论(0) 推荐(0) 编辑
摘要: ON_COMMAND 是菜单和工具栏项处理消息的宏 ON_MESSAGE 是处理自定义消息的宏ON_NOTIFY 是控件向其父窗口发送消息处理的宏对这几个消息的理解要先了解一下Window消息的背景。在Windows3.1里,控件会将mouse, keybord等等的消息通知它的父窗口, 使用的消... 阅读全文
posted @ 2015-03-18 17:41 Lthis 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2015-03-15 17:36 Lthis 阅读(163) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 下一页