??xml version="1.0" encoding="utf-8" standalone="yes"?>ս:C++博客 - սƵ2019|սع//www.pppqb.icu/aqazero/zh-cnSun, 15 Sep 2019 23:59:25 GMTSun, 15 Sep 2019 23:59:25 GMT60XML Serialization for Complex Object Model - սƵ2019|սع//www.pppqb.icu/aqazero/archive/2019/04/04/216331.htmlbrentbrentWed, 03 Apr 2019 17:31:00 GMT//www.pppqb.icu/aqazero/archive/2019/04/04/216331.html//www.pppqb.icu/aqazero/comments/216331.html//www.pppqb.icu/aqazero/archive/2019/04/04/216331.html#Feedback0//www.pppqb.icu/aqazero/comments/commentRss/216331.html//www.pppqb.icu/aqazero/services/trackbacks/216331.html
代码Q?br />
//www.pppqb.icu/Files/aqazero/DrawTools2005Xmlable.zip


brent 2019-04-04 01:31 发表评论
]]>
An Implement of Topological Sort in C# 拓扑排序 - սƵ2019|սع//www.pppqb.icu/aqazero/archive/2019/04/04/216330.htmlbrentbrentWed, 03 Apr 2019 17:28:00 GMT//www.pppqb.icu/aqazero/archive/2019/04/04/216330.html//www.pppqb.icu/aqazero/comments/216330.html//www.pppqb.icu/aqazero/archive/2019/04/04/216330.html#Feedback0//www.pppqb.icu/aqazero/comments/commentRss/216330.html//www.pppqb.icu/aqazero/services/trackbacks/216330.htmlreference:
https://en.wikipedia.org/wiki/Topological_sorting

代码Q?br />
//www.pppqb.icu/Files/aqazero/TopoSort.zip


brent 2019-04-04 01:28 发表评论
]]>
Read tiff File Tags in C# dTiff文g?/title><link>//www.pppqb.icu/aqazero/archive/2019/04/04/216329.html</link><dc:creator>brent</dc:creator><author>brent</author><pubDate>Wed, 03 Apr 2019 17:24:00 GMT</pubDate><guid>//www.pppqb.icu/aqazero/archive/2019/04/04/216329.html</guid><wfw:comment>//www.pppqb.icu/aqazero/comments/216329.html</wfw:comment><comments>//www.pppqb.icu/aqazero/archive/2019/04/04/216329.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>//www.pppqb.icu/aqazero/comments/commentRss/216329.html</wfw:commentRss><trackback:ping>//www.pppqb.icu/aqazero/services/trackbacks/216329.html</trackback:ping><description><![CDATA[资源:<br /><div class="dpun">https://en.wikipedia.org/wiki/List_of_file_signatures</div><div class="dpun">//www.fileformat.info/format/tiff/corion.htm</div><div class="dpun">https://mh-nexus.de/en/hxd/</div><br />代码Q?br /><div class="dpun">//www.pppqb.icu/Files/aqazero/TiffTag.zip</div><img src ="//www.pppqb.icu/aqazero/aggbug/216329.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="//www.pppqb.icu/aqazero/" target="_blank">brent</a> 2019-04-04 01:24 <a href="//www.pppqb.icu/aqazero/archive/2019/04/04/216329.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Red Black Tree in C# - սƵ2019|սع//www.pppqb.icu/aqazero/archive/2017/04/29/214894.htmlbrentbrentFri, 28 Apr 2017 21:02:00 GMT//www.pppqb.icu/aqazero/archive/2017/04/29/214894.html//www.pppqb.icu/aqazero/comments/214894.html//www.pppqb.icu/aqazero/archive/2017/04/29/214894.html#Feedback0//www.pppqb.icu/aqazero/comments/commentRss/214894.html//www.pppqb.icu/aqazero/services/trackbacks/214894.html
I failed to find anything that can be used directly, it is hard to believe, a lot of implement of red-black tree in Java or C++ can be easily got from internet (although none of them meets my requirement), but none in C#.

So I had to implement one, it was translated from a C++ implement and modified to provide an immutable node.

Source code 
Example:
 1         RBTree<int> rbt = new RBTree<int>(Comparer<int>.Default);
 2         rbt.Add(3);
 3         rbt.Add(1);
 4         rbt.Add(10);
 5         rbt.Add(6);
 6         rbt.Add(7);
 7         rbt.Remove(10);
 8         RBNode<int> node6 = rbt.GetNode(6);
 9         rbt.Remove(node6);
10 
11         RBNode<int> node = rbt.GetNode(3);
12         node = node.Prev;
13         while (null != node)
14         {
15             System.Diagnostics.Trace.WriteLine(node.Value);
16             node = node.Next;
17         }

Output:
1
3
7


brent 2017-04-29 05:02 发表评论
]]>
use regular expressions in visual studio to modify xaml in batch - սƵ2019|սع//www.pppqb.icu/aqazero/archive/2016/05/10/213484.htmlbrentbrentTue, 10 May 2016 06:23:00 GMT//www.pppqb.icu/aqazero/archive/2016/05/10/213484.htmlxmlns:lex="//schemas.root-project.org/xaml/presentation"
xmlns:p="clr-namespace:Pasasoft.Fep.UI.Properties"

"{lex:LocText Key=([a-zA-Z_]+), Assembly=Pasasoft.Fep.UI}"
"{x:Static p:Resources.$1}"


brent 2016-05-10 14:23 发表评论
]]>
Quotes to live by - սƵ2019|սع//www.pppqb.icu/aqazero/archive/2014/01/17/205451.htmlbrentbrentFri, 17 Jan 2014 12:43:00 GMT//www.pppqb.icu/aqazero/archive/2014/01/17/205451.html//www.pppqb.icu/aqazero/comments/205451.html//www.pppqb.icu/aqazero/archive/2014/01/17/205451.html#Feedback1//www.pppqb.icu/aqazero/comments/commentRss/205451.html//www.pppqb.icu/aqazero/services/trackbacks/205451.htmlAlways code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. - (Martin Golding)

There are two ways to write error-free programs; only the third one works. - (Alan J. Perlis) 

A good programmer is someone who always looks both ways before crossing a one-way street. - (Doug Linder)

It should be noted that no ethically -trained software engineer would ever consent to write a DestroyBaghdad procedure. Basic professional ethics would instead require him to write a DestroyCity procedure, to which Baghdad could be given as a parameter.  ― Nathaniel S. Borenstein

You've baked a really lovely cake, but then you've used dog sh*t for frosting. ― Steve Jobs

//www.codeproject.com/Messages/4739776/Quotes-to-live-by.aspx


