![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
windows API
乔宕一
这个作者很懒,什么都没留下…
展开
-
MFC 创建非模态窗口
在主对话框中点击一下按钮就创建出一个非模态对话框,那么问题来了,再次点击按钮是要再次创建一个非模态对话框出来呢还是不允许创建?只能创建一个代码void CMFCDlgFirstDlg::OnBnClickedButton2(){ BOOL bRet = FALSE; static CFMTDialog* pFMTDlg = NULL; if (!pFMTDlg) { pFMTDlg = new CFMTDialog(); } if (!pFMTDlg->m_hWnd || !原创 2020-07-27 00:01:11 · 1018 阅读 · 0 评论 -
CString 和其他类型字符串的转换
MSDN 链接CString 和其他类型字符串的转换把 CString 赋值给 std::string第一种把 CString 强制转换成 CStringAclass 十进制转二进制{private: unsigned int temp = 0;//临时存放变量的无符号整型,用来给bitset使用public: CString strinput;//用户输入的字符串 CString stroutput;//输出结果的字符串 void 转换();};void 十进制转二进制::原创 2020-07-26 14:29:50 · 289 阅读 · 0 评论 -
GetLogicalDrives
示例#include<windows.h>#include<sstream>#include<atlstr.h>#include<bitset>using namespace std;int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE, PWSTR pCmdLine, int nCmdShow){ DWORD dword = GetLogicalDrives(); stringstream原创 2020-07-21 10:34:54 · 499 阅读 · 0 评论 -
C++输出二进制数
示例#include<windows.h>#include<sstream>#include<atlstr.h>#include<bitset>using namespace std;int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE, PWSTR pCmdLine, int nCmdShow){ DWORD dword = GetLogicalDrives(); stringstream原创 2020-07-21 10:35:09 · 4012 阅读 · 0 评论