Tuesday, May 29, 2007

The @ERR pseudoregister in debugging MSVC++

If you want to know the error code, you can add int test = GetLastError(); in the lines you want to know.

 

But there is a simple way to get that:

Using @ERR,hr in your watch window, you'll get the error all the time when debugging.

 

http://www.codeproject.com/debug/pseudoregister.asp

 

Tuesday, May 15, 2007

Keywords of idioms in software design.



Factory, Creator,Builder, Clone,Registry, UnRegestry,excute, manager,context,command,handler,traits,impl,accept,engine,functor


Iterator,invoke,sink,hook,fire,event,listener,instance,destroyer,startup,cleanup,provider,chain,bind,diagnose,action,logic,layer,


Dispatcher,adapter,visit,callback,assign,init,null, default,filter,holder,macro,policy,allocate,model,pool,attach,detach,controller,


Wrapper,target,destination,host, helper,process



2007


2007:


Code quality Improvement:




  • C++ Coding standards




  • Effective C++




  • More Effective C++




  • Exceptioan C++




  • More exceptional C++




  • Exceptional C++ styles




Generic programming




  • Modern C++ design.




  • STL/Loki/Boost




Windows Internals



  • Programming Application for microsoft windows

  • Microsoft Windows Internals

  • Debugging Windows


Database



  • Joe Celko's

  • The Guru's Guide to SQL server Architecture and Internals

  • Inside SQL Server 2000.




Solutions that could replace if\else and Switch\Case statements.


Traits


policy


strategy


command


State


visitor


Iterpretor


读书计划


5,6,7


C++ Coding standards


Effective C++


More Effective C++


Exceptional C++


Exceptional C++ Styles


Windows Internals


Windows核心编程


Joe Celko's SQL for Smarties: Advanced SQL Programming


Joe Celko's Trees and Hierarchies in SQL for Smarties