摘要:
windows_21_Library_Variable_DLL&&CPP&&DEF 动态库补充6 CPP//第二步,增加导出声明__declspec( dllexport )/*增加导出声明*///第一步,定义全局变量int g_nValue1 = 100; // global Variable//第一步,定义DEF导出变量int g_nValue2 = 200;DEFLIBRARY E... 阅读全文
摘要:
windows_21_Library_use_DLL 动态库补充4 #include using namespace std;//第2.1.1步 导入 lib#pragma comment(lib,"../debug/windows_21_Library_DLL_test.lib")//第2.1.2步 定义函数原型int Dll_Add( int nAdd1, int nAdd2 );ex... 阅读全文
摘要:
windows_21_Library_DLL_test&&CPP&&DEF 动态库补充3 //1.1 创建DLL的项目//1.2 增加动态库函数__declspec( dllexport ) //C++导出方式int Dll_Add( int nAdd1, int nAdd2 ){ return nAdd1 + nAdd2;}//导出函数关键字__declspec( dllexport ... 阅读全文
摘要:
windows_21_Library_Class_DLL_USE 动态库补充2 // windows_21_Library_Class_DLL_USE.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"//导入DLL文件#pragma comment(lib,"../bin/windows_21_Library_Class_DLL.lib")//需要声明一个类... 阅读全文
摘要:
windows_21_Library_Class_DLL 动态库补充1 #include "windows_21_Library_Class_DLL.h"int CMath::Add( int nAdd1, int nAdd2 ){ return nAdd1 + nAdd2;}int CMath::Sub( int nSub1, int nSub2 ){ return nSub1 - n... 阅读全文
摘要:
来自为知笔记(Wiz) 阅读全文
摘要:
19windows_19_OwnerDraw自制按钮DIYBUTTON#include #include CHAR szText[256] = { 0 };#define PrintLog(x) WriteConsole(g_hStdout, x, strlen(x), NULL, NULL)HINSTANCE g_hInst = NULL; //窗口句柄HANDLE g_hStdout = NU... 阅读全文
摘要:
21window_21_Dynamic_library动态库 DLL创建//1.1 创建DLL的项目//1.2 增加动态库函数__declspec( dllexport ) //C++导出方式int Dll_Add( int nAdd1, int nAdd2 ){ return nAdd1 + nAdd2;} //导出函数关键字__declspec( dllexport )extern "... 阅读全文
摘要:
17windows_17_listbox列表框#include #include #include "resource.h"CHAR szText[256] = { 0 };#define PrintLog(x) WriteConsole(g_hStdout, x, strlen(x), NULL, NULL)HINSTANCE g_hInst = NULL; //窗口句柄HANDLE g_hSt... 阅读全文
摘要:
来自为知笔记(Wiz) 阅读全文