jiangsheng

http://www.csdn.net/develop/author/netauthor/jiangsheng/
随笔 - 142, 评论 - 629, 引用 - 27

导航

关于

 
这下要维护3个BLOG了,faint 其他的地址:

所有的文章版权归原文作者所有,任何人需要转载文章,必须征得原文作者授权。
我的MVP配置

标签

每月存档

最新留言

广告

微软为Win98用户测试发布一款安全升级CD盘

据微软星期二(11月26日)发给预期的测试者的一份电子邮件表示,目前微软正在考虑向那些没有安装互联网宽带,还在使用其老操作系统的用户发行一款安全升级CD。

http://tech.sina.com.cn/roll/2003-11-27/0927261080.shtml

不愿意再回忆当初用猫上windows Update的情况……

posted on 2003-11-27 19:57:00 by jiangsheng  评论(3) 阅读(1505)

最近老是碰见稀奇古怪的编译问题

创建一个win32DLL工程,从DXSDK示例Ball复制代码之后就出这个问题

Deleting intermediate files and output files for project 'FScrCap - Win32 Debug'.
--------------------Configuration: FScrCap - Win32 Debug--------------------
Compiling...
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8804 for 80x86
Copyright 咖啡 Microsoft Corp 1984-1998. All rights reserved.
cl? /MTd /Ze /W3 /Gm /Gi /GR- /GX /ZI /Od /D WIN32 /D _DEBUG /D _WINDOWS /D _MBCS /D _USRDLL /D FSCRCAP_EXPORTS /FpDebug/FScrCap.pch /Ycstdafx.h /FoDebug/ /FdDebug/ /FD /GZ /c F:\code\test\DirectShow\FScrCap\StdAfx.cpp
StdAfx.cpp
Compiling...
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8804 for 80x86
Copyright 咖啡 Microsoft Corp 1984-1998. All rights reserved.
cl? /MTd /Ze /W3 /Gm /Gi /GR- /GX /ZI /Od /D WIN32 /D _DEBUG /D _WINDOWS /D _MBCS /D _USRDLL /D FSCRCAP_EXPORTS /FpDebug/FScrCap.pch /Yustdafx.h /FoDebug/ /FdDebug/ /FD /GZ /c F:\code\test\DirectShow\FScrCap\fBall.cpp F:\code\test\DirectShow\FScrCap
\FScrCap.cpp
fBall.cpp
FScrCap.cpp
Generating Code...
Linking...
strmbasd.lib(wxutil.obj) : error LNK2001: unresolved external symbol ___security_cookie
strmbasd.lib(dllsetup.obj) : error LNK2001: unresolved external symbol ___security_cookie
strmbasd.lib(dllentry.obj) : error LNK2001: unresolved external symbol ___security_cookie
strmbasd.lib(wxdebug.obj) : error LNK2001: unresolved external symbol ___security_cookie
strmbasd.lib(amfilter.obj) : error LNK2001: unresolved external symbol ___security_cookie
strmbasd.lib(wxutil.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
strmbasd.lib(dllsetup.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
strmbasd.lib(dllentry.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
strmbasd.lib(wxdebug.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
strmbasd.lib(amfilter.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
strmbasd.lib(wxlist.obj) : error LNK2001: unresolved external symbol @_RTC_CheckStackVars@8
strmbasd.lib(source.obj) : error LNK2001: unresolved external symbol @_RTC_CheckStackVars@8
strmbasd.lib(combase.obj) : error LNK2001: unresolved external symbol @_RTC_CheckStackVars@8
strmbasd.lib(wxutil.obj) : error LNK2001: unresolved external symbol @_RTC_CheckStackVars@8
strmbasd.lib(amvideo.obj) : error LNK2001: unresolved external symbol @_RTC_CheckStackVars@8
strmbasd.lib(dllsetup.obj) : error LNK2001: unresolved external symbol @_RTC_CheckStackVars@8
strmbasd.lib(dllentry.obj) : error LNK2001: unresolved external symbol @_RTC_CheckStackVars@8
strmbasd.lib(wxdebug.obj) : error LNK2001: unresolved external symbol @_RTC_CheckStackVars@8
strmbasd.lib(amfilter.obj) : error LNK2001: unresolved external symbol @_RTC_CheckStackVars@8
strmbasd.lib(amvideo.obj) : error LNK2001: unresolved external symbol __RTC_CheckEsp
strmbasd.lib(wxlist.obj) : error LNK2001: unresolved external symbol __RTC_CheckEsp
strmbasd.lib(source.obj) : error LNK2001: unresolved external symbol __RTC_CheckEsp
strmbasd.lib(combase.obj) : error LNK2001: unresolved external symbol __RTC_CheckEsp
strmbasd.lib(wxutil.obj) : error LNK2001: unresolved external symbol __RTC_CheckEsp
strmbasd.lib(mtype.obj) : error LNK2001: unresolved external symbol __RTC_CheckEsp
strmbasd.lib(dllsetup.obj) : error LNK2001: unresolved external symbol __RTC_CheckEsp
strmbasd.lib(dllentry.obj) : error LNK2001: unresolved external symbol __RTC_CheckEsp
strmbasd.lib(wxdebug.obj) : error LNK2001: unresolved external symbol __RTC_CheckEsp
strmbasd.lib(amfilter.obj) : error LNK2001: unresolved external symbol __RTC_CheckEsp
strmbasd.lib(amvideo.obj) : error LNK2001: unresolved external symbol __RTC_Shutdown
strmbasd.lib(wxlist.obj) : error LNK2001: unresolved external symbol __RTC_Shutdown
strmbasd.lib(source.obj) : error LNK2001: unresolved external symbol __RTC_Shutdown
strmbasd.lib(combase.obj) : error LNK2001: unresolved external symbol __RTC_Shutdown
strmbasd.lib(wxutil.obj) : error LNK2001: unresolved external symbol __RTC_Shutdown
strmbasd.lib(mtype.obj) : error LNK2001: unresolved external symbol __RTC_Shutdown
strmbasd.lib(dllsetup.obj) : error LNK2001: unresolved external symbol __RTC_Shutdown
strmbasd.lib(dllentry.obj) : error LNK2001: unresolved external symbol __RTC_Shutdown
strmbasd.lib(wxdebug.obj) : error LNK2001: unresolved external symbol __RTC_Shutdown
strmbasd.lib(amfilter.obj) : error LNK2001: unresolved external symbol __RTC_Shutdown
strmbasd.lib(amvideo.obj) : error LNK2001: unresolved external symbol __RTC_InitBase
strmbasd.lib(wxlist.obj) : error LNK2001: unresolved external symbol __RTC_InitBase
strmbasd.lib(source.obj) : error LNK2001: unresolved external symbol __RTC_InitBase
strmbasd.lib(combase.obj) : error LNK2001: unresolved external symbol __RTC_InitBase
strmbasd.lib(wxutil.obj) : error LNK2001: unresolved external symbol __RTC_InitBase
strmbasd.lib(mtype.obj) : error LNK2001: unresolved external symbol __RTC_InitBase
strmbasd.lib(dllsetup.obj) : error LNK2001: unresolved external symbol __RTC_InitBase
strmbasd.lib(dllentry.obj) : error LNK2001: unresolved external symbol __RTC_InitBase
strmbasd.lib(wxdebug.obj) : error LNK2001: unresolved external symbol __RTC_InitBase
strmbasd.lib(amfilter.obj) : error LNK2001: unresolved external symbol __RTC_InitBase
strmbasd.lib(wxutil.obj) : error LNK2001: unresolved external symbol __RTC_UninitUse
Debug/FScrCap.dll : fatal error LNK1120: 7 unresolved externals
Error executing link.exe.

FScrCap.dll - 51 error弯月, 0 warning弯月

To use it from Visual Studio 6 a replacement .LIB is needed that can be found in the Extra's that can be downloaded from Microsoft.

http://msdn.microsoft.com/directx/directxdownloads/

or you can replace the compiler of VC6 with the VC2003 compiler

posted on 2003-11-25 14:24:00 by jiangsheng  评论(9) 阅读(27631)

吹嘘炸鸡有利健康引起不满 肯德基被迫撤广告

http://finance.sina.com.cn/j/20031121/0742528861.shtml

但是为什么MM宰人的时候,不是点名KFC,Mac就是PizzaHut……

posted on 2003-11-21 13:37:00 by jiangsheng  评论(1) 阅读(1533)

DirectX9

为什么DirectX9和以前版本有如此大的不同……用DirectX9SDK开发的程序,在DirectX版本较低的计算机上运行的话,性能有可观的降低……

posted on 2003-11-19 16:46:00 by jiangsheng  评论(5) 阅读(36555)

微软发Office免费许可 开放其XML文件格式

终于不用另存为HTML了……

当地时间本周一,微软公司宣布将免费许可其在最新版的Office软件包使用的基于XML的文件格式。

  这一举措旨在使企业能够更好地访问使用Office2003创建的文件。微软公司表示,它是应软件合作伙伴以及企业和政府部门客户的要求采取这一措施的,这使得它们能够更好地在应用中集成Office软件包。

全文参见

http://tech.sina.com.cn/it/2003-11-18/0739257264.shtml

posted on 2003-11-18 13:09:00 by jiangsheng  评论(2) 阅读(1684)

不要认为用过无数次的东西会万无一失……

字符串处理日常编程都会用到,没想到今天在上面栽了个跟斗

今天编译代码的时候,VC的编译器居然报告函数lstrlenWInternal没有实现,我倒,我没写过这个函数啊,看起来是函数lstrlenW的内部实现?

找遍代码(VC的Source Browser以及Google)也没有发现这个函数的蛛丝马迹

开始找这个函数的调用代码。首先怀疑的是刚刚增加的功能(废话,这个工程昨天还可以编译通过),但是去掉了增加的功能之后还是不能编译通过,我再倒。最后用最原始的WinDiff比较代码+分段注释定位法发现是OLE2T调用出的问题。

加这个调用的原因是今天觉得在一个ATL的CComBSTR字符串里面查找写起来代码太多,用OLE2T宏转成CString,然后用MFC里面CString的ReverseFind方法比较简单,就把一个成员变量的类型从CComBSTR改成CString了。哪知道用了无数次的OLE2T会出状况。

现在在赶进度,懒得查,就用CString的构造函数处理这个转换了

// Set the new file name.
//m_bstrURL=pwszURL;//昨天的
//m_strURL=OLE2T(pwszURL);//今天的
m_strURL=CString(pwszURL);//今天的第二版

不过按理说语法上不应该有什么问题……迷惑中

posted on 2003-11-14 15:29:00 by jiangsheng  评论(8) 阅读(5218)

中国芯的网络计算机

今天去看了一下所谓的纯国产电脑,发现派系林立,应用软件奇缺……计算机完全国产化的路,看起来还很远啊

感动的是,龙芯出来不久,操作系统就跟上了,可惜应用软件没跟上。

网络计算机走出产业化之路

http://www.e-works.net.cn/ewkArticles/Category104/article14112_1.htm

揭秘中关村电脑和手机“双链”产业的巨变http://www.chinabyte.com/homepage/219001881366626304/20030915/1728382.shtml

“中国芯”让NC重现江湖

http://www.ceiinet.gov.cn/scyj/yqjcl/200308150005.htm

?

posted on 2003-11-12 16:37:00 by jiangsheng  评论(0) 阅读(1403)

资源管理器的控制

资源管理器的IShellBrowser接口很容易控制,通过向其父窗口发送消息就可以获得IShellBrowser接口

#define WM_GETISHELLBROWSER (WM_USER + 7)//微软知识库文章Q157247在2000年就说这个消息是一个yet-to-be documented的消息,但是3年多之后document还没出来 :|

IShellBrowser* pShBrowser =
? (IShellBrowser*) :: SendMessage( hWnd, WM_GETISHELLBROWSER, 0, 0 );

对于文件打开对话框(CFileDialog)和浏览器控件(当URL是FTP站点或者文件夹),这工作得很好,可以用程序选择某些列表项,或者获得文件夹的查看模式。

通过XP新增的IFolderView接口,可以通过这个接口设置列表的查看模式,例如设置成缩略图视图或者详细信息视图,但是在XP之前的操作系统上不支持这个接口。有没有什么还没公开的方法?吐舌笑脸

另外一个问题是在浏览器控件显示FTP站点时在其中双击目录,选中的目录会用新的资源管理器窗口打开。怎么让这个目录在我自己的浏览器窗口打开?悲伤的脸??

posted on 2003-11-09 15:31:00 by jiangsheng  评论(5) 阅读(3376)

From protected to public

UINT AfxGetDocTemplateId(CDocTemplate* pDocTemplate)
{
    // Helper class to extract the m_nIDResource member
    class CHelperDocTemplate : public CDocTemplate
    {
    public:
        CHelperDocTemplate():CDocTemplate(0, NULL, NULL, NULL){}
        UINT GetResourceId(){return m_nIDResource;}
    };
    return  ((CHelperDocTemplate*)pDocTemplate)->GetResourceId();
}


CDocTemplate* AfxFindDocTemplate(UINT nIDResource)
{
    POSITION pos = AfxGetApp()->GetFirstDocTemplatePosition();
    while ( pos )
    {
        CDocTemplate* pDocTemplate = AfxGetApp()->GetNextDocTemplate(pos);
        if ( AfxGetDocTemplateId(pDocTemplate) == nIDResource )
            return pDocTemplate;
    }
    return NULL; // Not found
}

posted on 2003-11-05 14:33:00 by jiangsheng  评论(0) 阅读(1707)

品味孤独的程序员

看了这篇文章,想起王杰的歌

黑色的夜燃烧着风
无情的细雨淋得我心痛
最后一班车像是你的诺言
狠心离去溅湿了我的心
一个人走在冰冷的长街
想起分手前熟悉的脸
淡淡地留下一句忘了我吧还有明天
心碎的声音有谁会听得见
我告诉自己爱情早已走远
可是胸前还挂着你的项链
逃离这城市还剩什么可留在心底
忘记你不如忘记自己

全文在http://expert.csdn.net/Expert/topic/2358/2358862.xml

posted on 2003-11-05 13:24:00 by jiangsheng  评论(6) 阅读(1681)

Powered by: Joycode.MVC引擎 0.5.2.0