自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

No more love in C++, can't live on MFC...

New interests on kotlin/native

  • 博客(52)
  • 收藏
  • 关注

原创 Windows pip install jupyter notebook

C:\Program Files\Python38\Scripts\jupyter-notebook.exe

2023-01-29 23:07:15 907

转载 关于copy/paste和Dragdrop的问题 CF_ENHMETADATA

CSDN上的一个帖子,我好像没有遇到问题,楼主的代码我也没有仔细调关于copy/paste和Dragdrop的问题。楼主aqua_aqua(丁丁)2002-10-29 16:07:58 在 VC/MFC / 基础类 提问我在我的应用程序中增加了copy/paste和DragDrop功能,我把原来的window_Format   matefile改成了enhanced-format  

2007-02-01 13:36:00 1320

转载 怎样在剪贴板中以CF_ENHMETAFILE放一副图?

来自http://www.vckbase.com/bbs/prime/viewprime.asp?id=412下面的回复非常精彩。 /** * Create a metafile that contains the plotting graph. */HENHMETAFILE createEnhMetaFile(){HDC hdc;RECT rc, rcImg;int cxMms, c

2007-01-30 15:04:00 2379

原创 用ATL创建的com class怎样显示实例化?

参见http://www.experts-exchange.com/Programming/Programming_Languages/Cplusplus/Q_20513227.html 用ATL 添加一个"ATL Simple Object" 叫MyObject 这个时候想创建一个势力  MyObject *ptr = new Myobject(); ) 编译的时候会有这样的错误: "Err

2007-01-07 00:47:00 1554

转载 使用了CHtmlView后的COleException异常(zz)

是我在网上搜到的,zz一下。原作者是李汉鹏,找不到原文出去了,都是zz了好几趟的。去掉讨厌的异常警告   在程序中使用了CHtmlView以后,我们在调整窗口大小的时候经常会看到输出窗口输出的异常警告: ReusingBrowser.exe 中的 0x77e53887 处最可能的异常: Microsoft C++ exception: COleException @ 0x0012e348 。

2006-11-28 23:46:00 2590

原创 CTooltipCtrl crashes on Win98

http://groups-beta.google.com/group/microsoft.public.vc.mfc/browse_thread/thread/ac7777e1da5900a/1cc6e6f5d1ac9ed5?hl=en http://support.microsoft.com/kb/q255607/ 

2006-11-01 10:07:00 1136

原创 不能免俗,开始学C#,发现一个msdn的一个问题?

这是msdn中的一段话:C# allows derived classes to contain methods with the same name as base class methods. The base class method must be defined virtual. If the method in the d

2006-09-11 00:47:00 1564 1

转载 [zz]取消XP用户登陆界面

在“运行”中键入“Control Userpasswords2”http://blog.aiweb.cn/blog/Content/omega.191.html

2006-06-14 23:40:00 1447

原创 没有emule上找不到的书~

没有emule上找不到的书,呵呵,今天又验证了这样一句话上网看到一本书,觉得还不错,Visual C++ Windows Shell Programming但是买不到,回来了在eMule上一搜,哈哈,还挺多的。pdf下载 源码下载

2006-05-11 20:19:00 1774 1

原创 "乱码"的英文翻译

和美国人的email中,发现用broken characters表示乱码然后有时候看论坛,发现也有人用weired charecters表示乱码:-)

2006-05-10 11:04:00 3763

原创 我的新地址 http://www.cppblog.com/flyingxu/

我的新地址 http://www.cppblog.com/flyingxu/这里的文章不会移过去,也不会继续更新,保持现状。以后会不会重新开始更新,也不确定。

2006-03-05 00:50:00 79241

原创 编译结束时the .plg file has been modified outside of the source editor错误消息提示

编译结束时总是有个消息提示框出来,"the .plg file has been modified outside of the source editor. Do you want to reload it?"点yes或者no都还是不行,总是出来问题的答案在http://www.codecomments.com/Debugger/message500008.html也就是在菜单window-

2006-02-12 17:49:00 3837

原创 转载:Effective Code Reviews Without the Pain

