摘要:
1、把要移植的项目加入到要移植到的工程中。 2、在移植和被移植的两个项目资源之间ctrl + C 、V。 3、把加入进来的项目卸载掉。 阅读全文
posted @ 2022-07-23 16:39
香菇0_0
阅读(36)
评论(0)
推荐(0)
摘要:
// 自毁程序.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include "Windows.h"#include char *GetExeName(){ //获取应用程序目录 char szapipa... 阅读全文
posted @ 2022-07-23 16:39
香菇0_0
阅读(186)
评论(0)
推荐(0)
摘要:
通过添加这句设置默认后缀解决该问题。 cFilePath.m_ofn.lpstrDefExt = L"xlsx"; 阅读全文
posted @ 2022-07-23 16:39
香菇0_0
阅读(45)
评论(0)
推荐(0)
摘要:
经过测试,使用DestroyWindow和CloseWindow会出现重复执行Init和缩小等问题,使用EndDialog即可正常关闭窗口。 EndDialog函数参数可填ID: #define IDOK 1 #define ID... 阅读全文
posted @ 2022-07-23 16:39
香菇0_0
阅读(199)
评论(0)
推荐(0)
摘要:
void CBwGridPanel::CreateToolBar(){ CRect rect; GetWindowRect(rect); CRect rectTool; rectTool.top = 5; rectTool.left = 5; rectTool... 阅读全文
posted @ 2022-07-23 16:39
香菇0_0
阅读(60)
评论(0)
推荐(0)
摘要:
假设楼梯有n阶,每次可以爬1或2个台阶,求到达楼顶的方法总数? 假设f(n)为n阶楼梯的爬楼方法总数,则有: 很多题解都是假设爬到最后还剩1或2个台阶,然后将这两种情况累加起来,得到的结果就是最后的方法总数,我感觉这比较难以理解,总认为前面爬楼方法会有重复的... 阅读全文
posted @ 2022-07-23 16:39
香菇0_0
阅读(60)
评论(0)
推荐(0)
摘要:
InitializeCriticalSection(§ion); // 初始化临界量EnterCriticalSection(§ion); // 进入临界区LeaveCriticalSection(§ion); // 离开临界区 ... 阅读全文
posted @ 2022-07-23 16:39
香菇0_0
阅读(90)
评论(0)
推荐(0)
摘要:
// i++和++i的原理int i_plus_plus(int &i){ int nTemp = i; i = i + 1; return nTemp;}int plus_plus_i(int &i){ i = i + 1; return i;} 使用i++... 阅读全文
posted @ 2022-07-23 16:39
香菇0_0
阅读(30)
评论(0)
推荐(0)
摘要:
void TraverseDir( CString strDir, CAtlArray& arrFilePaths){ HANDLE hFile; if (!DataConvert::StringEqual(strDir.Right(1), _T(... 阅读全文
posted @ 2022-07-23 16:39
香菇0_0
阅读(89)
评论(0)
推荐(0)
摘要:
用 ifstream 或 ofstream 打开带有中文路径的文件会失败。 主要问题在于系统语言环境,解决办法如下: std::locale loc = std::locale::global(std::locale(""));//设置全局locale为本地环... 阅读全文
posted @ 2022-07-23 16:39
香菇0_0
阅读(324)
评论(0)
推荐(0)

浙公网安备 33010602011771号