brent 2014-01-17 20:43 发表评论
]]>
printer driver - սƵ2019|սع//www.pppqb.icu/aqazero/archive/2012/09/12/190456.htmlbrentbrentWed, 12 Sep 2012 15:26:00 GMT//www.pppqb.icu/aqazero/archive/2012/09/12/190456.html//www.pppqb.icu/aqazero/comments/190456.html//www.pppqb.icu/aqazero/archive/2012/09/12/190456.html#Feedback0//www.pppqb.icu/aqazero/comments/commentRss/190456.html//www.pppqb.icu/aqazero/services/trackbacks/190456.htmlC:\PROGRA~2\COMMON~1\FLOORC~1\FEP\PRIMOA~2\PrimoRun.exe
1) disable driver digital signatures
//answers.microsoft.com/en-us/windows/forum/windows_7-windows_programs/turning-off-digital-signatures/23c67c73-3fa0-4de3-a9b5-3adf4c3472f3 

You can disable digitally signed signatures, however it is not recommended.
Important: The driver signing enforcement in Windows 7 and Vista is there for a reason. Unsigned drivers could theoretically contain malicious code and harm your computer.

Step 1: Click Start button on the left bottom corner of desktop. In the search box, type "cmd"

Step 2: Go to Run command, and right click on command prompt and click on "Run as administrator".

Step 3: In the command prompt, type in these commands: Be very careful here. BCDEDIT controls how your computer boots up.

IMPORTANT:make a backup of your bcd file first. To do that, type:
bcdedit /export C:\savedbcd

This will create a file c:\savebcd which is your boot entry backup.
If you mess up, you can always undo changes by:

bcdedit /import c:\savedbcd

Then type these commands:

bcdedit.exe -set loadoptions DDISABLE_INTEGRITY_CHECKS
bcdedit.exe -set TESTSIGNING ON

After you finished the steps above mentioned, you have made digital driver signing signature disabled for all installation. So you can install device drivers on Windows 7 without warning message that those drivers should be digitally signed.


2) install gpedit on window 7 basic 
//www.askvg.com/how-to-enable-group-policy-editor-gpedit-msc-in-windows-7-home-premium-home-basic-and-starter-editions/comment-page-4/#comments 

NOTE: For Windows 7 64-bit (x64) users! You'll also need to go to "SysWOW64" folder present in C:\Windows folder and copy "GroupPolicy", "GroupPolicyUsers" folders and gpedit.msc file from there and paste them in "C:\Windows\System32" folder. 

//www.pppqb.icu/Files/aqazero/add_gpedit_msc_by_jwils876-d3kh6vm.zip


3) uninstall AOL 
//answers.yahoo.com/question/index?qid=20061224095808AAMxsCT 
AOL ANTIVIRUS AOL SPYWARE PROTECTION  AOL FIREWALL AOL SAFETY AND SECURITY CENTER 

//forums.techguy.org/digital-photography-imaging/536280-alternate-solution-printer-driver-unknown.html 





brent 2012-09-12 23:26 发表评论
]]>
polygon offset demo (Fifth and Final version) (Updated) - սƵ2019|սع//www.pppqb.icu/aqazero/archive/2010/09/09/126241.htmlbrentbrentThu, 09 Sep 2010 07:27:00 GMT//www.pppqb.icu/aqazero/archive/2010/09/09/126241.html//www.pppqb.icu/aqazero/comments/126241.html//www.pppqb.icu/aqazero/archive/2010/09/09/126241.html#Feedback20//www.pppqb.icu/aqazero/comments/commentRss/126241.html//www.pppqb.icu/aqazero/services/trackbacks/126241.html//www.pppqb.icu/Files/aqazero/OffsetDemo6.zip



brent 2010-09-09 15:27 发表评论
]]>
simulate OnIdle in MFC ActiveX control - սƵ2019|սع//www.pppqb.icu/aqazero/archive/2010/04/15/112672.htmlbrentbrentThu, 15 Apr 2010 07:49:00 GMT//www.pppqb.icu/aqazero/archive/2010/04/15/112672.html//www.pppqb.icu/aqazero/comments/112672.html//www.pppqb.icu/aqazero/archive/2010/04/15/112672.html#Feedback0//www.pppqb.icu/aqazero/comments/commentRss/112672.html//www.pppqb.icu/aqazero/services/trackbacks/112672.html
Method A:
::SetWindowsHookEx(WH_FOREGROUNDIDLE, YourIdleProc, AfxGetInstanceHandle(), GetCurrentThreadId());

Method B (my way):
 1 static HHOOK s_hGetMsgHook = NULL;
 2 
 3 LRESULT FAR PASCAL GetMsgProc(int nCode, WPARAM wParam, LPARAM lParam)
 4 {
 5     AFX_MANAGE_STATE(AfxGetStaticModuleState( ));
 6 
 7     LPMSG lpMsg = (LPMSG) lParam;
 8     if( (nCode >= 0&& PM_REMOVE == wParam)
 9     {
10         //your code here. maybe to deal with hot-keys, accelerators ...
11         //see //support.microsoft.com/kb/187988
12 
13         //my code to simulate OnIdle
14         static BOOL bIdle = FALSE;
15         CWinApp* pApp = AfxGetApp();
16         if(!bIdle && pApp->IsIdleMessage(lpMsg))
17             bIdle = TRUE;
18         
19         if(bIdle)
20         {
21             MSG msgPeek = {0};
22             if(!::PeekMessage(&msgPeek, NULL, NULL, NULL, PM_NOREMOVE))
23             {
24                 VERIFY(PostMessage(AfxGetMainWnd()->GetSafeHwnd(), WM_USER+0x120x340x56));
25             }
26         }
27 
28         if(lpMsg->hwnd == AfxGetMainWnd()->GetSafeHwnd() &&
29             lpMsg->message == WM_USER+0x12 && lpMsg->wParam == 0x34 && lpMsg->lParam == 0x56)
30         {
31             lpMsg->message = WM_NULL;
32             lpMsg->lParam = 0L;
33             lpMsg->wParam = 0L;
34 
35             pApp->OnIdle(0);
36             bIdle = FALSE;
37         }
38     }
39 
40     return ::CallNextHookEx(s_hGetMsgHook, nCode, wParam, lParam);
41 }
42 
43 int CYourOleControl::OnCreate(LPCREATESTRUCT lpCreateStruct) 
44 {
45     //...
46     
47     if(NULL == s_hGetMsgHook)
48         s_hGetMsgHook = ::SetWindowsHookEx(WH_GETMESSAGE, GetMsgProc, AfxGetInstanceHandle(), GetCurrentThreadId());
49 }
50 
51 void CYourOleControl::OnDestroy() 
52 {
53     //...
54     
55     ::UnhookWindowsHookEx(s_hGetMsgHook);
56     s_hGetMsgHook = NULL;
57 
58     COleControl::OnDestroy();
59 }

Method A is far more simple, but with Method B:

1) You can override CWinApp::IsIdleMessage to filter some special messages, such as a frequent timer which will not affect what you want to do in CWinApp::OnIdle. Because timer will affect message queue and if you don't filter it, OnIdle will be called every time after the timer is invoked.

