上一页 1 ··· 9 10 11 12 13 14 15 下一页
最近在做dll封装,摸着石头过河,过程中一些问题解决经验做个小结。DLL工程: MyDllTest一、DEBUG和RELEASE版本生成DLL区分工程编译时,会有两种选择,DEBUG和RELEASE版本,一般提供dll库也对应有两种,有两种办法可以实现:1.1我们可以为生成的库文件定义不同的名字以区... Read More
posted @ 2013-06-08 22:10 vranger Views(560) Comments(0) Diggs(0)
转自:http://87656352.blog.163.com/blog/static/444905422009416318247/在Visual C++.NET2005中,默认的字符集形式是Unicode,但在VC6.0等工程中,默认的字符集形式是多字节字符集(MBCS:Multi-Byte C... Read More
posted @ 2013-06-07 02:20 vranger Views(246) Comments(0) Diggs(0)
深入浅出Visual_C动态链接库(Dll)编程,很好的一份学习DLL的资料,看完这个就不用看其他的了。在网上找到的word版本,修改、标注很方便,做了一下整理,和大家一起分享。下载:深入浅出Visual_C动态链接库(Dll)编程.zip Read More
posted @ 2013-05-23 13:33 vranger Views(291) Comments(0) Diggs(0)
最近做了一些VC++动态链接库的封装,碰到一个问题,在 non-mfc dll模式下,如何实现函数重载,网上查找了一些资料,比较少,经过一番的摸索,终于实现了,分享如下:1.问题:要实现swap(int a,int b);swap(float a,float b);两个函数的重载。2.错误的解决方法... Read More
posted @ 2013-05-23 10:53 vranger Views(693) Comments(0) Diggs(1)
#undef #undef 是在后面取消以前定义的宏定义 该指令的形式为 #undef 标识符 其中,标识符是一个宏名称。如果标识符当前没有被定义成一个宏名称,那么就会忽略该指令。 一旦定义预处理器标识符,它将保持已定义状态且在作用域内,直到程序结束或者使用#undef 指令取消定义。 在此程序中,我们将取消在先前程序中对预处理器的定义。 源代码: #define TRACE(x) #if DBG #undef TRACE #define TRACE(x) g_TraceCallback x #else #ifndef TRACE #define TRACE(x) #en... Read More
posted @ 2013-05-22 22:39 vranger Views(897) Comments(0) Diggs(0)
我们希望在构造pt这个对象的同时,传递x坐标和y坐标的值。可以再定义一个构造函数,如例2-8所示。 例2-8 #include <iostream.h> class point { public: int x; int y; point() { x=0; y=0; } point(int a, int b) { x=a; y=b; } void output() { cout<<x<<endl<<y<<endl; } }; void main() { point pt(5,5); pt.output(); } 在这个程序中,有两个构造 Read More
posted @ 2013-05-22 22:21 vranger Views(817) Comments(0) Diggs(0)
CtrueColorToolbar类,图标制作软件 TBCreator Read More
posted @ 2013-05-17 17:14 vranger Views(2601) Comments(0) Diggs(0)
visual studio 2008 中文版.iso 破解 Read More
posted @ 2013-05-17 13:04 vranger Views(407) Comments(0) Diggs(0)
MFC程序中,资源编辑器,工具栏,添加一个自定义的按钮(Button)。由于此时没有为该按钮添加消息映射响应函数,按钮为灰色。下边我们介绍两种添加消息响应函数的方法: Read More
posted @ 2013-05-17 00:24 vranger Views(1624) Comments(0) Diggs(0)
一、为什么需要dll代码复用是提高软件开发效率的重要途径。一般而言,只要某部分代码具有通用性,就可将它构造成相对独立的功能模块并在之后的项目中重复使用。比较常见的例子是各种应用程序框架,如ATL、MFC等,它们都以源代码的形式发布。由于这种复用是“源码级别”的,源代码完全暴露给了程序员,因而称之为“... Read More
posted @ 2013-05-16 03:36 vranger Views(570) Comments(0) Diggs(0)
上一页 1 ··· 9 10 11 12 13 14 15 下一页