上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页
摘要: windows_21_Library_Variable_DLL&&CPP&&DEF 动态库补充6 CPP//第二步,增加导出声明__declspec( dllexport )/*增加导出声明*///第一步,定义全局变量int g_nValue1 = 100; // global Variable//第一步,定义DEF导出变量int g_nValue2 = 200;DEFLIBRARY E... 阅读全文
posted @ 2016-06-10 10:12 -刀狂剑痴- 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2016-06-10 09:55 -刀狂剑痴- 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 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 ... 阅读全文
posted @ 2016-06-10 09:49 -刀狂剑痴- 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 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")//需要声明一个类... 阅读全文
posted @ 2016-06-10 09:49 -刀狂剑痴- 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2016-06-10 08:33 -刀狂剑痴- 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 来自为知笔记(Wiz) 阅读全文
posted @ 2016-06-10 08:32 -刀狂剑痴- 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2016-06-10 08:32 -刀狂剑痴- 阅读(295) 评论(0) 推荐(0) 编辑
摘要: 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 "... 阅读全文
posted @ 2016-06-10 08:32 -刀狂剑痴- 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2016-06-10 08:28 -刀狂剑痴- 阅读(288) 评论(0) 推荐(0) 编辑
摘要: 来自为知笔记(Wiz) 阅读全文
posted @ 2016-06-10 08:27 -刀狂剑痴- 阅读(96) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页