Visual Basic Explorer
Visual Basic Explorer
 Navigation
 Home


 Coding
 Source Code

 FAQ Center

 VB Tips

 Downloads

 ToolBox

 Tutorials

 VB Games

 VB News

 VB Award

 VB Forums



 Affiliates
 Planet Source Code

 Rent a Coder

 DirectX4VB


 Misc
 Search

 Feedback

 Advertise

 About


Need to hire
a VB coder?

Please support our sponsor:

 Home 
 Site Map 
 Forums 
 News 
 Feedback 

 

'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 View Plain Text
Download Demo Project Not Available
View Code Online Not Available





Home | About | What's New | Source Code | FAQ | Tips & Tricks | Downloads | ToolBox | Tutorials | Game Programming | VB Award | Search | VB Forums | Feedback | VBNews | Copyright & Disclaimer | Advertise | Privacy Policy |

Quick searches: Site Search | Advanced Site Search 

Copyright 2002 by Exhedra Solutions, Inc.
By using this site you agree to its terms and conditions
VB Explorer and VBExplorer.com are trademarks of Exhedra Solutions, Inc.