hinstLib = LoadLibrary("2ndDLL"); 
如果这里调不到,会出现UnsafetiedLinkError的,
ProcAdd != NULL 不是判断为空,是if(!ProcAdd)

解决方案 »

  1.   

    typedef UINT (CALLBACK* PRINT_DLL)(char *)是笔误,
    typedef UINT (CALLBACK* PRINT_DLL);也就像给他定义一个类
      

  2.   

    按照你的写法,运行出现以下错误An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x0
    Function name=(N/A)
    Library=(N/A)NOTE: We are unable to locate the function name symbol for the error
          just occurred. Please refer to release documentation for possible
          reason and solutions.另外 2ndDLL 的testMethod 是不是要 extern 为外部方法,extern 如果需要写应该如何写,是写在c文件还是写在头文件里谢谢