All, I have some question that puzzles me quite a lot.
1)
What does Extern clause means ? What do I include with this sentence:
---------------------------------------
2) Why this code:
---------------------------------------
3) In the Win32.bmx the SendMessage function is declared, but if I call it from within a bmx program, it does not work. If I declare, instead, a SendMessageA function, and call it, then works. So why SendMessage has been declared, and not SendMessageA instead ?
So, how should I declare an API function to be used in my .bmx sources ? I'm quite confused here, any help would be appreciated.
Sergio.
1)
What does Extern clause means ? What do I include with this sentence:
Extern "Win32" . End ExternDo I refer to the Win32.DLL API here ? Or what else ?
---------------------------------------
2) Why this code:
Extern "Win32" Function WinExec (lpCmdLine:Byte Ptr,nCmdShow=10) End Extern WinExec ("calc.exe")works, even if WinExec is not contained in Win32.DLL, rather in the Kernel32.DLL ? WinExec is also not declared in Kernel.bmx .
---------------------------------------
3) In the Win32.bmx the SendMessage function is declared, but if I call it from within a bmx program, it does not work. If I declare, instead, a SendMessageA function, and call it, then works. So why SendMessage has been declared, and not SendMessageA instead ?
So, how should I declare an API function to be used in my .bmx sources ? I'm quite confused here, any help would be appreciated.
Sergio.