BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

SNDMSG

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.misc
View previous topic :: View next topic  
Author Message
daniel
Guest





PostPosted: Sat Dec 13, 2003 5:52 am    Post subject: SNDMSG Reply with 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



Back to top
Rob Kennedy
Guest





PostPosted: Sat Dec 13, 2003 6:14 am    Post subject: Re: SNDMSG Reply with quote



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





PostPosted: Sat Dec 13, 2003 9:50 am    Post subject: Re: SNDMSG Reply with quote




"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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.misc All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.