摘要: You have to include resource.h, where the resource editor defines 'IDC_***' or 'IDD_***' 阅读全文
posted @ 2010-12-17 16:22 Chjun 阅读(452) 评论(0) 推荐(0) 编辑
摘要: 问题:error LNK2019: 无法解析的外部符号 _gluPerspective@32参考解决方案:#include gl\gl.h //opengl32.lib#include gl\glu.h //glu32.lib#pragma comment(lib, "OPENGL32.LIB")#pragma comment(lib, "GLU32.LIB")put it in stdafx.h注:#pragma comment使得程序无需在编译器中设置additional lib。参考:http://topic.csdn.net/u/20090320/02/AC82DCB7-8 阅读全文
posted @ 2010-12-15 16:10 Chjun 阅读(529) 评论(0) 推荐(0) 编辑
摘要: 问题:MFC程序移植到64位WIN7时,编译通过,但运行时弹出如下对话框。      解决方法:排除指针由32位变动到64位引起的原因后,将用到的DLL文件放在 syswow64 目录下。参考:http://topic.csdn.net/u/20100815/00/21800B99-EBA8-4605-BBFE-5639A5C6AE40.html 阅读全文
posted @ 2010-12-15 13:55 Chjun 阅读(2364) 评论(0) 推荐(0) 编辑
摘要: 原文链接:http://tutorial.it55.com/ChengXuKaiFa/VisualC/2009/12/17/16472716660.html 用MFC制作的工程由很多文件构成,它不能象一般C++程序那样随意在类外定义全局变量,在这里要想定义能被工程内多个文件共享的全局变量和函数必须用一些特殊方法才行。实际上有多种方法可以实现,这里只介绍两种方法。一、在应用程序类中定义  用MFC生成的工程中都有一个名为CxxxApp的类,它派生于CWinApp类。这个类主要进行程序的初始化,生成文档、视图对象等工作。我们可以把需要全局访问的变量和函数定义为这个类的成员变量和成员函数,就可以实 阅读全文
posted @ 2010-12-05 22:44 Chjun 阅读(320) 评论(0) 推荐(0) 编辑
摘要: 在OnHScroll开始时添加几个CWnd*变量,在和参数中pScrollBar判断就可以了[代码]原帖地址:http://hi.baidu.com/ncudlz/blog/item/fba375dd6b6b74d18d1029d8.html 阅读全文
posted @ 2010-11-30 10:12 Chjun 阅读(802) 评论(0) 推荐(0) 编辑
摘要: error.>Linking...3>oclUtils32D.lib(shrUtils.obj) : error LNK2019: unresolved external symbol "public: static void __cdecl std::_Locinfo::_Locinfo_ctor(class std::_Locinfo *,class std::basic_stri... 阅读全文
posted @ 2010-11-22 16:24 Chjun 阅读(915) 评论(0) 推荐(0) 编辑
摘要: Debianroot user:suInstall gcc:  1.apt-get install gcc        2.apt-get install make        3.apt-get install gdb        Install all: apt-get install build-essentialOpen and edit files: vim ..directory... 阅读全文
posted @ 2010-11-08 22:24 Chjun 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 编译结果:1>msvcprt.lib(MSVCP80.dll) : error LNK2005: ...解决方法一:保证需要链接的几个项目的运行时库使用同一个类型。解决方法二:在项目属性->链接器->命令行中设置 /FORCE:MULTIPLE 也可以避免LNK1169 & LNK2005,但不知道是否会有副作用。 阅读全文
posted @ 2010-11-06 15:49 Chjun 阅读(310) 评论(0) 推荐(0) 编辑
摘要: 需要在函数中访问被屏蔽的数据域时使用。例如:一个数据域的名字被多次用作一组成员函数的参数名,而这些参数是用来访问数据域的。这种情况下,我们需要在函数中引用被屏蔽的数据域的名字,从而为此数据域赋予新的值。这时可以用this指针这一C++内置特殊指针来访问被屏蔽的数据域,这个特殊指针用于引用(当前函数)的调用对象。代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->#include "circle.h"Circle::Cirl 阅读全文
posted @ 2010-10-20 15:53 Chjun 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 编译结果:1>test.obj : error LNK2019: 无法解析的外部符号 __imp____glutInitWithExit@12,该符号在函数 _glutInit_ATEXIT_HACK@8 中被引用1>test.obj : error LNK2019: 无法解析的外部符号 __imp____glutCreateWindowWithExit@8,该符号在函数 _glutC... 阅读全文
posted @ 2010-10-18 22:46 Chjun 阅读(5849) 评论(1) 推荐(0) 编辑