2) Sometimes your action in OnIdle will affect message queue inevitably, thus you will get a infinite loop: OnIdle->the special messages in message queue->OnIdle->... But with Method B, with SPY++ you can find the special messages, and filter them in IsIdleMessage.


brent 2010-04-15 15:49 发表评论
]]>
q是个很狡猾的bug?/title><link>//www.pppqb.icu/aqazero/archive/2010/03/04/108868.html</link><dc:creator>brent</dc:creator><author>brent</author><pubDate>Thu, 04 Mar 2010 03:12:00 GMT</pubDate><guid>//www.pppqb.icu/aqazero/archive/2010/03/04/108868.html</guid><wfw:comment>//www.pppqb.icu/aqazero/comments/108868.html</wfw:comment><comments>//www.pppqb.icu/aqazero/archive/2010/03/04/108868.html#Feedback</comments><slash:comments>4</slash:comments><wfw:commentRss>//www.pppqb.icu/aqazero/comments/commentRss/108868.html</wfw:commentRss><trackback:ping>//www.pppqb.icu/aqazero/services/trackbacks/108868.html</trackback:ping><description><![CDATA[某天Q?发现一个bugQ?会导致release版本下异常, 但在debug版本下正常, 可以定位该bug在下面代码中Q?br> <div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>//www.CodeHighlighter.com/<br><br>--><span style="color: #0000ff;">void</span><span style="color: #000000;"> CMoveHandlerStateDraw::OnLButtonUp(UINT nFlags, CPoint point)<br>{<br>    <img src="//www.pppqb.icu/Images/dot.gif"><br>    <br>    AdjustPoint(point);<br><br>    m_pHandler</span><span style="color: #000000;">-></span><span style="color: #000000;">Drop(point, m_ptHandlerPos);<br><br>    <img src="//www.pppqb.icu/Images/dot.gif"><br>}</span></div> 但是Q一旦往q个函数中插入用来dump数据的代码, bug׃再出玎ͼ 不论是将数据写到文gq是昄在messagebox上?<br>启用release版本?Debug Information"Q?bug也不再出现?br>q只是?span style="color: #000000;">该函C声明一个CString变量Q?q个狡猾的bugg马上q道,马上phQ?把这个变量一LQ?它马上又跑出来了?br><br>但后来发玎ͼ q只是一只很普通的bugQ根本没什么超能力?br><br>聪明的你Q知道这是ؓ什么吗Q?br><br></span> <img src ="//www.pppqb.icu/aqazero/aggbug/108868.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="//www.pppqb.icu/aqazero/" target="_blank">brent</a> 2010-03-04 11:12 <a href="//www.pppqb.icu/aqazero/archive/2010/03/04/108868.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>vista windows 7 areo progress bar - սƵ2019|սع//www.pppqb.icu/aqazero/archive/2009/11/06/100283.htmlbrentbrentFri, 06 Nov 2009 03:56:00 GMT//www.pppqb.icu/aqazero/archive/2009/11/06/100283.html//www.pppqb.icu/aqazero/comments/100283.html//www.pppqb.icu/aqazero/archive/2009/11/06/100283.html#Feedback0//www.pppqb.icu/aqazero/comments/commentRss/100283.html//www.pppqb.icu/aqazero/services/trackbacks/100283.html
//stackoverflow.com/questions/313792/disabling-progress-bar-animation-on-vista-aero
//msdn.microsoft.com/en-us/library/aa511486.aspx

?meters"? 没空啊?br>
我的暴力Ҏ是:
g_xpStyle.SetWindowTheme(m_hProgressWnd, L"",L"");

g_xpStyle 是那个 CVisualStylesXPQ?google 一下就有了?br>

brent 2009-11-06 11:56 发表评论
]]>
从资源中加蝲jpg, png到GDI+ Image - սƵ2019|սع//www.pppqb.icu/aqazero/archive/2009/11/05/100221.htmlbrentbrentThu, 05 Nov 2009 08:01:00 GMT//www.pppqb.icu/aqazero/archive/2009/11/05/100221.html//www.pppqb.icu/aqazero/comments/100221.html//www.pppqb.icu/aqazero/archive/2009/11/05/100221.html#Feedback0//www.pppqb.icu/aqazero/comments/commentRss/100221.html//www.pppqb.icu/aqazero/services/trackbacks/100221.html
1Q?是Bitmap(RT_BITMAP)cd的图片无法加载, RT_BITMAP是预定义cdQ?资源里面没有bmp文g的头Q?SizeofResource 的返回D比图片文?/span>几个字节,因ؓ了q几个字节, 所以GDI+会返回invalid parameter错误?br>
2Q??span style="color: #000000;">IStream
里面创徏出来的Image对象g会引用到堆里面的内存Q?如果hBuffer被释放了Q?创徏的Image的内容就会被破坏Q有时只能画Z部分图片, 有时整个囄是I白Q?视当时的内存状况而定。调用Image的Clone也没用?br>

CYourClass::~CYourClass()
{
    
for(IMG_VECTOR::iterator it = m_arImage.begin(); it != m_arImage.end(); it++)
        delete 
*it;
    
for(HGLB_VECTOR::iterator it = m_arGlobal.begin(); it != m_arGlobal.end(); it++)
    {
        ::GlobalUnlock(
*it);
        ::GlobalFree(
*it);
    }
}

void CYourClass::AddImage(HMODULE hInst, UINT nResourceID, LPCTSTR lpType)
{
    
if(lpType == RT_BITMAP)
    {
        
//GDI+ can not load RT_BITMAP resouce, 
        
//because they are predefined resource, 
        
//they don't contains the image file header.
        assert(FALSE);
        
return;
    }

    HRSRC hResource 
= ::FindResource(hInst, MAKEINTRESOURCE(nResourceID), lpType);
    
if (!hResource)
        
return;

    DWORD imageSize 
= ::SizeofResource(hInst, hResource);
    
if (!imageSize)
        
return;

    
const void* pResourceData = ::LockResource(::LoadResource(hInst, hResource));
    
if (!pResourceData)
        
return;

    HGLOBAL hBuffer 
= ::GlobalAlloc(GMEM_FIXED, imageSize);
    
if (NULL == hBuffer)
        
return;

    
void* pBuffer = ::GlobalLock(hBuffer);
    
if (pBuffer)
    {
        CopyMemory(pBuffer, pResourceData, imageSize);
        IStream
* pStream = NULL;
        
if (::CreateStreamOnHGlobal(hBuffer, FALSE, &pStream) == S_OK)
        {
            Gdiplus::Image 
* pImage = Gdiplus::Image::FromStream(pStream);
            pStream
->Release();
            
if (pImage)
            { 
                
if (pImage->GetLastStatus() == Gdiplus::Ok &&
                    pImage
->GetWidth() > 0)
                {
                    m_arImage.push_back(pImage);
                    
//it seems the image will take usage of the global memory.
                    
//so the global memory should be kept until the image destroy.
                    m_arGlobal.push_back(hBuffer);
                    
return;
                }

                delete pImage;
            }
        }
        ::GlobalUnlock(hBuffer);
    }
    ::GlobalFree(hBuffer);
}



