thanks, DarkDragon
Now, I know the difference, and I know that I need static imports.
But, there is some advantage in doing it on a way or another one?
I've read somewhere on this forum that Prototypes are faster, is 't true?
Prototype and Import the same. Only the binding to a DLL is another. Import
makes a static Binding. It's faster than dynamic Binding, but if the DLL is
Missing, Windows gives the Error. Your Programm can't solve the Problem.
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Linking an import library is not faster than calling the dll functions directly, because
the import library also does an indirect call to the dll function. Basically it is
just doing the pointer work for you, but the dll is still loaded and called dynamically.