I've got the API Guide and want to know if I can use the API calls in it with C++, even though the examples are in VB.

I'm asking about the declarations, not the usage. I can figure that out. I'm in terested in:



VB Code:
  1. Declare Function BitBlt Lib "gdi32" Alias "BitBlt" (ByVal hDestDC As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal dwRop As Long) As Long
  2.  
  3. 'AND
  4.  
  5. Declare Function GetAsyncKeyState Lib "user32" Alias "GetAsyncKeyState" (ByVal vKey As Long) As Integer

Also, with the RECT declaration. do I declare that as

Code:
struct RECT {
     long Left;
     long top;
     long right;
     long bottom;
}
I'm new to C++ so thats probably horribly wrong, so please bare with me!

Thanks
NOMAD