Skip to main content
gamedev.net
🔒 Locked

Datatype description

Started by programering Sep 2, 2005 at 5:55 AM 7 replies 1.1k views
Original Post
programering
programering
Hi! I tried to find out about LRESULT what it was used for, I searched on google and on msdn with: "LRESULT description", "LRESULT definition" and "LRESULT spec" but I didn't found what I was looking for. Maybe you know what it's for? And the same as HRESULT what that for? Does the L stand for Low and H stand for High? Thanks!!!
arm
arm
I could be totally wrong on this but I think LRESULT is short for 'Long Result' while HRESULT is short for 'Handle Result'.

Don't quote me on that lol, I'm probably totally wrong!!

arm.
Enigma
Enigma
It's a form of Hungarian Notation (and incidentally a related type shows up one of Hungarian Notation's greatest weaknesses). LRESULT is RESULT of type long. HRESULT as noted is a RESULT of type HANDLE. The related type is WPARAM from WndProc. This stands for PARAM of type WORD, but when Microsoft updated WndProc from 16-bit to 32-bit they failed to correctly rename WPARAM to DWPARAM (for PARAM of type DOUBLEWORD).

Enigma
programering
programering
Ok. thanks for the info.

also, are HANDLE's like pointers?
demonkoryu
demonkoryu
Patience, young padawan. [wink]
Handles are identifiers for internal data structures, which are not meant to be exposed. HANDLES may be type-casted pointers, indices into internal tables, or anything else. Their exact value is of no use for the outside world (i.e. your program).
programering
programering
Konfusius: Did you rated me up? Thanks I needed that.

EDIT: I rated you up++

[Edited by - programering on September 2, 2005 12:21:22 PM]
programering
programering
I will gather information of everything I get to know, and make the ultimate/complete documentation of the most all kinds of knowledge.
That's what I'm planning to do on my site, explain explicit or implicit, which one it is?
I am gonna make docs that explains pure. That will be my contribution.
That's what I would appreciate when I was in lack of information i needed.
It will be the ultimate information where everyone will get to understand it.
Just if I knew HTML codes better.

EDIT: Here's the URL:
http://www.geocities.com/programering/english/technical/techinfo.html
There not much now, but I will add more articles and so with time.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.