Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting corresponding datatype for win32api datatypes in VB 1

Status
Not open for further replies.

altctldel

Programmer
Dec 15, 2000
17
IN
I want to know what is the datatype to be used to get a handle for window.

win32 api function have their own datatype.
eg. SC_HANDLE,LPCSTR,TChar
In general i want to know where or how can i get corresponding VB datatype and how to use that in VB coding in calling win32 api function.

Thanx in advance.
 
Window handles are returned As Long.

Visit for the details on most of the API functions useful in VB. Better yet, get a copy of Dan Appleman's Visual Basic Programmer's Guide to the Win32 API (currently out of print, I believe) or his Win32 API Puzzle Book and Tutorial for Visual Basic Programmers.
VCA.gif

Alt255@Vorpalcom.Intranets.com
 
Window handles are long data types in Visual Basic.
Pointers to a string (LPSTR)- By Val string or variant; Char - By Val Byte. As far as a reference to corresponding datatypes for C and VB, I would consult any book on Win32API.

Sade08

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top