关于 C++中new背后的行为, 以前已经写过一篇了 理解C++中new背后的行为, 但是里面也只是泛泛而谈,没有真凭实据, 下面我们从汇编的角度看C++编译器究竟在背后干了什么? 我们的代码很简单, 如下: #include <iostream> class A { public: virtual Read More
posted @ 2017-08-26 09:38
findumars
Views(899)
Comments(0)
Diggs(0)
http://www.cnblogs.com/-wang-cheng/p/4973021.html 1.一般我们的事件循环都是由exec()来开启的,例如下面的例子: 这些都开启了事件循环,事件循环首先是一个无限“循环”,程序在exec()里面无限循环,能让跟在exec()后面的代码得不到运行机会, Read More
posted @ 2017-08-26 08:26
findumars
Views(3797)
Comments(0)
Diggs(0)
From Qt 5.10 on, there is a new way how to start detached processes with QProcess. Of course you know this, but let me quickly repeat what a detached Read More
posted @ 2017-08-26 08:17
findumars
Views(3213)
Comments(0)
Diggs(0)
开发网站,少不了测试。现在的网站为了加强安全性,都启用了HTTPS协议。所谓HTTPS,也就是HTTP文本在SSL协议中传输。用curl命令行来测试HTTPS站点是个很有用的功能,写点脚本,就可以做功能测试。 假定Ubuntu系统运行着一个HTTPS站点,用CppCMS编写,Nginx配置了SSL证 Read More
posted @ 2017-08-26 07:54
findumars
Views(5106)
Comments(0)
Diggs(0)
查看静态库.a文件包含的内容用下面的命令解压: [plain] view plain copy print? ar x libgdal.a [plain] view plain copy print? [plain] view plain copy print? 然后就可以查看文件了: [plain Read More
posted @ 2017-08-26 07:51
findumars
Views(18351)
Comments(0)
Diggs(1)
紧接前文,第一行cl命令如下: [plain] view plain copy print? 1> cl /c /IC:\...\include /ZI /nologo- /W3 /WX- /sdl /Od /Oy- /D WIN32 /D _DEBUG /D _CONSOLE /D _UNICOD Read More
posted @ 2017-08-26 07:43
findumars
Views(6271)
Comments(0)
Diggs(0)
Ubuntu 15.04已经可以直接通过apt-get insall 安装clang 3.6, 并且预装的gcc版本是4.9.2。这些安装过程在这里介绍。 首先下载boost源码 [plain] view plain copy print? wget -O boost.1.59.tar.bz2 ht Read More
posted @ 2017-08-26 07:43
findumars
Views(427)
Comments(0)
Diggs(0)
http://blog.csdn.net/csfreebird/article/details/10105681 dumpbin /HEADERS gdal18.dll(or xxx.exe) 如果安装过VS2012的话,直接打开一个VS 2012提供的控制台窗口,比如VS2012 x64 Nati Read More
posted @ 2017-08-26 07:40
findumars
Views(1383)
Comments(0)
Diggs(0)
https://msdn.microsoft.com/en-us/library/dd162759(v=vs.85).aspx Painting and Drawing This overview describes how the system manages output to the scre Read More
posted @ 2017-08-26 07:39
findumars
Views(256)
Comments(0)
Diggs(0)
偶们在实际的编程开发中,经常会遇到运行时无法找到某个DLL文件或者链接时无法找到某个LIB文件。然后,我们就开始乱GOOGLE一下,然后将VS2005的设置改变一下,或许就Ok了,我们将别人开发的DLL或者LIB导入到我们的编程中,那么这些lib,DLL到底是什么呢?下面,偶就细细道来。 首先,偶们 Read More
posted @ 2017-08-26 07:38
findumars
Views(1260)
Comments(0)
Diggs(0)
能把opencv的源码也进行调试吗?(需要pdb文件才行)1.我是用的Qt Creator,然后"工具\选项\调试器\概要\源码路径映射"中,选择"添加Qt源码",目标路径是Qt的源码路径,比如是"C:\Qt\Qt5.7.0\5.7\Src", 源路径是Qt Creator自动补充的。2.按照这种方 Read More
posted @ 2017-08-26 07:35
findumars
Views(1717)
Comments(0)
Diggs(0)
函数功能:该函数将指定的消息发送到一个或多个窗口。此函数为指定的窗口调用窗口程序,直到窗口程序处理完消息再返回。该函数是应用程序和应用程序之间进行消息传递的主要手段之一。 函数原型:LRESULT SendMessage(HWND hWnd,UINT Msg,WPARAM wParam,LPARAM Read More
posted @ 2017-08-26 07:31
findumars
Views(2095)
Comments(0)
Diggs(0)
SendMessage function https://msdn.microsoft.com/en-us/library/windows/desktop/ms644950%28v=vs.85%29.aspx 系统预定义消息 https://msdn.microsoft.com/en-us/libr Read More
posted @ 2017-08-26 07:26
findumars
Views(612)
Comments(0)
Diggs(0)
8086 CPU 寻址方式灵活。有以下几种 idata 表示常量 1. [ idata ] 用一个常量来表示地址,可用于直接定位内存单元,但是在 MASM中要显实在的说明 ds 段寄存器, 比如 mov ax, ds:[0] ,表示把 ds 寄存器中所在段的地址+偏移地址 0 的内存单元中的值赋给a Read More
posted @ 2017-08-26 07:25
findumars
Views(768)
Comments(0)
Diggs(0)
操作系统引导探究 Version 0.02修改记录: 对与GDT有关的段描述符方面的描述进行了修订,更正了上一个版本中出现的一些错误,增加了一些描述,使其更完善。 与上个版本中不同的地方均用红色标记。 前言 本篇文章并不旨在完整的讨论一个多引导系统程序怎样去引导不同的操作系统,而只打算从编写操作系统 Read More
posted @ 2017-08-26 07:24
findumars
Views(1006)
Comments(0)
Diggs(0)
Windows NT类的操作系统,也就是Windows NT/2000/XP中,有一个特殊文件,也就是“BOOT.INI”文件,这个文件会很轻松地按照我们的需求设置好多重启动系统。 “BOOT.INI”文件会在已经安装了Windows NT/2000/XP的操作系统的所在分区,一般默认为C:\下面存 Read More
posted @ 2017-08-26 07:22
findumars
Views(1366)
Comments(0)
Diggs(0)
安装TASM 5.0很简单,您只需要下载本站[相关工具]中的"TASM50.zip"文件,解压后在Windows9x/NT下执行"INSTALL.EXE"即可开始安装。 1.如果你在安装TASM5.0之后安装Delphi 1.0或Borland C++ 4.x及更高版,你需要手动更改系统的设置以使这 Read More
posted @ 2017-08-26 07:21
findumars
Views(4710)
Comments(0)
Diggs(0)
http://blog.csdn.net/daiyutage/article/details/17241161 Win32应用中的回调函数WndProc用于接收Windows向应用程序直接发送的消息,以及响应消息。大多情况下,我们这样编写代码: [cpp] view plaincopy LRESUL Read More
posted @ 2017-08-26 07:19
findumars
Views(662)
Comments(0)
Diggs(0)
转自:http://www.yesky.com/20020715/1620482_1.shtml (作为一个初学者,觉得本文挺好,推荐给大家) 这篇文章是给初学者看的,尽量写得比较通俗易懂,并且尽量避免编程细节。完全是根据我自己的学习体会写的,其中若有技术上的错误之处,请大家多多指正。 一、为什么要 Read More
posted @ 2017-08-26 07:18
findumars
Views(2000)
Comments(0)
Diggs(0)
1.概论 运行时库是程序在运行时所需要的库文件,通常运行时库是以LIB或DLL形式提供的。C运行时库诞生于20世纪70年代,当时的程序世界还很单纯,应用程序都是单线程的,多任务或多线程机制在此时还属于新观念。所以这个时期的C运行时库都是单线程的。 随着操作系统多线程技术的发展,最初的C运行时库无法满 Read More
posted @ 2017-08-26 07:15
findumars
Views(499)
Comments(0)
Diggs(1)