My Life/일상

내가 MS를 싫어하는 이유...

Dansoonie 2009. 4. 24. 03:23
MSDN을 보다보면 짜증이 난다...

따지고 보면 .Net Framework에 대한 document는 잘 되어있어서 MSDN 자체를 일방적으로 싫어한다고 말할 수는 없지만, Windows에서 제공하는 여러 API에 대한 문서는 정말 봐주기 싫을때가 많다. 방금 WinINet에 대해 알아보느라 이것저것 찾아보고 있었는데, WinINet에서 Cookie가 어떤 식으로 관리되고 개발자 입장에서 사용할 수 있는지 보다가 이런 코드가 예제로 나와서 보게 되었다.

char szURL[256];         // buffer to hold the URL
LPSTR lpszData = NULL;   // buffer to hold the cookie data
DWORD dwSize=0;          // variable to get the buffer size needed

// Insert code to retrieve the URL.

retry: 바로 여기

// The first call to InternetGetCookie will get the required
// buffer size needed to download the cookie data.
if (!InternetGetCookie(szURL, NULL, lpszData, &dwSize))
{
    // Check for an insufficient buffer error.
    if (GetLastError()== ERROR_INSUFFICIENT_BUFFER)
    {
        // Allocate the necessary buffer.
        lpszData = new char[dwSize];

        // Try the call again.
        goto retry; 바로 여기
    }
    else
    {
        // Insert error handling code.
    }
   
}
else
{
    // Insert code to display the cookie data.

    // Release the memory allocated for the buffer.
    delete[]lpszData;
}
Code Snippet 출처: http://msdn.microsoft.com/en-us/library/aa385326(VS.85).aspx

음...
goto 문이 사용되었다
ㅡ.ㅡ;

너무 성의 없어 보이지 않나???      

Microsoft에서 .Net Framework을 내놓았을때나, Photosynth와 같이 창의적인 연구를 하는 것을 볼때면 좋아지기도 하는데, 이럴때 다시 싫어진다...

정떨어져 !!!