brent 2009-11-05 16:01 发表评论
]]>
恨不盔R未嫁时 - սƵ2019|սع//www.pppqb.icu/aqazero/archive/2009/10/29/99731.htmlbrentbrentThu, 29 Oct 2009 03:56:00 GMT//www.pppqb.icu/aqazero/archive/2009/10/29/99731.html//www.pppqb.icu/aqazero/comments/99731.html//www.pppqb.icu/aqazero/archive/2009/10/29/99731.html#Feedback0//www.pppqb.icu/aqazero/comments/commentRss/99731.html//www.pppqb.icu/aqazero/services/trackbacks/99731.htmlbcgcontrolbar

Z间最痛苦的事莫过于此?br>


brent 2009-10-29 11:56 发表评论
]]>
使用ASP.net + WF的感?/title><link>//www.pppqb.icu/aqazero/archive/2009/04/06/79108.html</link><dc:creator>brent</dc:creator><author>brent</author><pubDate>Mon, 06 Apr 2009 10:30:00 GMT</pubDate><guid>//www.pppqb.icu/aqazero/archive/2009/04/06/79108.html</guid><wfw:comment>//www.pppqb.icu/aqazero/comments/79108.html</wfw:comment><comments>//www.pppqb.icu/aqazero/archive/2009/04/06/79108.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>//www.pppqb.icu/aqazero/comments/commentRss/79108.html</wfw:commentRss><trackback:ping>//www.pppqb.icu/aqazero/services/trackbacks/79108.html</trackback:ping><description><![CDATA[两个多星期的努力Q?l于把Prototype搞定了。实C以下功能Q?br><br>1Q一个state machine workflow(Fund Request Process work flow)<br>2Q?使用Polic来控制业务逻辑<br>3Q实Cxoml和dll的分,动态加载xomlQ提供一个编辑工P可以edit the workflow on-the-fly<br><br>1, q没有传说中的那么难<br>ASP.net和WF我都不熟Q?Ҏ两本书,一个msdn上的例子"Web Form Workflow Approvals Stater kit"和另一个例子Orders //www.odetocode.com/Articles/465.aspx的基上把prototype搞出来了?br><br>2Q理解概念很重要<br>如果不理解WF是怎么调用外部函数QCallExternalMethodActivityQ, 是怎么传EventlWFQHandleExternalEventActivityQ,DependencyProperty是怎么回事Q?基本不用再搞了?br><br>3Q很多设计可?br>WF只实Cworkflow最内核的部分,非常灉|?同样的实现可以采用完全不同的实现方式?怎么实现workflow definitionQ?怎么设计ActivitiesQ?需要ؓActivitiesd那些DependencyPropertyQ?q些DependencyProperty是怎么互相兌的, 怎么只在xoml里面保存workflow definitionQ?怎么实现Workflow和业务数据的交互Q?怎么实现Workflow和组l结构或者role的关联, 都可以有完全不同的设计?br><br>4Q还有很多概c?br>因ؓ是prototypeQ?很多东西没考虑Q?比如事务transation或者CompensateQ?异常处理{?br><br><br><img alt="" src="//www.pppqb.icu/images/cppblog_com/aqazero/gpas_program_struct.jpg" width="1228" height="768"><br><br> <img src ="//www.pppqb.icu/aqazero/aggbug/79108.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="//www.pppqb.icu/aqazero/" target="_blank">brent</a> 2009-04-06 18:30 <a href="//www.pppqb.icu/aqazero/archive/2009/04/06/79108.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>create mfc dialog by template will drive you mad. - սƵ2019|սع//www.pppqb.icu/aqazero/archive/2008/11/19/67287.htmlbrentbrentWed, 19 Nov 2008 07:10:00 GMT//www.pppqb.icu/aqazero/archive/2008/11/19/67287.html//www.pppqb.icu/aqazero/comments/67287.html//www.pppqb.icu/aqazero/archive/2008/11/19/67287.html#Feedback0//www.pppqb.icu/aqazero/comments/commentRss/67287.html//www.pppqb.icu/aqazero/services/trackbacks/67287.html
And now, sometimes , i need CMyDialog to be a model dialog (WS_POPUP), sometimes be a child of another dialog(WS_CHILD).

How to make this done without duplicating the template in resource?

Call ModifyStyle after creation? Failed
Modify the LPCREATESTRUCT's style in CMyDialog::OnCreate ? Failed.
Override PreCreateWindow? Failed.

After a lot of tracing and a lot of googling. I worked out something like this:

BOOL CMyDialog::CreateAsChild(CWnd * pParent)
{
    
if(!IsWindow(pParent->GetSafeHwnd()))
        
return FALSE;

    m_lpszTemplateName 
= ATL_MAKEINTRESOURCE(IDD_WALLLAYER_PROPERTYPAGE);  // used for help
    if (m_nIDHelp == 0)
        m_nIDHelp 
= LOWORD((DWORD_PTR)m_lpszTemplateName);

    HINSTANCE hInst 
= AfxFindResourceHandle(m_lpszTemplateName, RT_DIALOG);
    HRSRC hResource 
= ::FindResource(hInst, m_lpszTemplateName, RT_DIALOG);
    HGLOBAL hTemplate 
= LoadResource(hInst, hResource);
    LPCDLGTEMPLATE lpDialogTemplate 
= (LPCDLGTEMPLATE)LockResource(hTemplate);
    DLGTEMPLATEEX
* lpDlgTmpEx = (DLGTEMPLATEEX* )lpDialogTemplate;
    DWORD dwOldStyle 
= 0;
    BOOL bIsDlgEx 
= lpDlgTmpEx->signature == 0xFFFF;
    
if(bIsDlgEx)
    {
        dwOldStyle 
= lpDlgTmpEx->style;
        lpDlgTmpEx
->style = DS_SETFONT | WS_CHILD;
    }
    
else
    {
        dwOldStyle 
= ((LPDLGTEMPLATE)lpDialogTemplate)->style;
        ((LPDLGTEMPLATE)lpDialogTemplate)
->style = DS_SETFONT | WS_CHILD;
    }
    m_lpDialogInit 
= NULL;
    BOOL bResult 
= CreateDlgIndirect(lpDialogTemplate, pParent, hInst);
    
if(bIsDlgEx)
        lpDlgTmpEx
->style = dwOldStyle;
    
else
        ((LPDLGTEMPLATE)lpDialogTemplate)
->style = dwOldStyle;
    UnlockResource(hTemplate);
    FreeResource(hTemplate);
    
return bResult;
}

