IonicWind Software

Aurora Compiler => Coding Help - Aurora 101 => Topic started by: Vikki on November 30, 2006, 12:09:44 PM

Title: What is a dword?
Post by: Vikki on November 30, 2006, 12:09:44 PM
I've got all my errors solved but I may have miss converted the wparam and lparam of SendMessage.

What is the Aurora equivalent of a dword?  ??? I used int but maybe it should be unsigned int?
Title: Re: What is a dword?
Post by: Bruce Peaslee on November 30, 2006, 12:13:13 PM
This is how I declare it:


declare import,SendMessage alias SendMessageA(
hwnd as unsigned int, // handle to receiving window
uMsg as unsigned int, // the message
wParam as unsigned int,       // additional info depending on message
lParam as unsigned int         // additional info depending on message
), unsigned int;   // result depending on message

Title: Re: What is a dword?
Post by: Vikki on November 30, 2006, 12:50:29 PM
Thanks Bruce!
Title: Re: What is a dword?
Post by: Kale on November 30, 2006, 01:30:40 PM
A DWORD is an unsigned int.

If you get confused with Window's types (and i think we all do at some stage) you can use these handy typedefs:

http://www.ionicwind.com/forums/index.php/topic,824.0.html

Basically, you include the file presented in the thread above and declare the Win32API commands as you see them on MSDN.com. So for example your code would be:


#include "WindowsTypes.inc"

declare import, SendMessage alias SendMessageA(
HWND hWnd,
UINT Msg,
WPARAM wParam,
LPARAM lParam
), LRESULT;


To implement your 'SendMessage' function:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/messagesandmessagequeues/messagesandmessagequeuesreference/messagesandmessagequeuesfunctions/sendmessage.asp
Title: Re: What is a dword?
Post by: Vikki on November 30, 2006, 01:51:05 PM
Thanks Kale!  :)

Got the file in my include folder now. Your work is much appreciated.