If a structure field is assigned a value, the dll is loaded from the second time. It is very strange.
Test code dll.
Code: Select all
x.RECT
x\left=0
ProcedureDLL Test()
EndProcedure
Code: Select all
Debug OpenLibrary(0, "dll.dll")
Debug OpenLibrary(0, "dll.dll")
Test code exe on WinAPI.0
6442450944
Code: Select all
h = LoadLibrary_("dll.dll")
e = GetLastError_()
Debug h
Debug e
Debug ""
h = LoadLibrary_("dll.dll")
e = GetLastError_()
Debug h
Debug e
The first time try to load a dll, the LoadLibrary() function returns 0, but at the same time, the GetLastError() function also returns 0 (no errors). It is very strange.0
0
6442450944
0