我在动态链接库中,编写了如下代码,但是我无论用quickwatch、还是TRACE都无法跟踪temptemp的值,quickwatch中显示“CXX0017:ERROR:symbol "temptemp"not found”,但是有些变量是可以跟踪的,比如下面的j,请问高手这是为什么,如何才能跟踪temptemp?3X__declspec(dllexport) char* FullConvert(UINT wantedto)
{
static char stemp[10];
static char temptemp[10]; for(int j=0;j<=7;j++)
temptemp[j] = '1';
return (temptemp);
}
{
static char stemp[10];
static char temptemp[10]; for(int j=0;j<=7;j++)
temptemp[j] = '1';
return (temptemp);
}
_itoa系列函數 你去看看
在project->setting->debug->Executable for debug sesson一栏选择你的主程序,然后加断点F5就行了。
如果出现一个对话框说程序无调试信息,点确定即可。
注意一下EXE与DLL的路径问题。