小编Ver*_*tro的帖子

Windows编程教程中未解析的外部符号__RTC_*

使用Visual Studio Express 2010,我创建了一个Windows项目,其中包含Windows Application和Empty Project选项.然后,我尝试了MSDN Windows教程中的以下代码片段:

#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 …
Run Code Online (Sandbox Code Playgroud)

c++ windows linker-errors visual-studio-2010

6
推荐指数
2
解决办法
1万
查看次数

标签 统计

c++ ×1

linker-errors ×1

visual-studio-2010 ×1

windows ×1