- 博客(9)
- 资源 (14)
- 收藏
- 关注
原创 如何监听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
362
原创 如何把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
4062
原创 如何知道应用程序或DLL是x64还是X86
How to know app is X64 or X86overviewwe 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
1047
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
1662
原创 c++17 nodiscard attribute
引用信息C++ attribute: nodiscardC++17新特性个人总结我的理解C++17 添加了这个属性,如果调用者丢弃了函数的返回值,刚好这个函数有nodiscard属性,或则该函数的返回类型是有nodiscard属性的类,枚举等的值类型,则编译器会报 discarding return value of function with ‘nodiscard’ attribute ...
2020-01-12 00:39:23
6977
原创 error C2712: Cannot use __try in functions that require object unwinding
Compile ErrorsErrorerror C2712: Cannot use __try in functions that require object unwinding中文的意思:无法在需要展开对象的函数中使用try//some code like thisvoid testTry(){ std::thread threadA(&function1); //b...
2020-01-11 21:40:50
660
原创 代码规范
学编程的时间也不短了,从开始的懵懵懂懂到现在的出入江湖,自我提升也很大,随着编程能力的提高,另外一个问题也呼之欲出,那就是编程代码规范的问题。想当年只要程序能运行就不错了,然之程序还要些的尽量高效才,如今不仅好高效,而且要把代码写的很漂亮,很规范,易读易懂。 最初知道代码要写规范是我老师说的,他是一个很好的老师,有次上课,他问我们:“你们的程序是写给什么看的?”我们当时大部分人
2009-03-26 22:41:00
401
1
原创 开始之前
申请博客已经N久了,一直不敢自己写,只是这里摘摘,那里抄抄。感觉挺不好意思的。之所以不写是因为水平不够,自己的东西不敢拿出来献丑。可是后来我看了一下浏览量就,才发现我是多么的天真,我不过是宇宙里的一粒沙,谁会在意你的存在,其实就算自己的东西不是很好,也没有关系,因为根本没有人在意你,你也改变不了什么。 想把东西放进博客其实并不是为了什么什么,只是给自己找一个能回忆自己变化的一个地
2009-03-23 12:59:00
467
1
SuperCHM电子文档制作软件
2010-04-23
OGRE API Relference v1.7.0
2010-04-23
智能源码统计专家 3.7
2009-11-09
OpenGL基础.chm中文基础教程电子版
2009-04-25
Opnegl开发库文件
2009-04-17
depends.rar绿色V2.2.6版
2009-04-02
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人