大约有 61 项符合查询结果(耗时:0.0026秒) [XML]

https://bbs.tsingfun.com/thread-748-1-1.html 

MFC中主窗口和子窗口的菜单问题,如何统一显示MDI主窗体菜单? - C++ UI - ...

引用: 在   MDI   应用程序中,每一个子窗体的菜单都显示在   MDI   窗体上,而不是在子窗体本身。当子窗体有焦点时,该子窗体的菜单(如果有的话)就代替菜单栏上的   MDI   窗体的...
https://bbs.tsingfun.com/thread-837-1-1.html 

CListCtrl 扩展风格设置方法:SetExtendedStyle和ModifyStyleEx 区别 - C++...

对于初学者来说,当他需要设定listctrl的扩展风格时,常常想到用ModifyStyleEx 来设定,代码如下:ModifyStyleEx(0,LVS_EX_GRIDLINES)   这是不正确的,正确的设定应该是:SetExtendedStyle(LVS_EX_GRIDLINES)   那么,ModifyStyleEx和S...
https://bbs.tsingfun.com/thread-836-1-1.html 

MFC 设置控件字体,颜色,大小,粗体,下划线等 - C++ UI - 清泛IT社区,为...

参考代码:代码:CFont *f = new CFont; f->CreateFont(16, // nHeight                 0, // nWidth                 0, // nEscapement             &nbsp...
https://bbs.tsingfun.com/thread-805-1-1.html 

c++ boost::multi_index composite keys efficiency - c++1y / stl - 清泛IT社区,为创新赋能!

...tainer stuff and have a rather in-depth question that hopefully a boost or C++ container expert might know (my knowledge in C++ containers is pretty basic). For reference, the boost documentation on composite keys can be found here: boost::multi_index composite keys.When using a composite key, the d...
https://bbs.tsingfun.com/thread-782-1-1.html 

VC/Linux C++ 递归访问目录下所有文件 - c++1y / stl - 清泛IT社区,为创新赋能!

...break;     }     FindClose(hFind); }复制代码 Linux C++实例如下: #include <dirent.h> #include <iostream> #include <cstdlib> #include <cstring> using namespace std; void GetFileInDir(string dirName) {     DIR* Dir = NULL;     st...
https://bbs.tsingfun.com/thread-830-1-1.html 

c++ 代码提升权限,请求管理员身份运行权限 - 脚本技术 - 清泛IT社区,为创...

普通的启动一个程序使用CreateProcess函数,有时会遇到权限不足失败的情况,那么如何提升执行权限呢? 使用 ShellExecuteEx 函数: // ------提升权限------         // Initialize the structure.        &...
https://bbs.tsingfun.com/thread-774-1-1.html 

c++ boost库 序列化与反序列化 - c++1y / stl - 清泛IT社区,为创新赋能!

1、定义类/结构体序列化函数: template <typename Archive> void serialize(Archive& ar, TOrder & obj, const unsigned int version = SERIALIZATION_VERSION) {         ar & BOOST_SERIALIZATION_NVP(obj.Param)        ...
https://bbs.tsingfun.com/thread-829-1-1.html 

c++ 代码调用nsis安装包实现静默安装 - 脚本技术 - 清泛IT社区,为创新赋能!

TCHAR szCurPath[MAX_PATH] = {0}; GetCurrentDirectory(MAX_PATH, szCurPath); TCHAR szFile[MAX_PATH] = {0}; _stprintf_s(szFile, MAX_PATH, _T("%s\\setup.exe"), szCurPath); CString szPath = szFile; CString szCmdline = _T(""); CString szWorking; szWorking = szPath.Mid( 0, szPath.Reve...
https://bbs.tsingfun.com/thread-1477-1-1.html 

Personal Image Classifier (PIC) 拓展:自行训练AI图像识别模型,开发图像...

...AI的基础技术细节不在本文讨论范围。我们都知道,人工智能AI的基本原理是事先准备好样本数据(这里指的是图片)及数据的标注信息(如图片中的人物是高兴、愤怒、哭泣等图片的判定信息),通过AI算法的训练,对输入的样...
https://bbs.tsingfun.com/thread-705-1-1.html 

stdbool.h C99标准杂谈 - c++1y / stl - 清泛IT社区,为创新赋能!

include <stdbool.h> 找不到头文件??? bool 是C++中的关键字,C中不支持 所以C99标准中引入了头文件 stdbool.h,包含了四个用于布尔型的预定义宏: #define true 1 #define false 0 #define bool _Bool typdef int _Bool 但是很遗憾,Visual C++...