断点当前不会被击中

时间:2013-10-30 22:25:20

标签: c++ visual-c++ visual-studio-2012

我正在调试一个函数并试图在API调用上设置一个断点,但是我得到的是一条“该断点当前不会被命中”的消息。这是代码:

bool __stdcall FileOperator::uploadDocument(char* filePath,long projectID)
    {
        char* filename="xyz.xlsx";
        char* docname="xyz.xlsx";
        long docID=0L;
        long lAttributeID=0;
        long lngAppID=aaApi_GetFExtensionApplication(L"xlsx");
        long lngWorkSpaceID=aaApi_GetWorkspaceProfileId(projectID,0);
        WCHAR strWorkingDir[_MAX_PATH];

        memset(strWorkingDir,'\0',_MAX_PATH);

        bool status=aaApi_CreateDocument(
            &docID,
            projectID,
            0,
            0,
            0,
            lngAppID,
            0,
            lngWorkSpaceID,
            convertCharArrayToLPCWSTR(filePath),
        convertCharArrayToLPCWSTR(filename),
        convertCharArrayToLPCWSTR(docname),
            NULL,
            NULL,
            FALSE,
            AADMSDOCCREF_DEFAULT,
            strWorkingDir,
            _MAX_PATH-1,
            &lAttributeID
            );
        return status;    
    }

如果我尝试在aaApi_CreateDocument电话上设置断点,我收到此消息:

The breakpoint will not currently be hit.  
No executable code of the debugger's target code type is associated 
with this line.
Possible causes include: conditional compilation, compiler optimizations,
or the target architecture of this line is not supported by the current 
debugger code type.

然后在程序运行时跳过此行。我怎样才能a)设置断点并b)让该行执行?

0 个答案:

没有答案
相关问题