Loadlibrary fails to load dll

前端 未结 7 2094
梦谈多话
梦谈多话 2021-02-10 01:18
    *******************UseDll1.cpp*********************

        #include 

typedef int (*function1_ptr) ();

function1_ptr function1=NULL;

int APIENTR         


        
7条回答
  •  滥情空心
    2021-02-10 01:31

    Why not debug it and see where it fails? Make sure your dll is actually being loaded(it could simply be a path issue or a bad dll(you might have not imported/exported the functions).

    Find out where the issue is first. It's either in loading the dll, calling the function, or inside the function

提交回复
热议问题