大约有 5,240 项符合查询结果(耗时:0.0163秒) [XML]

https://www.tsingfun.com/it/cpp/1517.html 

sndPlaySound, SND_ASYNC 头文件 - C/C++ - 清泛网 - 专注C/C++及内核技术

sndPlaySound, SND_ASYNC 头文件#include <mmsystem.h>#pragma comment(lib, "winmm.lib")#include <mmsystem.h> #pragma comment(lib, "winmm.lib")sndPlaySound SND_ASYNC 头文件
https://www.tsingfun.com/it/cpp/1525.html 

XXX.cc:100: error: ‘::strerror’ has not been declared - C/C++ - 清泛网 - 专注C/C++及内核技术

XXX.cc:100: error: ‘::strerror’ has not been declared#include <string.h>解决。#include <string.h> 解决。strerror
https://www.tsingfun.com/it/cpp/1553.html 

CStringArray头文件 - C/C++ - 清泛网 - 专注C/C++及内核技术

CStringArray头文件#include <afxwin.h>#include <afxwin.h> CStringArray 头文件
https://www.tsingfun.com/it/cpp/1560.html 

获取控件的值的几种方法总结 - C/C++ - 清泛网 - 专注C/C++及内核技术

...gItemText(IDC_EDIT_TEST, str);int d=atoi(str.GetBuffer(0));更优雅的:.h:int m_editTest;.cpp:v...最简单直观的: CString str; GetDlgItemText(IDC_EDIT_TEST, str); int d=atoi(str.GetBuffer(0)); 更优雅的: .h:int m_editTest; .cpp: void CxxDlg::DoDataExchange(CDataExcha...
https://www.tsingfun.com/it/cpp/1561.html 

DoModal() 不显示的问题总结 - C/C++ - 清泛网 - 专注C/C++及内核技术

...情况一般是.rc资源文件的问题导致。1、核对一下resource.h,本...int nResponse = dlg.DoModal();对话框窗口不显示,返回值为-1。 出现这种情况一般是.rc资源文件的问题导致。 1、核对一下resource.h,本工程里面有两个,对于同一个宏 #...
https://www.tsingfun.com/it/cpp/1562.html 

warning RC2182: duplicate dialog control ID 1002 - C/C++ - 清泛网 - 专注C/C++及内核技术

...2),与其他的控件ID值一样,发生冲突了。解决:resource.h中将值一样的控件ID改为不同的值。原因:报错行的控件ID值(这里是1002),与其他的控件ID值一样,发生冲突了。 解决:resource.h中将值一样的控件ID改为不同的值。RC218...
https://www.tsingfun.com/it/cpp/1563.html 

mfc spin control 用法 - C/C++ - 清泛网 - 专注C/C++及内核技术

...法BEGIN_MESSAGE_MAP(CxxDlg, CDialogEx) ON_NOTIFY(UDN_DELTAPOS, IDC_SPIN_CHG, &CxxDlg::OnDeltaposSpinChg)END_MESSAGE_MAP().h:a...BEGIN_MESSAGE_MAP(CxxDlg, CDialogEx) ON_NOTIFY(UDN_DELTAPOS, IDC_SPIN_CHG, &CxxDlg::OnDeltaposSpinChg) END_MESSAGE_MAP() .h:afx_msg void OnDeltaposSpinCh...
https://www.tsingfun.com/it/cpp/1583.html 

mfc 按钮变成了非xp风格、界面变成windows经典样式的原因总结 - C/C++ - 清...

...xp风格:  非xp风格          xp风格stdafx.h中添加:#ifdef _UNICODE#if defined _M_IX86#pragma co...首先看一下xp风格与非xp风格:   非xp风格          xp风格 stdafx.h中添加: #ifdef _UNICODE #if defined _M_IX86 ...
https://www.tsingfun.com/it/cpp/1605.html 

MFC 菜单背景色设置(菜单重绘) - C/C++ - 清泛网 - 专注C/C++及内核技术

...制菜单项,填充背景颜色。 MyMenu类中绘制代码: //.h virtual void DrawItem( LPDRAWITEMSTRUCT lpStruct ); //重绘菜单项 ... //.cpp void CIconMenu::DrawItem( LPDRAWITEMSTRUCT lpStruct ) { if (lpStruct->CtlType==ODT_MENU) { if(lpStruct->itemData == NULL) ret...
https://www.tsingfun.com/it/cpp/1902.html 

c++文件流基本用法(ifstream, ostream,fstream) - C/C++ - 清泛网 - 专注C/C++及内核技术

...文本文件。否则会报错。 例一: 写文件 #include <fstream.h> void main { ofstream file; file.open("file.txt"); file<<"Hello file/n"<<75; file.close(); } 例二: 读文件 #include <fstream.h> void main { ifstream file; char output[100]; int x...