Article View: borland.public.cppbuilder.nativeapi
Article #8106Re: Several ways to define 2 system-wide hotkeys, without to install keyboard-hook..
From: Oren Halvani
Date: Mon, 22 Nov 2004 22:45
Date: Mon, 22 Nov 2004 22:45
38 lines
3096 bytes
3096 bytes
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> schrieb im Newsbeitrag news:41a26953$1@newsgroups.borland.com... > Simply cast the HWND from GetDesktopWindow() to a LONG, or cast the LONG > from GetWindowLong() to an HWND.... OK, i'll try to cast them both...hope that will work :-) > Everything works in Delphi because handles are integers to begin with, > whereas in C++ they are pointers instead. ohh, so there aren't pointers in delphi..? make's coding a bit easier... > There is no return called in the Delphi code you showed. "Result" is just a > variable (albeit a special variable). The code is just assigning a variable > value like any other. That is why FreeMem() can be called after assigning > the Result, because the function has not exited yet. When the function > finally reaches the last "end" statement (or there is an explitic call to > "Exit", which is not the case in this situation), then whatever value is > currently stored in the Result variable gets returned to the caller as the > function's return value. thanks for that infos...sorry, i didn't know that 'Result' was just a variable, i thought really its the equivalent for C++ return... > Delphi is not a complicated language. > > > Gambit for you not...thats for sure :-) i guess even assembler is not a big deal for you? :-) Oren
Technical Details
Message-ID:
<41a26c36$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.wiretrip.org!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<419ceea1@newsgroups.borland.com> <419cf173$1@newsgroups.borland.com> <419d2c69$1@newsgroups.borland.com> <419d3e01$1@newsgroups.borland.com> <419d8ce4@newsgroups.borland.com> <419dc340@newsgroups.borland.com> <419e5561$1@newsgroups.borland.com> <419e5ecc$1@newsgroups.borland.com> <419e6631@newsgroups.borland.com> <419e7adc$1@newsgroups.borland.com> <419e831e$1@newsgroups.borland.com> <419f0334$1@newsgroups.borland.com> <419f08b1@newsgroups.borland.com> <419fb061$1@newsgroups.borland.com> <419fc5aa@newsgroups.borland.com> <41a03fb6@newsgroups.borland.com> <41a066cc@newsgroups.borland.com> <41a23648$1@newsgroups.borland.com> <41a2651e@newsgroups.borland.com> <41a26953$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,9a94ec9a8ef193c6 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "Oren Halvani" <Spam@Me-Please.com> From: "Oren Halvani" <Spam@Me-Please.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <419ceea1@newsgroups.borland.com> <419cf173$1@newsgroups.borland.com> <419d2c69$1@newsgroups.borland.com> <419d3e01$1@newsgroups.borland.com> <419d8ce4@newsgroups.borland.com> <419dc340@newsgroups.borland.com> <419e5561$1@newsgroups.borland.com> <419e5ecc$1@newsgroups.borland.com> <419e6631@newsgroups.borland.com> <419e7adc$1@newsgroups.borland.com> <419e831e$1@newsgroups.borland.com> <419f0334$1@newsgroups.borland.com> <419f08b1@newsgroups.borland.com> <419fb061$1@newsgroups.borland.com> <419fc5aa@newsgroups.borland.com> <41a03fb6@newsgroups.borland.com> <41a066cc@newsgroups.borland.com> <41a23648$1@newsgroups.borland.com> <41a2651e@newsgroups.borland.com> <41a26953$1@newsgroups.borland.com> Subject: Re: Several ways to define 2 system-wide hotkeys, without to install keyboard-hook.. Date: Mon, 22 Nov 2004 23:45:26 +0100 Lines: 40 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 217.234.110.210 Message-ID: <41a26c36$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1101163574 217.234.110.210 (22 Nov 2004 14:46:14 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.wiretrip.org!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail