Title is No Title

not very good here!

导航

03 2004 档案

static/register/atuo/extern/volatile/const
摘要:static l 静态变量作用范围在一个文件内,程序开始时分配空间,结束时释放空间,默认初始化为0,使用时可改变其值。 l 静态变量或静态函数,即只有本文件内的代码才可访问它,它的名字(变量名或函数名)在其它文件中不可见。 l 在函数体内生成的静态变量它的值也只能维持 int max_so_far( int curr )//求至今(本次调用)为止最大... 阅读全文

posted @ 2004-03-31 17:06 abraham 阅读(1022) 评论(1) 推荐(0)

STL is very important,so we learn.
摘要:什麽是STL呢?STL就是Standard Template Library,标准模板库。这可能是一个历史上最令人兴奋的工具的最无聊的术语。从根本上说,STL是一些“容器”的集合,这些“容器”有list,vector,set,map等,STL也是算法和其他一些组件的集合。这里的“容器”和算法的集合指的是世界上很多聪明人很多年的杰作。 STL的目的是标准化组件,这样你就不用重新开... 阅读全文

posted @ 2004-03-31 17:04 abraham 阅读(633) 评论(0) 推荐(0)

print a bmp 2
摘要:/* HDC hDC, 打印机dc HBITMAP hBmp, 待打印位图 int iX, 位图的左上角点x坐标 int iY, 位图的左上角点y坐标 double dScaleX, 打印机分辨率和屏幕分辨率x方向的比值,在没有指... 阅读全文

posted @ 2004-03-31 16:40 abraham 阅读(533) 评论(0) 推荐(0)

Create COM step by step 2.
摘要:第七步 实现IClassFactory的方法 实现类CAddFactory的方法。创建一个新文件(AddObjFactory.cpp)。提供类IUnknown和IClassFactory的方法实现。AddRef,Release和QueryInterface方法实现和前面类CAddObj中这三个函数实现基本一样。在方法CreateInstance中,类CaddObj被实例化并且传回其接口指针。L... 阅读全文

posted @ 2004-03-31 16:23 abraham 阅读(721) 评论(1) 推荐(0)

Create com step by step.1
摘要:目录: 介绍 接口 第一步:创建IDL文件 第二步:生成类型库 第三步:从IAdd继承 第四步:实现IAdd的方法 第五步:实现IUnkown 第六步:类工厂 第七步:实现IClassFactory的方法 第八步:实现DllGetClassObject 第九步:实现DllCanUnloadNow 第十步:DllRegisterServer和UnregisterServer 第十一步:将IDL文... 阅读全文

posted @ 2004-03-31 16:18 abraham 阅读(1188) 评论(0) 推荐(0)

Write COM using only C++
摘要:本文提供一个完全用C++实现的进程内(DLL)COM服务器,不要ATL或MFC提供任何支持。用这种方式编写COM对象可以让你深入地洞察到COM处理进程内服务器的方法以及COM是如何创建类工厂的。利用本文提供的这个简单框架你可以实现很基本的COM组件,如外壳扩展(Shell Extensions)等。如果你在使用过程中发现了任何问题,请将它反馈到vckbase@public.hk.hi.cn。... 阅读全文

posted @ 2004-03-31 12:37 abraham 阅读(1023) 评论(0) 推荐(0)

COM Second Teck.
摘要:走马观花看COM服务器——描述COM服务器的基本要求。服务器生命其管理——描述COM服务器如何控制加载时间。实现接口,从IUnknown开始——展示如何用C++类编写一个接口实现并描述IUnknown之方法的目的。深入CoCreateInstance()——探究CoCreateInstance()的调用机理。COM服务器的注册——描述完成服务器注册所需要的注册表入口。创建COM对象——类工厂... 阅读全文

posted @ 2004-03-31 12:01 abraham 阅读(1293) 评论(0) 推荐(0)

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

posted @ 2004-03-30 21:46 abraham 阅读(1425) 评论(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 阅读(774) 评论(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 阅读(935) 评论(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 阅读(1036) 评论(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 阅读(1403) 评论(0) 推荐(0)

how to delte minimize and max button in right upper!
摘要:BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs){ cs.style &= ~(WS_MINIMIZEBOX|WS_MAXIMIZEBOX); //cs.style|=WS_MAXIMIZEBOX; if( !CFrameWnd::PreCreateWindow(cs) ) return FALSE; // TODO: Modify th... 阅读全文

posted @ 2004-03-29 16:52 abraham 阅读(556) 评论(1) 推荐(0)

how to delte minimize and max button in right upper!
摘要:BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs){ cs.style &= ~(WS_MINIMIZEBOX|WS_MAXIMIZEBOX); //cs.style|=WS_MAXIMIZEBOX; if( !CFrameWnd::PreCreateWindow(cs) ) return FALSE; // TODO: Modify th... 阅读全文

posted @ 2004-03-29 16:52 abraham 阅读(542) 评论(1) 推荐(0)

aotu modify table ' field's value,by ODBC directly is false,but use CDatabase can well and also the header file is needed.
摘要://1:header:// stdafx.h : include file for standard system include files,// or project specific include files that are used frequently, but// are changed infrequently// #if !defined(AFX_STDAFX_H_... 阅读全文

posted @ 2004-03-27 18:30 abraham 阅读(814) 评论(0) 推荐(0)

use CDatabase is simple,example is:
摘要://add the selected guanqu info. //and reshow them. CEdit* ed=(CEdit*)GetDlgItem(IDC_CODE); CString edc; ed->GetWindowText(edc); CString guanQvNO=edc; //name ed=(CEdit*)GetDlgItem(IDC_NAME); e... 阅读全文

posted @ 2004-03-27 17:58 abraham 阅读(821) 评论(0) 推荐(0)

add a splash to load system is easy:1:add spashWnd,then call it in instance ,when some work ok,close it.
摘要:///////////////////////////////////////////////////////////////////////////////Written by Liu Zhengxi//May 5,2003//Compiles with Visual C++ 6.0 for Windows 98 and probably Windows 2000 // too.////////... 阅读全文

posted @ 2004-03-27 15:18 abraham 阅读(929) 评论(1) 推荐(0)

add a property table dlg is simple.add a dig with var:CTabCtr's son:CTabSheet m_sheet,and 3 dialog son as pages;then ok.
摘要:1:CTableSheet:#define MAXPAGE 100/////////////////////////////////////////////////////////////////////////////// CTabSheet window class CTabSheet : public CTabCtrl{// Constructionpublic: CTabSheet(); ... 阅读全文

posted @ 2004-03-27 11:02 abraham 阅读(1146) 评论(0) 推荐(0)

add scroolbar to dialog is easy,add flag in dialgon property , then 4 func are need to change or add.
摘要:before all,add some var in class.// Constructionpublic:int m_nCurHeight;int m_nCurWidth;int m_nScrollPos;int m_nScrollPos2;CRect m_rect;1:func:BOOL SecondTimeCheckDlg::OnInitDialog() { CDialog::OnInit... 阅读全文

posted @ 2004-03-26 13:46 abraham 阅读(1085) 评论(2) 推荐(0)

but when call at some dlg,only no echo,but after add a Invalidate() ,it will be ok very strange.
摘要:void CAboutDlg::OnTestDraw() { Invalidate(); CPaintDC dc(this); CPen MyNewPen; COLORREF mm_color=RGB(233,44,55);//dlg.m_color; MyNewPen.CreatePen(PS_SOLID,10,mm_color);//RGB(255,0,... 阅读全文

posted @ 2004-03-22 20:33 abraham 阅读(520) 评论(0) 推荐(0)

draw on dlg is simple only add some code in func proc. is ok.
摘要:void TestDrawDlg::OnOK() { Invalidate(); // TODO: Add extra validation here //Invalidate(); //CDialog::OnOK(); CPaintDC dc(this); CPen MyNewPen; COLORREF mm_color=RGB(233,4,5);//dlg.m_color... 阅读全文

posted @ 2004-03-22 20:29 abraham 阅读(656) 评论(0) 推荐(0)

use /Fe create dll file can not be used by WinApp,only can be used by jni.
摘要:these type dll can not be used by winApp;for example,will apear that can not find func;C:\JNI>cl useDll.cpp user32.libMicrosoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8804 for 80x86Copyrig... 阅读全文

posted @ 2004-03-22 16:14 abraham 阅读(673) 评论(0) 推荐(0)

JNI的简单使用
摘要:JNI的简单使用 以一个最简单的HelloWorld程序来介绍一下JNI的最基本的使用方法:1)首先要有一个HelloWorld.java。这个是主文件,里面包括本地方法的java声明,一个main函数,还有一个静态代码段,用来导入所需要的动态连接库(在windows里是.dll)。代码如下://HelloWorld.javaclass HelloWorld { public native ... 阅读全文

posted @ 2004-03-22 15:56 abraham 阅读(982) 评论(2) 推荐(0)

first time use JNI success with WinApi .great.
摘要:1:copy jni.h to project dir,and rename jni2.h,if not alert error,do not know why.2:write a java to use jni,3:use javah create a header file.4:write implemention of the header,useing MsgBox();5:comile ... 阅读全文

posted @ 2004-03-22 15:54 abraham 阅读(537) 评论(0) 推荐(0)

good place for something.
摘要:http://www.codework.com/cpptools.html 阅读全文

posted @ 2004-03-22 12:03 abraham 阅读(433) 评论(0) 推荐(0)

use MyButton is simple,only add two file and then add some code just bellow in any dlg src declear the button control and will ok!
摘要:only two places.//1:public: //DWORD WINAPI threadProc(); //long __stdcall threadProc(); CAboutDlg(); // Dialog Data //{{AFX_DATA(CAboutDlg) enum { IDD = IDD_ABOUTBOX }; MyButton m_print; MyButton ... 阅读全文

posted @ 2004-03-21 21:50 abraham 阅读(672) 评论(0) 推荐(0)

Test Use CListControl and Events and colordlg,and odbc.
摘要:// TestItemListDlg.cpp : implementation file// #include "stdafx.h"#include "testPint2.h"#include "TestItemListDlg.h"#include #include #ifdef _DEBUG#define new DEBUG_NEW#undef THIS_FILEstatic char THIS... 阅读全文

posted @ 2004-03-21 18:42 abraham 阅读(1085) 评论(0) 推荐(0)

Use ODBC directy to get ID and give bigger.
摘要:CString Common::getObjId(CString table,CString field){ CString ret; CString tableN=table;//"test"; tableN+=";"; unsigned char sql[100]; char sqlH[100]="select ID from "; char *tableNC=tableN.G... 阅读全文

posted @ 2004-03-21 18:39 abraham 阅读(724) 评论(0) 推荐(0)

在VC++下实现高彩色工具条
摘要:在VC++下实现高彩色工具条 2002-01-14· ·郎锐··yesky 引言 一些Windows系统自带程序如资源管理器、Internet Explorer等程序的工具条看上去和其他一些程序的工具条不太一样,在颜色上要漂亮许多。其实这些程序的工具条上的图标均为256色,而普通应用程序在工具栏上所显示图标的颜色通常只有16色,这就决定了后者在视觉上远没有前者美观。由于Wind... 阅读全文

posted @ 2004-03-17 21:09 abraham 阅读(1201) 评论(1) 推荐(0)

long time have not come.agani.
摘要:adsfsdf 阅读全文

posted @ 2004-03-17 21:00 abraham 阅读(328) 评论(0) 推荐(0)

long time have not come.agani.
摘要:adsfsdf 阅读全文

posted @ 2004-03-17 21:00 abraham 阅读(348) 评论(0) 推荐(0)

test
摘要:testesdf 阅读全文

posted @ 2004-03-03 21:48 abraham 阅读(412) 评论(1) 推荐(0)

无线移动通信技术快速发展历程和趋向
摘要:无线移动通信技术快速发展历程和趋向(张煦) [摘要] 本文内容分三部分:首先说明无线移动通信与有线固定通信一同快速发展的趋势;然后 着重讲述无线动通信蜂窝网从模拟至数字和即将进入第三代系统的快速发展历程和今后趋向; 最后简单说明无线卫星通信微波通信也要加快步伐继续向前发展,以发挥重要作用。 [ 关键词]无线通信;移动通信;蜂窝网;卫星通信 1无线移动通信与有线固定通信一同发展 人们常把有线... 阅读全文

posted @ 2004-03-03 15:49 abraham 阅读(2344) 评论(1) 推荐(0)

VC下打印机的使用
摘要:显示器和打印机、绘图仪都被视为输出设备。系统默认的输出设备是显示器。要使用打印机,首先需要创建一个指向打印机的设备环境句柄,然后通过该句柄调用相关的绘图函数把所需的文字和图形输出至打印机上。当打印结束后,删除这个设备环境句柄即可。一、技术细节 当我们在Windows95下安装好打印机后,总是需要设置一个为默认打印机,在Windows95的启动配置文件WIN.INI中[window]段中列出了带有... 阅读全文

posted @ 2004-03-03 12:58 abraham 阅读(1622) 评论(0) 推荐(0)

Qing Shu
摘要:我对1见钟情,绝无2心,想照顾3生3世,因为我偷偷上的网站4次,那迷人的5官,总让我6神无主,一颗心7上8下,99不能平息,如果我的满分是10分,一定不止11分,起码也该有12分,只可惜我讨厌13这个数字,不然一定有14分,如果再加上的聪明那又不止15分,16分一定还嫌少,所以我给了17分。 我今年18岁,再过几天就19岁,也就是我还未满20岁,今年大概会二一呗,所以得交22万的学费,其实我的... 阅读全文

posted @ 2004-03-03 12:45 abraham 阅读(664) 评论(0) 推荐(0)

first begin.
摘要:oh come here is my net home.! 阅读全文

posted @ 2004-03-03 12:36 abraham 阅读(369) 评论(1) 推荐(0)