'How do I use an API?
Q. I have wanted to create programs which relate to the Windows environment,
such as changing the Windows wallpaper or adding an item to the startup folder.
I recently discovered that these are all controlled by API and the declarations
must go into modules. Could someone please tell me about modules and what I do
with the code I copy from the API text viewer?
A. To add a module go to Project/Add Module on your toolbar. You basically copy
the API declaration from the API viewer to the module This API actually lives in
a windows dll somewhere -the declaration tells your program what information -
parameters- the particular API function you are calling needs and in what
format. For an example of how to call an API why not go to Mick`s very nice VB
Workshop and check out the tutorial on using the BitBlt API function. You may
also check out the Tutorial section of the Visual Basic Explorer site. There you
will find an excellent tutorial from Peter Wright`s "Beginning VB 5" book by
Wrox that explains API usage and will help you build a simple multimedia
project.
Thanks to: Burt Abreu
Downloads
In IE right-click and select 'Save Target As...' or in Netscape
right-click and select 'Save Link As...'
View Plain Text
Not Available
Not Available