Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在Eclipse上用DLL调试C代码时出错_C_Eclipse_Debugging_Dll - Fatal编程技术网

在Eclipse上用DLL调试C代码时出错

在Eclipse上用DLL调试C代码时出错,c,eclipse,debugging,dll,C,Eclipse,Debugging,Dll,我正在使用带有MinGW的eclipsec/C++IDE来运行和调试我的应用程序。 当我运行时,它工作正常,但当我调试我的应用程序崩溃 这是我的密码: #include <windows.h> #include <stdio.h> void loadDLL() { int handle = LoadLibrary("teste.dll"); printf(handle == 0 ? "\n DLL not loaded." : "\n D

我正在使用带有MinGW的eclipsec/C++IDE来运行和调试我的应用程序。 当我运行时,它工作正常,但当我调试我的应用程序崩溃

这是我的密码:

#include <windows.h>
#include <stdio.h>

void loadDLL() {
        int handle = LoadLibrary("teste.dll");
        printf(handle == 0 ? "\n DLL not loaded." : "\n DLL loaded.");
}

int main() {
    loadDLL();

    printf("\n Press any key to exit.\n");
    return 0;
}
当我调试时:

当I加载库上跳过时发生错误。
我的DLL是用Borland C++ IDE创建的,我不能改变它。< / P> < P>我的朋友找到了问题的解决方案! 我需要在我的应用程序启动程序中取消选中一个选项。 该选项是在以下位置自动加载共享库符号:

AppLauncher>>调试器>>共享库


我不想调试我的DLL,我只想跳过一步
DLL loaded.
Press any key to exit.