c/c++
shongbee2
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
如何监听OutputDebugString
代码 #include <iostream> #include <io.h> #include <fcntl.h> #include <process.h> #include <Windows.h> #include<thread> #include <windows.h> #include <atlbase...原创 2020-01-16 00:13:13 · 467 阅读 · 0 评论 -
如何把std::cout标准输出重定向到vs2019的输出窗口中
代码 #include <iostream> #include <io.h> #include <fcntl.h> #include <process.h> #include <Windows.h> #include<thread> int pipeHandles[2]; const int kBufferSize = 4...原创 2020-01-14 23:23:47 · 4261 阅读 · 0 评论 -
vs 2017 保存文件 utf8
vs 2017 保存文件 utf8 原创 ...转载 2020-01-12 18:18:48 · 426 阅读 · 1 评论 -
如何知道应用程序或DLL是x64还是X86
How to know app is X64 or X86 overview we can’t get the platform information through the app properties, but if the platform is not compatible, the app will occur error, especial load not compatible d...原创 2020-01-12 17:47:24 · 1265 阅读 · 2 评论 -
如何在WinMain入口下创建控制台窗口
创建控制台窗口 #include<windows.h> #include<iostream> int WINAPI WinMain(HINSTANCE , HINSTANCE, LPSTR, int nCmdShow) { AllocConsole(); //create console SetConsoleTitle(L"SHMRenderDebugC...原创 2020-01-12 12:08:31 · 1761 阅读 · 0 评论 -
c++17 nodiscard attribute
引用信息 C++ attribute: nodiscard C++17新特性个人总结 我的理解 C++17 添加了这个属性,如果调用者丢弃了函数的返回值,刚好这个函数有nodiscard属性,或则该函数的返回类型是有nodiscard属性的类,枚举等的值类型,则编译器会报 discarding return value of function with ‘nodiscard’ attribute ...原创 2020-01-12 00:39:23 · 7154 阅读 · 0 评论 -
error C2712: Cannot use __try in functions that require object unwinding
Compile Errors Error error C2712: Cannot use __try in functions that require object unwinding 中文的意思:无法在需要展开对象的函数中使用try //some code like this void testTry() { std::thread threadA(&function1); //b...原创 2020-01-11 21:40:50 · 814 阅读 · 0 评论
分享