部分內容將陸續移置 Visual Studio 頁面。
-
- 在 Watch 視窗輸入欲觀察的變數名稱
-
- All Programs → Microsoft Visual Studio 2008 → Visual Studio Tools → Visual Studio 2008 Command Prompt
- VC2008 命令行
Visual Studio
- Visual Studio .NET Projects
- Visual Studio .NET uses project files as containers for all of the build and configuration settings required to generate a .NET assembly. Project files have either a .csproj or .vbproj file extension, depending upon the project's language.
- Visual Studio .NET Solutions
- Solution files (with the .sln file extension) are used to group related projects together and are primarily used to control the build process. You can use solutions to control build dependency issues and control the precise order in which contained projects are built.
LoadLibrary
// Get a handle to the DLL module. hinstLib = LoadLibrary("GPLibMaker.dll");
- 編譯 DLL
- 將 DLL 放到 EXE 的目錄,如此運行 EXE 時才能找到 DLL。
- 撰寫 EXE
- Project → Properties
- C/CPP → Additional Include Directories → </PATH/TO/MynaAnalyzer.h>
- Linker → General → Additional Library Directories → </PATH/TO/MynaAnalyzer.dll>
- Linker → Input → Additional Dependencies → MynaAnalyzer.lib
Pitfall
IDE
- View → Other Windows → Resource View → 點選 rc → 編輯視窗控件