 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
daniel Guest
|
Posted: Sat Dec 13, 2003 5:52 am Post subject: SNDMSG |
|
|
allo,
there is a use of SNDMSG( hander, WM_TYPE, int, int) in cpp and wonder is
there a similar one in Delphi.
though I'd found one sendMessage(with similar parameters) is the
functionality the same as SNDMSG(...).
do advise the diff between them.
thanks
daniel
|
|
| Back to top |
|
 |
Rob Kennedy Guest
|
Posted: Sat Dec 13, 2003 6:14 am Post subject: Re: SNDMSG |
|
|
daniel wrote:
| Quote: | there is a use of SNDMSG( hander, WM_TYPE, int, int) in cpp and wonder is
there a similar one in Delphi.
though I'd found one sendMessage(with similar parameters) is the
functionality the same as SNDMSG(...).
do advise the diff between them.
|
That would be much easier to do if you could explain what the
functionality of SNDMSG is.
SNDMSG, by its capitalization, is probably a macro and not a real
function. Look through the rest of your code to find is definition,
which is the first step toward finding a translation.
SendMessage is an API function; you can read all about it on MSDN,
http://msdn.microsoft.com/library/.
--
Rob
|
|
| Back to top |
|
 |
David Reeve Guest
|
Posted: Sat Dec 13, 2003 9:50 am Post subject: Re: SNDMSG |
|
|
"daniel" <mrdaniel (AT) singnet (DOT) com.sg> wrote
| Quote: | allo,
there is a use of SNDMSG( hander, WM_TYPE, int, int) in cpp and wonder is
there a similar one in Delphi.
though I'd found one sendMessage(with similar parameters) is the
functionality the same as SNDMSG(...).
do advise the diff between them.
thanks
daniel
|
Daniel, you can get instant results to this sort of question from
Google..... do try it. I found the following within 20secs
<quote>
I think it is because SNDMSG is a macro but you did not defined it. In
BC5.0 or MSVC4.0, it is defined like that:
#ifdef __cplusplus
#define SNDMSG ::SendMessage
#else
#define SNDMSG SendMessage
#endif
</quote>
Now that is pretty straightforward isn't it? So you have found SendMessage
within Delphi help? Look what help file it's in and you'll see it is part of
the W32 API. So the C/C++ macro is calling the API function. In Delphi you
will do exactly the same thing.
Dave
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|