If you need your dialog to behavior as WS_POPUP or WS_CHILD without duplicating your dialog template, you just get an ugly answer. And anyone who know another better way, let me know please.

MFC


brent 2008-11-19 15:10 发表评论
]]>
-_- 释放托管资源Q?/title><link>//www.pppqb.icu/aqazero/archive/2008/10/08/63485.html</link><dc:creator>brent</dc:creator><author>brent</author><pubDate>Wed, 08 Oct 2008 09:06:00 GMT</pubDate><guid>//www.pppqb.icu/aqazero/archive/2008/10/08/63485.html</guid><wfw:comment>//www.pppqb.icu/aqazero/comments/63485.html</wfw:comment><comments>//www.pppqb.icu/aqazero/archive/2008/10/08/63485.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>//www.pppqb.icu/aqazero/comments/commentRss/63485.html</wfw:commentRss><trackback:ping>//www.pppqb.icu/aqazero/services/trackbacks/63485.html</trackback:ping><description><![CDATA[有一本书叫《Effective C#》,被翻译了Q里面有一章叫《实现标准Dispose模式》,里面有一句话叫做Q?br><br>"释放托管资源"。莫非是"release managed resource"?<br><br>什么叫做释放托资?release managed resource)? 莫非是把成员的引用设|ؓnull?<br><br>一般来说如果一个对象被dispose了,那它也要马上人间蒸发了,GC从全局变量和栈里面p找不到它了,更不要说它的内部成员变量了,q时候设|它的成员ؓnull有什么必要呢Q?br><br>看了MSDN才知道,人家?dispose managed resource"Q就是调用managed的对象的disposeҎ?br><br>太囧了,无法用中文表达?br><br>有牛人在研究用中文写E序Qؓ什么IG奖不颁发给它呢Q?同时Q我l于知道Z么英文媄印版的书比中文翻译版的要贵了?br><br><img src ="//www.pppqb.icu/aqazero/aggbug/63485.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="//www.pppqb.icu/aqazero/" target="_blank">brent</a> 2008-10-08 17:06 <a href="//www.pppqb.icu/aqazero/archive/2008/10/08/63485.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>囑Ş文本~辑器的源码和简单文?/title><link>//www.pppqb.icu/aqazero/archive/2008/08/27/60165.html</link><dc:creator>brent</dc:creator><author>brent</author><pubDate>Wed, 27 Aug 2008 08:05:00 GMT</pubDate><guid>//www.pppqb.icu/aqazero/archive/2008/08/27/60165.html</guid><wfw:comment>//www.pppqb.icu/aqazero/comments/60165.html</wfw:comment><comments>//www.pppqb.icu/aqazero/archive/2008/08/27/60165.html#Feedback</comments><slash:comments>5</slash:comments><wfw:commentRss>//www.pppqb.icu/aqazero/comments/commentRss/60165.html</wfw:commentRss><trackback:ping>//www.pppqb.icu/aqazero/services/trackbacks/60165.html</trackback:ping><description><![CDATA[我说的图形文本编辑器不是U文本编辑,?<a target="_blank" title="自己实现囑Ş文本~辑? href="//www.pppqb.icu/aqazero/archive/2006/12/01/15835.html">自己实现囑Ş文本~辑?/a> 或?<a target="_blank" title="Graphical text proposal (draft)" >Graphical Text Proposal (Draft)</a><br><br><a target="_blank" title="Demo 地址" href="//www.pppqb.icu/Files/aqazero/BrentEditor_demo.zip">Demo EXE 地址</a> (无公宻I因ؓ是用wxWidgetsQ连Icon都没有,l常把hl吓着了。该E序对硬件无要求Q对使用者有一定要?..)<br><br><a target="_blank" title="源代? href="//www.pppqb.icu/Files/aqazero/BrentEditor.rar">源代码地址</a><br><br>~译需?a target="_blank" title="wxWidgets" >wxWidgets</a>。在q之后再没用qwxWidgets了,感觉是另一套MFC?br><br>抓个?<br><img src="//www.pppqb.icu/images/cppblog_com/aqazero/editor.JPG" border="0"><br><br>写到Table和导出html部分的时候就力不从心了,草草了事?导出html是做得最人模狗样Q但却最败Q其中的部分?英文版操作系l下导出html会crashQ原因未?<br><br>一直有用C#重新写一个的冲动Q只是到时一定又是虎头蛇?br> <img src ="//www.pppqb.icu/aqazero/aggbug/60165.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="//www.pppqb.icu/aqazero/" target="_blank">brent</a> 2008-08-27 16:05 <a href="//www.pppqb.icu/aqazero/archive/2008/08/27/60165.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>桃李不言Q下自成y?/title><link>//www.pppqb.icu/aqazero/archive/2008/08/27/60134.html</link><dc:creator>brent</dc:creator><author>brent</author><pubDate>Wed, 27 Aug 2008 04:01:00 GMT</pubDate><guid>//www.pppqb.icu/aqazero/archive/2008/08/27/60134.html</guid><wfw:comment>//www.pppqb.icu/aqazero/comments/60134.html</wfw:comment><comments>//www.pppqb.icu/aqazero/archive/2008/08/27/60134.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>//www.pppqb.icu/aqazero/comments/commentRss/60134.html</wfw:commentRss><trackback:ping>//www.pppqb.icu/aqazero/services/trackbacks/60134.html</trackback:ping><description><![CDATA[有个控g叫CTreeListCtrlQ我用了好久了,暗爽了很久,最作者是来敬仰啊<br><br>最q无意中发现Q作者TigerX原来pd球村中国ӞƧ耶?br>地址Q//www.codeproject.com/KB/tree/ctreelistctrl.aspx<br><br>q以为codeproject上没其它中国土h呢,华h倒是知道有好几个?br><br>Z在codeproject发了文章,讲xml序列化复杂对象模型的Q门可罗雀啊?br>//www.codeproject.com/KB/cs/xmlable.aspx<br><br>嗯,很有差别?br><br> <img src ="//www.pppqb.icu/aqazero/aggbug/60134.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="//www.pppqb.icu/aqazero/" target="_blank">brent</a> 2008-08-27 12:01 <a href="//www.pppqb.icu/aqazero/archive/2008/08/27/60134.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>C++各大名库(转蝲之{载之转蝲...) - սƵ2019|սع//www.pppqb.icu/aqazero/archive/2008/08/21/59506.htmlbrentbrentThu, 21 Aug 2008 02:40:00 GMT//www.pppqb.icu/aqazero/archive/2008/08/21/59506.html//www.pppqb.icu/aqazero/comments/59506.html//www.pppqb.icu/aqazero/archive/2008/08/21/59506.html#Feedback1//www.pppqb.icu/aqazero/comments/commentRss/59506.html//www.pppqb.icu/aqazero/services/trackbacks/59506.html
在C++中,库的C是非帔R的。C++之父 Bjarne Stroustrup先生多次表示了设计库来扩充功能要好过设计更多的语法的a论。现实中QC++的库门类J多Q解决的问题也是极其q泛Q库从轻量到重 量的都有。不都是让人眼界大开Q亦或是望而生叹的思维C。由于库的数量非常庞大,而且限于W者水qI其中很多q不了解。所以文中所提的一些库都是? 较著名的大型库?

