PDA

View Full Version : Declaring API Functions In 64 Bit



marreco
02-10-2013, 05:01 AM
Hi.

I'm testing the system on a computer with a 64bit system and gave error in module public in some parts:

Public Declare Function SendMessage Lib "user32.dll" Alias "SendMessageA" (ByVal hWnd As Long, ByVal Msg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long



Declare Function GetDesktopWindow Lib "user32" () As Long
Declare Function GetWindowRect Lib "user32" (ByVal hWnd As Long, rectangle As RECT) As Long


Does anyone know if you can say work both .... 32bits and 64bits? ...

Thank you!

Admin
02-10-2013, 10:05 AM
Hi,

have a look at: Excel: Declaring API functions in 64 bit Office (http://www.jkp-ads.com/articles/apideclarations.asp)

marreco
02-11-2013, 03:18 AM
Hi
Thank you!!!