这篇文章写的很好,转载一下.(原文出处http://www.developer.com/java/other/article.php/3579756):Effective Code Reviews Without the PainBy Robert BogueCode reviews in most organizations are a painful experience for

2006-02-09 10:08:00 1843

原创 Class Wizard 出错: A duplicate insert block exists

class wizard出错与c++语法出错没有关系class wizard根据//{{来寻找插入函数的入口,所以,如果//{{出现的次数有多次,就出错了.需要注意的是,几时是被注释掉的代码,对class wizard也有影响,虽然编译能通过.参见http://www.codeguru.com/forum/archive/index.php/t-112218.htmlCheck that

2006-02-09 09:56:00 2939 1

原创 关于“VC编码规范 ”-评一篇blog

看了一篇blog文章“摘:VC编码规范document.title="摘:VC编码规范 - "+document.title ”(http://blog.csdn.net/lts007007/archive/2006/01/05/571377.aspx),有几点意见:函数名中用下划线,我觉得不好,ceate_point()我觉得可以写成CreatePoint(),这样的风格才是Window

2006-01-08 23:10:00 1577

原创 http://software.isixsigma.com/

http://software.isixsigma.com/ 讨论软件工程中的six sigma理论

2006-01-02 01:58:00 1275

转载 http://software.isixsigma.com/

http://software.isixsigma.com/ 讨论软件工程中的six sigma理论

2006-01-02 01:50:00 1087

原创 Mapping Modes and Round-Off Errors

Mapping Modes and Round-Off ErrorsRound-Off就是四舍五入的意思

2005-12-28 18:10:00 1889

原创 用CString作为Key使用CMap

遇到好几个人说CMap在用CString做key类型时有问题,说用int和DWORD就可以,用CString就不行。因此很多人推荐使用MFC中的CMapStringToPtr之类。看下面的代码://.h    CMap typeMap;//.cpp    typeMap.SetAt(_T("ONE"),1);    typeMap.SetAt(_T("TWO"),2);    int nValue

2005-12-26 23:17:00 4714 1

原创 You don't have time to fiddle with administrivia.

You dont have time to fiddle with administrivia.fiddle, vi.拉小提琴, 瞎搞 [fidl]administrivia, 每天重复性的电子信件,新闻,摘要等的处理工作

2005-11-30 21:18:00 1064

原创 The palest of ink is better than the best memory.

The palest of ink is better than the best memory.好记性不如烂笔头.pale 苍白的

2005-11-30 21:15:00 1771

原创 AfxGetMainWnd返回NULL也是可能的

AfxGetMainWnd返回NULL也是有可能的。因为_AFXWIN_INLINE CWnd* AFXAPI AfxGetMainWnd() { CWinThread* pThread = AfxGetThread();  return pThread != NULL ? pThread->GetMainWnd() : NULL; }而CWnd* CWinThread::GetMainWnd()

2005-11-27 23:34:00 4360 2

原创 在任务栏上显示/隐藏窗口

在任务栏上显示/隐藏窗口WS_EX_APPWINDOW Forces a top-level window onto the taskbar when the window is visible. 这个属性在对话框的属性页中是找不到的,可以直接在.rc中编辑。另外,WS_EX_TOOLWINDOW也可以在任务栏上隐藏窗口,但是那个窗口的标题栏会使用小字体。WS_EX_TOOLWINDOW   Cr

2005-11-26 12:35:00 2625

原创 Eat one's own dog food

这实际上是一个熟语,slangTo say that an association is "eating its own dog food" means that the association uses the products that it produces.有的说来源与微软,因为Microsoft emphasizes the use of its own beta and release

2005-11-17 12:27:00 2221

原创 判断一个字符串能否成为合法的文件名

windows里面,文件名的命名规则:http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/naming_a_file.asp按照这个规则,有人写了一个函数:http://www.codeproject.com/file/isvalidfilename.aspMS为什么不提供一个这样的函数呢?

2005-11-16 20:17:00 5841 1

原创 How To Drawing Transparent Bitmaps

TransparentBlt, But I think you should look at http://support.microsoft.com/default.aspx?scid=kb;en-us;79212 before you use this function.And I really recommand you look at http://www.winprog.net/tuto

2005-11-16 20:11:00 1300

原创 ON_MESSAGE macro doesn't make sense in non-CWnd derived classes

看msdn,突然看到这样一句话,why?#define ON_MESSAGE(message, memberFxn) / { message, 0, 0, 0, AfxSig_lwl, /  (AFX_PMSG)(AFX_PMSGW)(LRESULT (AFX_MSG_CALL CWnd::*)(WPARAM, LPARAM))&memberFxn },其中的指针,memberFxn,必须是指向C

2005-11-06 20:39:00 1066

原创 当工具栏数目变化时,LoadBarState出错

http://www.codeproject.com/docking/verifystateinfo.asp

2005-11-05 23:54:00 1061

原创 how to grey out a whole submenu?

http://www.microsoft.com/msj/0299/c/c0299.aspx

2005-11-05 13:57:00 841

原创 Tab stop in CFileDialog and CTabCtrl

When we add some controls to create a new costumered CFileDialog, its hard to nevigate to the new added controls by pressing tab key.The solution is to add WS_EX_CONTROLPARENT to the dialog, Cool!Fro

2005-11-05 12:35:00 1351

原创 尽可能的使用异常exeption处理

class CXX{  public:    CXX():m_n(0){;}    int foo(return m_n);  protected:    int m_n}//mainCXX* pXX = NULL;try{  pXX->foo();  //用了异常处理后,程序依然能够运行,而不会crash}catch(...){}

2005-11-04 21:55:00 962

原创 某一个类不能在class view中找到的快速、有效解决方法

在VC6中,明明有一个类,突然在class view中找不到了,怎么办?有很多人说删除.clw然后重新运行class wizard之类,但是还是有时候会出不来。最有效的办法:找到那个类的头文件(即.h文件),任意位置加一个空行,class view中就会马上重新出现那个类了我估计事VC重新parse了那个头文件,绝对有效,原创,转载请注明。

2005-10-29 22:49:00 1205

原创 VS 2005 可以下载了

http://community.csdn.net/Expert/topic/4358/4358827.xml

2005-10-29 22:25:00 1402 2

原创 Create和OnCreate的关系

某个CWnd的Create函数由当前CWnd的Owner调用, 而在CWnd::Create中,又会调用OnCreate函数,但是实际上这个时候Create函数还没有退出,CWnd的某些部分还没有创建好。所以,在CToolBar::OnCreate中,不能调用CommandToIndex,因为CommandToIndex需要等CToolBar全部创建好之后(CToolBar::Create退出)才

2005-10-27 23:26:00 2056

原创 关于CCmdUI

关于CCmdUI阅读MFC源代码void CFrameWnd::OnInitMenuPopup(CMenu* pMenu, UINT nIndex, BOOL bSysMenu),void CWnd::UpdateDialogControls(CCmdTarget* pTarget, BOOL bDisableIfNoHndler)还没有仔细看,但是csdn上有大牛指了个方向,先记下来,过几天再看

2005-06-30 21:57:00 1643 1

原创 CWinApp::Enable3dControls 在VS2005中也不支持了

在VS2005中,CWinApp::InitInstance里变化还是挺大的从VC6升级上的程序,要改一下,才能运行基本上把 AfxEnableControlContainer(); // Standard initialization // If you are not using these features and wish to reduce the size //  of your fi

2005-05-14 17:13:00 1396

原创 VS2005编译器的改进后,有些可能引起内存越界的函数不被推荐了

char c[10]; strcpy(c, "testtestts"); //ok with VC6, but not in VS2005 strcpy_s(c, _countof(c),"testtestt");//9 chars, ok in VS2005 strcpy_s(c, _countof(c),"testtestte");//10 chars, assert!!!!! in VS20

2005-05-14 00:20:00 1306

原创 VS2005编译器的一点改进 之 函数指针

class CInsLibrary  {public: CInsLibrary(){;} virtual ~CInsLibrary(){;}public: void Func(int i){;}};typedef void (CInsLibrary::*PFUNC)(int );//main.cpp PFUNC pp = CInsLibrary::Func;                    

2005-05-13 23:10:00 1539 1

原创 如何得到工具栏上button的个数

nCount = DefWindowProc(TB_BUTTONCOUNT, 0, 0);

2005-01-09 14:08:00 1087

原创 CDC中的Clipping Functions

以前一直不理解SelectClipRgn的含义。主要是不明白英语的clip对应中文中的什么操作。现在才彻底明白了。举例说:我想从左上角到右下脚画一条线,但是希望只在屏幕中间一个小矩形中有显示,这个时候,就把中间那个小矩形设为clip rgn就可以了,呵呵在mfc中,clip rgn在打印、打印预览中特别有用。

2005-01-04 20:41:00 1262

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除