Title is No Title

not very good here!

导航

2004年3月22日 #

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 阅读(518) 评论(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 阅读(650) 评论(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 阅读(669) 评论(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 阅读(964) 评论(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 阅读(529) 评论(0) 推荐(0) 编辑

good place for something.

摘要: http://www.codework.com/cpptools.html 阅读全文

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