https://msdn.microsoft.com/en-us/library/xz7ttk5s.aspx Optimizing Your Code Visual Studio 2015 The latest version of this topic can be found at Optimizing Your Code. By optimizing an executable, you can achieve a balance between fast execution spee…
各个版本之间的对应关系 使用windows平台搞开发时,下载第三方库时经常会遇到文件名以VCxx版本号命令,VC版本如何转换成对应的VS的版本呢,这里总结一下vc和vs的关系. Microsoft Visual Studio 6.0: VC6.0 Microsoft Visual Studio .NET 2002: VC7.0 Microsoft Visual Studio .NET 2003: VC7.1 Microsoft Visual Studio 200…
共有两种库:一种是LIB包含了函数所在的DLL文件和文件中函数位置的信息(入口),代码由运行时加载在进程空间中的DLL提供,称为动态链接库dynamic link library.一种是LIB包含函数代码本身,在编译时直接将代码加入程序当中,称为静态链接库static link library.共有两种链接方式:动态链接使用动态链接库,允许可执行模块(.dll文件或.exe文件)仅包含在运行时定位DLL函数的可执行代码所需的信息.静态链接使用静态链接库,链接器从静态链接库LIB获取所有被引用函数…
原文网址:http://blog.csdn.net/holybin/article/details/28403109 一.MessageBox()用法 1.函数原型 Messagebox函数在Win32 API和MFC里的定义有区别. Win32 API的定义如下: int WINAPI MessageBox( HWND hWnd, // handle of owner window LPCTSTR lpText, // address of text in messa…
首先,这是个历史遗留问题,说起来比较复杂.其次,这个问题在微软的MSDN博客上已经专门被说起过了,英文好的请直接移步到原文:<VC++ Directories>.另外,stack overflow上面也有人问到过,但是首选回答的人回答是错的,因为他没看 <VC++ Directories>,主要看后面的这段: VC++ Directories: Include Directories this value is inherited from the INCLUDEWindows e…
typedef unsigned long DWORD;typedef int BOOL;typedef unsigned char BYTE;typedef unsigned short WORD;typedef float FLOAT;typedef FLOAT *PFLOAT;typedef BOOL near *PBOOL;typedef BOOL…
VC: #include <stdio.h> main(){ int a = 1; int b = 2; int c; __asm{ mov eax,a mov ebx,b mov ecx,1h add eax,ebx mov c,ecx } printf("%x\n", c); } GCC: #include <stdio.h> main(){ int a = 1; int b = 2; int c; asm( "add %2,%0" //…