标准?/font>

标准库中提供了C++E序的基本设施。虽然C++标准库随着C++标准折腾了许多年Q直到标准的出台才正式定型,但是在标准库的实C却很令hƣ慰得看到多U实玎ͼq且已被实践证明为有工业U别强度的佳作?/p>

1?nbsp;  Dinkumware C++ Library

参考站点://www.dinkumware.com/
P.J. Plauger~写的高品质的标准库。P.J. Plauger博士是Dr. Dobb'sE序设计杰出奖的获得者。其~写的库长期被Microsoft采用Qƈ且最qBorland也取得了其OEM的licenseQ在? C/C++的品中采用Dinkumware的库?/p>

2?nbsp;  RogueWave Standard C++ Library

参考站点:

//www.roguewave.com
q个库在Borland C++ Builder的早期版本中曄被采用,后来被其他的库给替换了。笔者不推荐使用?/p>

3、SGI STL

参考站点:

//www.roguewave.com

SGI公司的C++标准模版库?/p>

4、STLport

参考站点://www.stlport.org/

SGI STL库的跨^台可UL版本?/p>

 

准标准库——Boost

Boost库是一个经q千锤百点{可UL、提供源代码的C++库,作ؓ标准库的后备Q是C++标准化进E的发动Z一? Boost库由C++标准委员会库工作l成员发P在C++C֌中媄响甚大,其成员已q?000人? Boost库ؓ我们带来了最新、最酗最实用的技术,是不折不扣的“?#8221;标准库?/p>

Boost中比较有名气的有q么几个库:

Regex
正则表达式库

Spirit
LL parser frameworkQ用C++代码直接表达EBNF

Graph
囄件和法

Lambda
在调用的地方定义短小匿名的函数对象,很实用的functional功能

concept check
查泛型编E中的concept

Mpl
用模板实现的元编E框?/p>

Thread
可移植的C++多线E库

Python
把C++cd函数映射到Python之中

Pool
内存池管?/p>

smart_ptr
5个智能指针,学习指针必读Q一份不错的参考是来自CUJ的文章:

Smart Pointers in Boost,哦,q篇文章可以查到QCUJ是提供在U浏览的。中文版见笔者在《Dr. Dobb's Journal软g研发杂志》第7辑上的译文?/p>


BoostM来说是实用h值很高,质量很高的库。ƈ且由于其对跨q_的强调,Ҏ准C++的强调,是编写^台无养ICC++的开发者必 备的工具。但是Boost中也有很多是实验性质的东西,在实际的开发中实用需要}慎。ƈ且很多Boost中的库功能堪U对语言功能的扩展,其构造用精? 的手法,不要贸然的花Ҏ间研诅RBoost另外一面,比如Graphq样的库则是h工业强度Q结构良好,非常值得研读的精品代码,q且也可以放心的? 产品代码中多多利用?/p>

参考站点://www.boost.orgQ国内镜像://www.c-view.org/tech/lib/boost/index.htmQ?/p>

GUI

在众多C++的库中,GUI部分的库是比较J荣Q也比较引h注目的。在实际开发中QGUI库的选择也是非常重要的一件事情,下面我们lD一下可选择的GUI库,各自的特点以及相兛_L支持?/p>

1?nbsp;  MFC

大名鼎鼎的微软基cdQMicrosoft Foundation ClassQ。大凡学qVC++的h都应该知道这个库。虽然从技术角度讲QMFC是不大漂亮的Q但是它构徏于Windows API 之上Q能够ɽE序员的工作更容?~程效率高,减少了大量在建立 Windows E序时必ȝ写的代码Q同时它q提供了所有一?C++ ~程的优点,例如l承和封装。MFC ~写的程序在各个版本的Windows操作pȝ上是可移植的Q例如,?Windows 3.1下编写的代码可以很容易地UL?Windows NT ?Windows 95 上。但是在最q发展以及官Ҏ持上日渐势微?/p>

 

2?nbsp;  QT

