Essence: Wrap functions to read/write things from another module. Windows keep seperate heaps for debug and release - built DLLs and EXEs. So for example, calling a release DLL from a debug application EXE, any memory we allocate needs to be
From MSDN:To simplify code development for various international markets, the Microsoft run-time library (CRT) provides Microsoft-specific "generic-text" mappings for many data types, routines, and other objects. These mappings are defined in
You may experience an access violation when you access an STL object through a pointer or reference in a different DLL or EXE.[http://support.microsoft.com/default.aspx?scid=kb%3ben-us%3b172396]On This Page * SYMPTOMS * CAUSE * RESOLUTION
Visual Studio Solution[MSDN: http://msdn.microsoft.com/en-us/library/bb165922(VS.80).aspx]Overview of Solutions A solution is a grouping of one or more projects that work together to create an application. The project and status information that
[Copied From C++ Coding Standards--chapter 8] We define premature optimization as making designs or code more complex, and so less readable, in the name of performance when the effort is not justified by a proven performance need (such as actual
From C++ Primer:The logical AND and OR operators always evaluate their left operand before the right. The right operand is evaluated only if the left operand does not determine the result. This evaluation strategy is often referred to as
[Copied from C++ coding standards-chapter 9] Easy on yourself, easy on the code: All other things being equal, notably code complexity and readability, certain efficient design patterns and coding idioms should just flow naturally from your
Exporting from a DLL A DLL file has a layout very similar to an .exe file, with one important difference — a DLL file contains an exports table. The exports table contains the name of every function that the DLL exports to other executables. These
Macros for Custom Build CommandsYou can use the File and Directory drop-down lists to insert any of the following directory and filename macros in either grid at the current insertion point location. The File and Directory drop-down lists are on the
MFC Library Reference[MSDN: http://msdn.microsoft.com/zh-cn/library/0asx94f7(VS.80).aspx] Managing the State Data of MFC ModulesThis article discusses the state data of MFC modules and how this state is updated when the flow of execution (the path
1. Dll typesThree:Win32 dllMFC regular dllMFC extension dll2. MFC extension dllBasic[MSDN]:An MFC extension DLL is a DLL that typically implements reusable classes derived from the existing Microsoft Foundation Class Library classes.An MFC extension
CString::LoadString(UINT nID)Conclusion: the correct way to load string resource by ID is to call CString::LoadString(HINSTANCE hInstance,UINT nID), specifying the dll handler you want to search for.ProblemCString::LoadString(UINT nID) will first
使用“devenv.exe /edit ”命令在一個已經存在的vs執行個體裡開啟檔案 原文連結:You can use devenv.exe /edit to open a file in an existing Visual Studio instance操作步驟: 運行命令:devenv /edit ,可以在IDE裡開啟檔案。 你也可以建立一個cmd檔案,例如VSEdit.cmd,在檔案裡(可以用記事本)寫如下內容: @"devenv.exe" /edit
LoadLibraryHMODULE WINAPI LoadLibrary(__in LPCTSTR lpFileName);Return ValueIf the function succeeds, the return value is a handle to the module.If the function fails, the return value is NULL. To get extended error information, call
[MSDN:http://msdn.microsoft.com/en-us/library/xwz5tb1x(VS.80).aspx]Dialog Data Exchange If you use the DDX mechanism, you set the initial values of the dialog object's member variables, typically in your OnInitDialog handler or the dialog
Visual Studio Managing Application Resources You can create and manage resources for your project using the Resource Designer or the Resources page of the Project Designer. Resource types supported by the Resource Designer include