body { margin:0px; padding:0px; background:#f6f6f6; color:#000000; font-size: small; } #outer-wrapper { font:normal normal 100% 'Trebuchet MS',Trebuchet,Verdana,Sans-Serif; } a { color:#DE7008; } a:hover { color:#9E5205; } a img { border-width: 0; } #content-wrapper { padding-top: 0; padding-right: 1em; padding-bottom: 0; padding-left: 1em; } @media all { div#main { float:right; width:66%; padding-top:30px; padding-right:0; padding-bottom:10px; padding-left:1em; border-left:dotted 1px #e0ad12; word-wrap: break-word; /* fix for long text breaking sidebar float in IE */ overflow: hidden; /* fix for long non-text content breaking IE sidebar float */ } div#sidebar { margin-top:20px; margin-right:0px; margin-bottom:0px; margin-left:0; padding:0px; text-align:left; float: left; width: 31%; word-wrap: break-word; /* fix for long text breaking sidebar float in IE */ overflow: hidden; /* fix for long non-text content breaking IE sidebar float */ } } @media handheld { div#main { float:none; width:90%; } div#sidebar { padding-top:30px; padding-right:7%; padding-bottom:10px; padding-left:3%; } } #header { padding-top:0px; padding-right:0px; padding-bottom:0px; padding-left:0px; margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; border-bottom:dotted 1px #e0ad12; background:#F5E39e; } h1 a:link { text-decoration:none; color:#F5DEB3 } h1 a:visited { text-decoration:none; color:#F5DEB3 } h1,h2,h3 { margin: 0; } h1 { padding-top:25px; padding-right:0px; padding-bottom:10px; padding-left:5%; color:#F5DEB3; background:#DE7008; font:normal bold 300% Verdana,Sans-Serif; letter-spacing:-2px; } h3.post-title { color:#9E5205; font:normal bold 160% Verdana,Sans-Serif; letter-spacing:-1px; } h3.post-title a, h3.post-title a:visited { color: #9E5205; } h2.date-header { margin-top:10px; margin-right:0px; margin-bottom:0px; margin-left:0px; color:#777777; font: normal bold 105% 'Trebuchet MS',Trebuchet,Verdana,Sans-serif; } h4 { color:#aa0033; } #sidebar h2 { color:#B8A80D; margin:0px; padding:0px; font:normal bold 150% Verdana,Sans-serif; } #sidebar .widget { margin-top:0px; margin-right:0px; margin-bottom:33px; margin-left:0px; padding-top:0px; padding-right:0px; padding-bottom:0px; padding-left:0px; font-size:95%; } #sidebar ul { list-style-type:none; padding-left: 0; margin-top: 0; } #sidebar li { margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; padding-top:0px; padding-right:0px; padding-bottom:0px; padding-left:0px; list-style-type:none; font-size:95%; } .description { padding:0px; margin-top:7px; margin-right:12%; margin-bottom:7px; margin-left:5%; color:#9E5205; background:transparent; font:bold 100% Verdana,Sans-Serif; } .post { margin-top:0px; margin-right:0px; margin-bottom:30px; margin-left:0px; } .post strong { color:#000000; font-weight:bold; } pre,code { color:#999999; } strike { color:#999999; } .post-footer { padding:0px; margin:0px; color:#444444; font-size:80%; } .post-footer a { border:none; color:#968a0a; text-decoration:none; } .post-footer a:hover { text-decoration:underline; } #comments { padding:0px; font-size:110%; font-weight:bold; } .comment-author { margin-top: 10px; } .comment-body { font-size:100%; font-weight:normal; color:black; } .comment-footer { padding-bottom:20px; color:#444444; font-size:80%; font-weight:normal; display:inline; margin-right:10px } .deleted-comment { font-style:italic; color:gray; } .comment-link { margin-left:.6em; } .profile-textblock { clear: both; margin-left: 0; } .profile-img { float: left; margin-top: 0; margin-right: 5px; margin-bottom: 5px; margin-left: 0; border: 2px solid #DE7008; } #sidebar a:link { color:#999999; text-decoration:none; } #sidebar a:active { color:#ff0000; text-decoration:none; } #sidebar a:visited { color:sidebarlinkcolor; text-decoration:none; } #sidebar a:hover { color:#B8A80D; text-decoration:none; } .feed-links { clear: both; line-height: 2.5em; } #blog-pager-newer-link { float: left; } #blog-pager-older-link { float: right; } #blog-pager { text-align: center; } .clear { clear: both; } .widget-content { margin-top: 0.5em; } /** Tweaks for layout editor preview */ body#layout #outer-wrapper { margin-top: 0; } body#layout #main, body#layout #sidebar { margin-top: 10px; padding-top: 0; } -->

Sunday, October 26, 2008

Refactoring Singleton Class

template <class T>
class CSingleton
{
public:
static T& GetInstance();
protected:
private:
CSingleton();
~CSingleton();
};

template<class T>
CSingleton<T>::CSingleton()
{

}

template<class T>

T& CSingleton<T>::GetInstance()
{

static T Instance;
return Instance;

}

template<class T>

CSingleton<T>::~CSingleton()
{

}

Thursday, October 23, 2008

[error C3861]

This error occures when WINVER and _WIN32_WINNT value does not compativle with OS.
We can remove this error 2 simple ways.

1. Define new WINVER and _WIN32_WINNT value on source code.
#define WINVER 0x0600
#define _WIN32_WINNT 0x0600
**0x0600 is for VISTA or Windows 2008

2. Add a command line via property page.
ALT +F7 >>Property>>C/C++>>Command Line
Add following command line
/D"WINVER"=0x0600 /D"_WIN32_WINNT"=0x0600

For more about WINVER and _WIN32_WINNT value and How to modifying,
visit following pages.
http://msdn.microsoft.com/en-us/library/aa383745.aspx
http://msdn.microsoft.com/en-us/library/6sehtctf.aspx

Saturday, October 18, 2008

Free E-Book

Celebrating 25 years--with free E-Book offers!


For 25 years, Microsoft Press books have focused on helping you take your skills and knowledge to the next level. Help celebrate our 25th Anniversary with a "Free E-Book Offer of the Month"! Read your Microsoft Press Book Connection Newsletter for notification of offers, register, and download the selection of the month. Offers expire on October 22, so download the e-books today.This month:Windows Server(r) 2008 TCP/IP Protocols and Services by Joseph Davies: This in-depth technical reference delivers must-know information for any IT professional working with TCP/IP in the Windows Server 2008 and Windows Vista operating systems.Download this e-book today!

Programming Microsoft Robotics Studio by Sara Morgan: Visualize, build, and deploy the next innovation in robotic applications with this practical guide to Microsoft Robotics Studio.Download this e-book today!Note: You will need to temporarily allow pop-ups in order to download the e-book.Look for articles about the history and innovations of Microsoft Press in coming editions of the Book Connection Newsletter.

Monday, October 6, 2008

I have no idea what to do.

Currently, I'm in serious slump.
I'm tired of all the things around me.
I don't know why, when , what is caused this situation.
I think something or someone give to me a some object.
I need object, why am I doing work, developing, writting tips or articles.

Microsoft Visual C++ MVP Mr. Kenny kerr, he is really great.
He writes excellent articles on MSDN magazine, maybe submit every month.
Recent his article , http://msdn.microsoft.com/en-us/magazine/cc850829.aspx
it's really cool. His articles always make me suprise.

How could I be like him?

I think my problem is that I do only work for a money or a value.
So I have to make definite goal.
Like a submit an article to MSDN magazine or managing an open source group.
I'll make step by step.
First , I'll make open source group that network framework on the windows system.
Someday will be realize.

Powered By Blogger