参考网站://www.trolltech.com
Qt 是Trolltech公司的一个多q_的C++囑Ş用户界面应用E序框架。它提供l应用程序开发者徏立艺术的图形用L面所需的所用功能。Qt是完全面 向对象的很容易扩展,q且允许真正地组件编E。自?996q早些时候,Qtq入商业领域Q它已经成ؓ全世界范围内数千U成功的应用E序的基。Qt也是 行的Linux桌面环境KDE 的基Q同时它q支持Windows、Macintosh、Unix/X11{多U^台?/p>

 3、WxWindows

参考网站://www.wxwindows.org

跨^台的GUI库。因为其cdơ极像MFCQ所以有文章介绍从MFC到WxWindows的代码移植以实现跨^台的功能。通过多年的开发也是一个日 完善的GUI库,支持同样不弱于前面两个库。ƈ且是完全开放源代码的。新q的C++ Builder X的GUI设计器就是基于这个库的?/p>

4、Fox

开放源代码的GUI库。作者从自己亲n的开发经验中得出了一个理想的GUI库应该是什么样子的感受出发Q从而开始了对这个库的开发。有兴趣的可以尝试一下?/p>

参考网站://www.fox-toolkit.org/

5?nbsp;  WTL

ZATL的一个库。因Z用了大量ATL的轻量手法Q模板等技术,在代码尺寸,以及速度优化斚w做得非常C。主要面向的使用体是开发COM轻量U供|络下蝲的可视化控g的开发者?/p>

6?nbsp;  GTK

参考网站://gtkmm.sourceforge.net/

GTK是一个大名鼎鼎的C的开源GUI库。在Linux世界中有Gnomeq样的杀手应用。而GTK是q个库的C++装版本?/p>


|络通信

ACE

参考网站:

//www.cs.wustl.edu/~schmidt/ACE.html

C++库的代表Q超重量U的|络通信开发框架。ACE自适配通信环境QAdaptive Communication EnvironmentQ是可以自由使用、开放源代码的面向对象框Ӟ在其中实C许多用于q发通信软g的核心模式。ACE提供了一l丰富的可复用C++ 包装外观QWrapper FacadeQ和框架lgQ可跨越多种q_完成通用的通信软gdQ其中包括:事g多\分离和事件处理器分派、信号处理、服务初始化、进E间通信、共享内 存管理、消息\由、分布式服务动态(重)配置、ƈ发执行和同步Q等{?/p>

StreamModule

参考网站://www.omnifarious.org/StrMod
设计用于化编写分布式E序的库。尝试着使得~写处理异步行ؓ的程序更ҎQ而不是用同步的外壛_起异步的本质?/p>

SimpleSocket

参考网站://home.hetnet.nl/~lcbokkers/simsock.htm

q个cd让编写基于socket的客?服务器程序更加容易?/p>

A Stream Socket API for C++

参考网站:

//www.pcs.cnu.edu/~dgame/sockets/socketsC++/sockets.html

又一个对Socket的封装库?/p>

XML

Xerces

参考网站://xml.apache.org/xerces-c/

Xerces-C++ 是一个非常健壮的XML解析器,它提供了验证Q以及SAX和DOM API。XML验证在文?cd定?Document Type DefinitionQDTD)斚w有很好的支持Qƈ且在2001q?2月增加了支持W3C XML Schema 的基本完整的开放标准?/p>

XMLBooster

参考网站://www.xmlbooster.com/
q个库通过产生特制的parser的办法极大的提高了XML解析的速度Qƈ且能够生相应的GUIE序来修改这个parser。在DOM和SAX两大LXML解析办法之外提供了另外一个可行的解决Ҏ?/p>

Pull Parser

         参考网站:

//www.extreme.indiana.edu/xgws/xsoap/xpp        
q个库采用pullҎ的parser。在每个SAX的parser底层都有一个pull的parserQ这个xpp把这层暴露出来直接给大家使用。在要充分考虑速度的时候值得试?/p>

Xalan

         参考网站://xml.apache.org/xalan-c/

         Xalan是一个用于把XML文转换为HTMLQ纯文本或者其他XMLcd文的XSLT处理器?/p>

CMarkup

         参考网站://www.firstobject.com/xml.htm

         q是一U用EDOM的XML解析器。在很多思\上面非常灉|实用。值得大家在DOM和SAX之外L一点灵感?/p>

libxml++

//libxmlplusplus.sourceforge.net/

libxml++是对著名的libxml XML解析器的C++装版本

 

U学计算

Blitz++

参考网站://www.oonumerics.org/blitz
Blitz++ 是一个高效率的数D函数库Q它的设计目的是希望建立一套既具像C++ 一h便,同时又比Fortran速度更快的数D环境。通常Q用C++所写出的数值程序,? Fortran?0%左右Q因此Blitz++正是要改掉这个缺炏V方法是利用C++的template技术,E序执行甚至可以比Fortran更快? Blitz++目前仍在发展中,对于常见的SVDQFFTsQQMRES{常见的U性代数方法ƈ不提供,不过使用者可以很Ҏ地利用Blitz++所提供 的函数来构徏?/p>

POOMA

参考网站:

//www.codesourcery.com/pooma/pooma

POOMA是一个免费的高性能的C++库,用于处理q行式科学计。POOMA的面向对象设计方便了快速的E序开发,对ƈ行机器进行了优化以达到最高的效率Q方便在工业和研I环境中使用?/p>

MTL

参考网站://www.osl.iu.edu/research/mtl/
Matrix Template Library(MTL)是一个高性能的泛型组件库Q提供了各种格式矩阵的大量线性代数方面的功能。在某些应用使用高性能~译器的情况下,比如Intel的编译器Q从产生的汇~代码可以看出其与手写几乎没有两L效能?/p>

CGAL

参考网站:www.cgal.org

Computational Geometry Algorithms Library的目的是把在计算几何斚w的大部分重要的解x案和Ҏ以C++库的形式提供l工业和学术界的用户?/p>

 

游戏开?/font>

Audio/Video 3D C++ Programming Library

参考网站:

//www.galacticasoftware.com/products/av/

AV3D是一个跨q_Q高性能的C++库。主要的Ҏ是提供3D囑ŞQ声效支持(SB,以及S3MQ,控制接口Q键盘,鼠标和遥感)QXMS?/p>

KlayGE

参考网站://home.g365.net/enginedev/

国内游戏开发高手自qC++开发的游戏引擎。KlayGE是一个开放源代码、跨q_的游戏引擎,q用Python作脚本语a。KlayGE在LGPL协议下发行。感谢龚敏敏先生Z国游戏开发事业所做出的A献?/p>

OGRE

参考网站://www.ogre3d.org

OGREQ面向对象的囑Ş渲染引擎Q是用C++开发的Q用灵zȝ面向对象3D引擎。它的目的是让开发者能更方便和直接地开发基?Dg讑֤的应 用程序或游戏。引擎中的类库对更底层的pȝ库(如:Direct3D和OpenGLQ的全部使用l节q行了抽象,q提供了Z现实世界对象的接口和其它 cR?/p>

 

U程

C++ Threads

参考网站://threads.sourceforge.net/

q个库的目标是给E序员提供易于用的c,q些c被l承以提供在Linux环境中很隄到的大量的线E方面的功能?/p>

ZThreads

参考网站://zthread.sourceforge.net/

一个先q的面向对象Q跨q_的C++U程和同步库?/p>

 

序列?/font>

s11n

参考网站://s11n.net/

一个基于STL的C++库,用于序列化PODQSTL容器以及用户定义的类型?/p>

Simple XML Persistence Library

参考网站://sxp.sourceforge.net/

q是一个把对象序列化ؓXML的轻量的C++库?/p>

 

字符?/font>

C++ Str Library

参考网站://www.utilitycode.com/str/

操作字符串和字符的库Q支持Windows和支持gcc的多U^台。提供高度优化的代码Qƈ且支持多U程环境和UnicodeQ同时还有正则表辑ּ的支持?/p>

Common Text Transformation Library

参考网站://cttl.sourceforge.net/

q是一个解析和修改STL字符串的库。CTTL substringcd以用来比较,插入Q替换以及用EBNF的语法进行解析?/p>

GRETA

参考网站://research.microsoft.com/projects/greta/

q是由微软研I的研Ih员开发的处理正则表达式的库。在型匚w的情况下有非怼U的表现?/p>

l合

P::Classes

参考网站://pclasses.com/

一个高度可UL的C++应用E序框架。当前关注类型和U程安全的signal/slot机制Qi/opȝ包括Z插g的网l协议透明的i/o架构Q基于插件的应用E序消息日志框架Q访问sql数据库的cȝ{?/p>

ACDK - Artefaktur Component Development Kit

参考网站://acdk.sourceforge.net/

q是一个^台无关的C++lg框架Q类gJava或?NET中的框架Q反机ӞU程QUnicodeQ废料收集,I/OQ网l,实用工具QXMLQ等{)Q以及对Java, Perl, Python, TCL, Lisp, COM ?CORBA的集成?/p>

dlib C++ library

参考网站://www.cis.ohio-state.edu/~kingd/dlib/

各种各样的类的一个综合。大整数QSocketQ线E,GUIQ容器类,以及览目录的API{等?/p>

Chilkat C++ Libraries

参考网站:

//www.chilkatsoft.com/cpp_libraries.asp

q是提供zipQe-mailQ编码,S/MIMEQXML{方面的库?/p>

C++ Portable Types Library (PTypes)

参考网站://www.melikyan.com/ptypes/
q是STL的比较简单的替代品,以及可移植的多线E和|络库?/p>

LFC

参考网站://lfc.sourceforge.net/

哦,q又是一个尝试提供一切的C++?/p>

 

其他?/font>

Loki

参考网站:

//www.moderncppdesign.com/
哦,你可能抱怨我早该和Boost一起介l它Q一个实验性质的库。作者在loki中把C++模板的功能发挥到了极致。ƈ且尝试把cM设计模式q样思想层面的东襉K过库来提供。同时还提供了智能指针这h较实用的功能?/p>

ATL

ATL(Active Template Library)是一l小巧、高效、灵zȝc,q些cMؓ创徏可互操作的COMlg提供了基本的设施?/p>

FC++: The Functional C++ Library

q个库提供了一些函数式语言中才有的要素。属于用库来扩充语言的一个代表作。如果想要在OOP之外L另一分的乐趣Q可以去看看函数式程序设计的? 界。大师Peter Norvig?“Teach Yourself Programming in Ten Years”一文中将函数式语a列ؓ臛_应当学习?cȝE语a之一?/p>

FACT!

参考网站://www.kfa-juelich.de/zam/FACT/start/index.html

         另外一个实现函数式语言Ҏ的?/p>

Crypto++

提供处理密码Q消息验证,单向hashQ公匙加密系l等功能的免费库。还有很多非常激动h心或者是极其实用的C++库,限于我们的水q以及文章的幅不能包括q来。在对于q些已经包含q来的库的介l中Q由于ƈ不是每一个我们都使用q,所以难免有偏颇之处Q请读者见谅?/p>

 

资源|站

正如我们可以通过计算机历史上的重要h物了解计机史的发展QC++相关人物的网站也可以使我们得到最有h值的参考与借鉴Q下面的人物我们认ؓ没有 介绍的必要,只因下面的h物在C++领域的地位众所周知Q我们只相关的资源q行|列以供读者学习,他们有的工作于贝实验室Q有的工作于知名~译器厂 商,有的在不断推q语a的标准化Q有的ؓ读者撰写了多部千古奇作……

Bjarne Stroustrup  //www.research.att.com

Stanley B. Lippman

//blogs.msdn.com/slippman/(中文?/p>

//www.zengyihome.net

//www.zengyihome.net/slippman/index.htm

Scott Meyers  //www.aristeia.com/

David Musser  //www.cs.rpi.edu/~musser/

Bruce Eckel  //www.bruceeckel.com

Nicolai M. Josuttis  //www.josuttis.com

Herb Sutter  //www.gotw.ca/

Andrei Alexandrescu  //www.moderncppdesign.com/







brent 2008-08-21 10:40 发表评论
]]>
刘克峎ͼ我的数学人生 - սƵ2019|սع//www.pppqb.icu/aqazero/archive/2008/08/18/59204.htmlbrentbrentMon, 18 Aug 2008 03:33:00 GMT//www.pppqb.icu/aqazero/archive/2008/08/18/59204.html//www.pppqb.icu/aqazero/comments/59204.html//www.pppqb.icu/aqazero/archive/2008/08/18/59204.html#Feedback1//www.pppqb.icu/aqazero/comments/commentRss/59204.html//www.pppqb.icu/aqazero/services/trackbacks/59204.html
“初中时学习高中和大学的数?#8221; Q丫的还在农村呢Q哪里来的书? “微积分的思想?#8221;

“按兴发展?#8221; 和我初中时学物理一样嘛Q可惜俺当年找不C看,不然Z是牛ZQ哈哈?br>
1是兴,2是能前学习?br>
“15岁上大学” 。真是终生教育啊

“两最牛逼的同学自杀” l得Ll?br>
“不知道下一步学什?#8221; 有h能在宏观上指导是多么重要?

教育学生“只要告诉他一个方?#8221;

“有鲜明个性的学生” “批评老师” “交大的计机士” “成ؓ世界著名的数学家” “两三q之?#8221;

“奥数” “竞赛 ” -“Ȁ励兴?自己C 自己ȝ 自己思?#8221; “没有培训?#8221; “惛_几个?#8221; “做研I?惛_几年”

“q入大学是人生目标” “为父母读书,不是q兴趣M”

“国孩子每天是想着怎么ȝ” “不重视数学技?#8221;

“学一二年U开始,做一些研I性的东西” “展板” “演讲” “讲的能力”

“国高中生压力非常大” “考试不比国内?#8221;

“Q电子游戏)的时候没接触q,一上大学家里不了”

“机械训练” “没有成就?” “不是智力的表?#8221;

“国内学生基础?#8221; “微积分很?#8221;

“~Z自信” “请他们吃?#8221; “吃了很多ơ饭” “表达能力Ơ缺”


“数学学习的方?#8221;

“前学习” “预习” “学高q的知?#8221; “走在老师前面” 站得高看得远啊?br>
“做题太多” “不要为技巧而技?#8221;

“兴趣之所以能产生” “自己的想法能解决问题Q?成就感, 觉得自己有与众不同的地方”

“拓宽知识?#8221; “看得q一?#8221;

“奥数” “很大的利益链”

“物理学家学数学的Ҏ” “在研I中学习” 又是前学习

“多看点传讎ͼ大学的时?#8221;

“国大学的培L式:扔到水里游泳”

google, U性代?矩阵

“数学训练非常重要”

ҎQ?“天才Q脑袋里攑և个问题,学到一个新的方法后把这些问题试一遍,说不定哪天就打开了,别hp得你是个天才”

“数学品味” 知道什么是好,什么是?br>
“研究 research” “反复查找”



սƵ2019 2008-08-18 11:33 发表评论
]]>