Calling External Functions in DLLs, LIBs, and OBJs
Posted: Fri Sep 28, 2012 1:03 am
I'm not here to preach on this subject. Rather, I am here to listen and read. I'm
finding this area particularly challenging, because it is nothing like I have used
before. That doesn't make it a bad thing, just hugely different. Help is requested.
I will say this. The Windows APIs are housed in DLLs, so being able to call them if
in Windows is vastly important if you intend to really go the Windows way.
The "D" in DLL stands for "Dynamic". Windows determines when and which DLLs to
load depending upon the current demand, this coming from the current programs
that are running.
That being said, the door is open for someone else to take the podium. Oh, I do
have a few links to share on the subject before I step down:
http://www.purebasic.com/documentation/ ... index.html
http://www.purebasic.com/documentation/ ... brary.html
http://www.purebasic.com/documentation/ ... types.html
http://www.purebasic.com/documentation/ ... brary.html
http://www.purebasic.com/documentation/ ... aryid.html
http://www.purebasic.com/documentation/ ... tions.html
http://www.purebasic.com/documentation/ ... tions.html
http://www.purebasic.com/documentation/ ... ction.html
http://www.purebasic.com/documentation/ ... nname.html
http://www.purebasic.com/documentation/ ... dress.html
http://www.purebasic.com/documentation/ ... nction.html
http://www.purebasic.com/documentation/ ... entry.html
http://www.purebasic.com/documentation/ ... nfast.html
http://www.purebasic.com/documentation/ ... nfast.html
http://www.purebasic.com/documentation/ ... brary.html
I think I got them all, and hopefully in the right order. It seems a bit complicated at
the onset. There is some embedded code to help, but it would be nice to know what
works for others.
Okay. Here are some I was not aware of at the time:
http://www.purebasic.com/documentation/ ... mport.html
http://implib.sourceforge.net/EN.HTM
http://www.purebasic.com/documentation/xml/index.html
For closure to this particular post, I think I will mention that the difference in the Standard
Call process and the C call process is the order in which the calling parameters are passed on
the stack. For one, it is right to left, or top to bottom. For the other, it is left to right, or
bottom to top. Make the wrong call, and you have the right parameters, just in the wrong
order.
finding this area particularly challenging, because it is nothing like I have used
before. That doesn't make it a bad thing, just hugely different. Help is requested.
I will say this. The Windows APIs are housed in DLLs, so being able to call them if
in Windows is vastly important if you intend to really go the Windows way.
The "D" in DLL stands for "Dynamic". Windows determines when and which DLLs to
load depending upon the current demand, this coming from the current programs
that are running.
That being said, the door is open for someone else to take the podium. Oh, I do
have a few links to share on the subject before I step down:
http://www.purebasic.com/documentation/ ... index.html
http://www.purebasic.com/documentation/ ... brary.html
http://www.purebasic.com/documentation/ ... types.html
http://www.purebasic.com/documentation/ ... brary.html
http://www.purebasic.com/documentation/ ... aryid.html
http://www.purebasic.com/documentation/ ... tions.html
http://www.purebasic.com/documentation/ ... tions.html
http://www.purebasic.com/documentation/ ... ction.html
http://www.purebasic.com/documentation/ ... nname.html
http://www.purebasic.com/documentation/ ... dress.html
http://www.purebasic.com/documentation/ ... nction.html
http://www.purebasic.com/documentation/ ... entry.html
http://www.purebasic.com/documentation/ ... nfast.html
http://www.purebasic.com/documentation/ ... nfast.html
http://www.purebasic.com/documentation/ ... brary.html
I think I got them all, and hopefully in the right order. It seems a bit complicated at
the onset. There is some embedded code to help, but it would be nice to know what
works for others.
Okay. Here are some I was not aware of at the time:
http://www.purebasic.com/documentation/ ... mport.html
http://implib.sourceforge.net/EN.HTM
http://www.purebasic.com/documentation/xml/index.html
For closure to this particular post, I think I will mention that the difference in the Standard
Call process and the C call process is the order in which the calling parameters are passed on
the stack. For one, it is right to left, or top to bottom. For the other, it is left to right, or
bottom to top. Make the wrong call, and you have the right parameters, just in the wrong
order.