A1VBCode Forums

simple question


http://www.a1vbcode.com/vbforums/Topic12983.aspx

By emi - 7/20/2005

Hi I’am a begainner in this vb and I don’t know how to use API, I need some one to explaine the following code as an example and if there any books or websits that explaine API please tell me


Private Declare Function SendMessage Lib "User32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long

i have many codes using api, but i can not creat one, this is my problem ..

By kwandobe - 8/31/2005

That command sends a message to the corresponding window, such as telling the window to close, or pressing a button, it is also possible to change the text of a window using that API call.

I would suggest you buy or borrow VB6 for dummies by Wallace Wang. He has examples on a disk located in the back of the book which show you how to use API calls. Plus having a book is always good for reference, sometimes I even consult one of my books.