*tech - VC/MFC/ATL
文章平均质量分 64
carolbaby
You could read my blog for details
展开
-
Com+ debug issue: incorrect watch value and abnormal step through path
Issue:When I started to debug a Com+ project with VC8, I saw many incorrect value in the watch window, and abnormal step through path For some CString variable: When I watch them, I can not s原创 2006-12-22 08:19:00 · 1295 阅读 · 0 评论 -
Upgrade Issue: Compile error C2327 with import dll under VC8/VS2005
Issue:When I upgrade an exe project from VC7.1 to VC8, it says upgrade succeed. But When I try to compile the project, it outputs a lot of errors. ../debug/msado15.tlh(1024) : error C2327: C原创 2006-12-22 07:42:00 · 2300 阅读 · 0 评论 -
Upgrade Issue: Register fails after build ATL project under VC8/VS2005
Issue: An ATL/COM project can be built and registered successfully under VC7.1/VS2003. After upgrade this project to VC8/VS2005 using the upgrade wizard, it can be built successfully but can not reg原创 2006-12-13 03:37:00 · 1521 阅读 · 0 评论 -
MFC里面的消息
1.标准windows消息 WM_XXX; MessageMap Macro Message function name ON_WM_CHAR WM_CHAR OnChar2.命令消息 WM_COMMAND; ON_COMMAND(IDM_ABOUT, OnAbout)3.Notification消息 控制元件原创 2005-01-04 11:16:00 · 857 阅读 · 0 评论 -
Com小结(VC)
1.编写COM 接口的声明:2处 .idl file interface IPage : IDispatch{ [id(1), helpstring("Method Update")] HRESULT Update([in] LONG bSave);原创 2005-01-04 11:44:00 · 1054 阅读 · 3 评论 -
关于CallBack函数
CallBack函数要声明为全局函数(C语言中常用),或者是类的static成员函数(OO的方式)。以便避免this指针的影响。还不是很明白什么时候要这么用。有些windows API 要求把指向callback函数的指针作为传入参数。BOOL LineDDA( int nXStart, // x-coordinate of lines starting point原创 2005-01-04 11:10:00 · 1182 阅读 · 1 评论 -
MFC和SDK的区别
MFC是Application Framework, 而不仅仅是一个Class Library。Application Framework is an extended collection of classes that cooperate to support a complete applicationarchitecture or application model, providing原创 2005-01-02 12:17:00 · 1190 阅读 · 0 评论 -
C/C++函数调用的几种方式
CA笔试考题,MS面试vender考题,可惜我一次都没做出来:(The Visual C/C++ compiler provides several ways to call internal and external functions. Understanding these different approaches can help you debug your program and原创 2004-12-31 13:35:00 · 1311 阅读 · 0 评论 -
Unicode versus ANSI
Question: So what is the difference between Unicode (i386ur) and ANSI (i386r)?Answer: Put simply, a Unicode program is a special version that runs slightly faster than an ANSI one, but only runs on Wi转载 2007-02-16 02:47:00 · 1295 阅读 · 0 评论