Loadlibrary fails to load dll

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

        #include 

typedef int (*function1_ptr) ();

function1_ptr function1=NULL;

int APIENTR         


        
7条回答
  •  走了就别回头了
    2021-02-10 01:28

    Just because the code runs and exits doesn't mean it's right! Are you sure that:

    • The DLL is being correctly loaded (myDll!=null)
    • GetProcAddress is returning a valid pointer (function1!=null)

    You should step through the code in a debugger to make sure all this is happening and that the code does get to function1(). If it does then my guess would be that your email function has a bug in it.

提交回复
热议问题