Externe non résolu symboles __RTC_* dans la programmation Windows tutoriel

À l'aide de Visual Studio Express 2010, j'ai fait un projet Windows avec la fenêtre d'options de l'Application et un Projet Vide. J'ai ensuite essayé le extrait de code suivant de la MSDN Windows tutoriels:

#include <windows.h>
#include <shobjidl.h> 

int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE, PWSTR pCmdLine, int nCmdShow)
{
    HRESULT hr = CoInitializeEx(NULL, COINIT_APARTMENTTHREADED | 
        COINIT_DISABLE_OLE1DDE);
    if (SUCCEEDED(hr))
    {
        IFileOpenDialog *pFileOpen;

        //Create the FileOpenDialog object.
        hr = CoCreateInstance(CLSID_FileOpenDialog, NULL, CLSCTX_ALL, 
                IID_IFileOpenDialog, reinterpret_cast<void**>(&pFileOpen));

        if (SUCCEEDED(hr))
        {
            //Show the Open dialog box.
            hr = pFileOpen->Show(NULL);

            //Get the file name from the dialog box.
            if (SUCCEEDED(hr))
            {
                IShellItem *pItem;
                hr = pFileOpen->GetResult(&pItem);
                if (SUCCEEDED(hr))
                {
                    PWSTR pszFilePath;
                    hr = pItem->GetDisplayName(SIGDN_FILESYSPATH, &pszFilePath);

                    //Display the file name to the user.
                    if (SUCCEEDED(hr))
                    {
                        MessageBox(NULL, pszFilePath, L"File Path", MB_OK);
                        CoTaskMemFree(pszFilePath);
                    }
                    pItem->Release();
                }
            }
            pFileOpen->Release();
        }
        CoUninitialize();
    }
    return 0;
}

J'ai les erreurs suivantes:

1>------ Rebuild All started: Project: Test05, Configuration: Debug Win32 ------
1>  Test05.cpp
1>Test05.obj : error LNK2019: unresolved external symbol @_RTC_CheckStackVars@8 
referenced in function _wWinMain@16
1>Test05.obj : error LNK2019: unresolved external symbol __RTC_CheckEsp referenced in 
function _wWinMain@16
1>Test05.obj : error LNK2001: unresolved external symbol __RTC_Shutdown 
1>Test05.obj : error LNK2001: unresolved external symbol __RTC_InitBase
1>LINK : error LNK2001: unresolved external symbol _wWinMainCRTStartup

Ce qui se passe ici? Mieux que je peux dire quelque chose à faire avec wWinMain, mais il est copié directement à partir du site.

Compilateurs semblent être des problèmes beaucoup plus pour moi que de l'apprentissage de la programmation. J'ai décidé sur Visual C++ après avoir essayé quelques autres (codeblocks pour la plupart), mais depuis Visual C++ semble avoir le plus de soutien (ou au moins la majorité des utilisateurs) j'ai pensé que c'était mieux que de ne jamais arriver n'importe où, car ils sont tous tellement pas intuitif pour un débutant.

Avez-vous été en mesure de le résoudre?

OriginalL'auteur Vertro | 2012-04-14