HINSTANCE hInst;
hInst=LoadLibrary("。");
为什么加载时不成功

解决方案 »

  1.   

    你的dll在什么地方
    看GetLastError
      

  2.   

    C:\Program Files\Tecnomatix\Plant Simulation 8.1\eM-Plant.dll
      

  3.   

    你怎么调用的
    GetLastError结果是什么
      

  4.   

    编译没问题,返回值是hInst是null
      

  5.   

    你就是不给我GetLastError的返回值
      

  6.   

    注意用上面的路径时要写成:
    C:\\Program Files\\Tecnomatix\\Plant Simulation 8.1\\eM-Plant.dll
      

  7.   

    HINSTANCE hInst;DWORD err;
    hInst=LoadLibrary("C:\\Program Files\\Tecnomatix\\Plant Simulation 8.1\\eM-Plant.dll");
    err=GetLastError();
    err是0?
      

  8.   

    两个一样的贴呀  
    C:\\Program Files\\Tecnomatix\\Plant Simulation 8.1\\eM-Plant.dllhInst=LoadLibrary("C:/rogram Files/Tecnomatix/Plant Simulation 8.1/eM-Plant.dll");