Title is No Title

not very good here!

导航

2004年3月30日 #

COM teck first step.

摘要: COM——到底是什么?——COM标准的要点介绍,它被设计用来解决什么问题? 基本元素的定义——COM术语以及这些术语的含义。 使用和处理COM对象——如何创建、使用和销毁COM对象。 基本接口——描述IUnknown基本接口及其方法。 掌握串的处理——在COM代码中如何处理串。 应用COM技术——例子代码,举例说明本文所讨论的所有概念。 处理HRESULT——HRESULT类型描述,如何监测... 阅读全文

posted @ 2004-03-30 21:46 abraham 阅读(1415) 评论(0) 推荐(0)

Using ATL is simple,but to understand it is not easy.

摘要: 第一步:运行ATL COM向导(参见图一) 你要做的第一件事情是启动VC创建一个新的工程。选择“ATL COM AppWizard”。注意这个向导创建的工程并没有包含任何初始的COM对象,在完成这个向导之后,要从“ClassView”中用“New ATL Object”命令来指定你想要增加到这个工程中的对象类型。在“Project name”编辑框中为工程取个名字:“Simple_AT... 阅读全文

posted @ 2004-03-30 21:38 abraham 阅读(762) 评论(0) 推荐(0)

print a bmp is simple ,but the principle is not easy to understand!.

摘要: 1:打印的图片太小; 2:根本打印不出来位图 3:打印预览可见、但打印不出来; 产生这些问题的根本原因,在于对位图的理解不够深刻。 一个CBitmap对象,可能是DDB位图(设备相关位图),或者DIB位图(设备无关位图),其中,一个设备兼容的内存DC中,只能选择该设备兼容的DDB位图或者单色的位图。注意,位图只能被选择进入到设备兼容的内存D... 阅读全文

posted @ 2004-03-30 20:23 abraham 阅读(930) 评论(2) 推荐(0)

print a dialog is simple.

摘要: 1:add friend in view class;2:add CDC and CBitmap and onPrint() and ..some func,3:and then at dlg's OnOk or other func call OnPriviewFunction is ok!1:public://add for print form CRect m_rect; CBitmap *... 阅读全文

posted @ 2004-03-30 18:57 abraham 阅读(1032) 评论(2) 推荐(0)

add cool toolbar 256corler is easy,only two file and onCreate func is needed also the MainFrame.toolbar must resize to what real need and also the load width is same to it.

摘要: 1:func use it:int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct){ if (CFrameWnd::OnCreate(lpCreateStruct) == -1) return -1; if (!m_wndToolBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE ... 阅读全文

posted @ 2004-03-30 12:51 abraham 阅读(1400) 评论(0) 推荐(0)