Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #9714 > unrolled thread
| Started by | klackog@gmail.com |
|---|---|
| First post | 2016-09-05 03:15 -0700 |
| Last post | 2016-09-08 13:09 +0200 |
| Articles | 4 — 4 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
64 bit OS and W32 API call klackog@gmail.com - 2016-09-05 03:15 -0700
Re: 64 bit OS and W32 API call "Wolfgang Riedmann" <wriedmann@gmail.com> - 2016-09-05 14:13 +0200
Re: 64 bit OS and W32 API call "Arne Ortlinghaus" <Arne.Ortlinghaus@acs.it> - 2016-09-06 08:20 +0200
Re: 64 bit OS and W32 API call D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2016-09-08 13:09 +0200
| From | klackog@gmail.com |
|---|---|
| Date | 2016-09-05 03:15 -0700 |
| Subject | 64 bit OS and W32 API call |
| Message-ID | <969749f1-6c5b-453c-8eeb-0b8cc8a176c5@googlegroups.com> |
Hi all. I stated that some W32 API calls returns FALSE, and accordingly null results on 64 bit OS. Ex. 2.8 SP1 exe for anyone of OS Win 7, 8, 10 all 64 bit, but not for Win 7 32 bit: ShellexecuteEx - TRUE, but the following(s) GetExitCodeProcess -FALSE (and 0 on return arg.) same for GetWindow , etc. Is there any general incompatibility which I don't know? Kiss László
[toc] | [next] | [standalone]
| From | "Wolfgang Riedmann" <wriedmann@gmail.com> |
|---|---|
| Date | 2016-09-05 14:13 +0200 |
| Message-ID | <e355r4Fb7c7U1@mid.individual.net> |
| In reply to | #9714 |
Hi Laszlo, normally there should be no problem, at least I haven't seen anything similar. Is this for restricted users only or also for administrators? Wolfgang klackog@gmail.com wrote: > Hi all. > > I stated that some W32 API calls returns FALSE, and accordingly null > results on 64 bit OS. > > Ex. > > 2.8 SP1 exe > for anyone of OS Win 7, 8, 10 all 64 bit, but not for Win 7 32 bit: > > ShellexecuteEx - TRUE, but the following(s) > GetExitCodeProcess -FALSE (and 0 on return arg.) > same for GetWindow , etc. > > Is there any general incompatibility which I don't know? > > Kiss László --
[toc] | [prev] | [next] | [standalone]
| From | "Arne Ortlinghaus" <Arne.Ortlinghaus@acs.it> |
|---|---|
| Date | 2016-09-06 08:20 +0200 |
| Message-ID | <nqln6u$uav$1@dont-email.me> |
| In reply to | #9715 |
It is the same for me - no differences 64 bit versus 32 bit programs as long as all components used are the 32 bit ones. One difference are the paths to the registry: When accessing local_machine\Software the 32 bit programs are routed to local_machine\Software\Wow6432Node Arne Ortlinghaus "Wolfgang Riedmann" <wriedmann@gmail.com> schrieb im Newsbeitrag news:e355r4Fb7c7U1@mid.individual.net... > Hi Laszlo, > > normally there should be no problem, at least I haven't seen anything > similar. > Is this for restricted users only or also for administrators? > > Wolfgang > > > klackog@gmail.com wrote: > >> Hi all. >> >> I stated that some W32 API calls returns FALSE, and accordingly null >> results on 64 bit OS. >> >> Ex. >> >> 2.8 SP1 exe >> for anyone of OS Win 7, 8, 10 all 64 bit, but not for Win 7 32 bit: >> >> ShellexecuteEx - TRUE, but the following(s) >> GetExitCodeProcess -FALSE (and 0 on return arg.) >> same for GetWindow , etc. >> >> Is there any general incompatibility which I don't know? >> >> Kiss László > > > > -- >
[toc] | [prev] | [next] | [standalone]
| From | D.J.W. van Kooten <vankooten@removethis.ic2.com> |
|---|---|
| Date | 2016-09-08 13:09 +0200 |
| Message-ID | <pgh2tbtqtg51r3uha6g4rn5fc7v3bqrmca@4ax.com> |
| In reply to | #9714 |
Replying on message of Mon, 5 Sep 2016 03:15:32 -0700 (PDT) from
klackog@gmail.com:
Hello Kiss,
>I stated that some W32 API calls returns FALSE, and accordingly null results on 64 bit OS.
>
> ShellexecuteEx - TRUE, but the following(s)
> GetExitCodeProcess -FALSE (and 0 on return arg.)
> same for GetWindow , etc.
>
Not sure if you get enough info from true/false. Help says:
Return Values
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error
information, call GetLastError.
I use ShellExecute (without ex) as follows:
LOCAL hReturn AS PTR
LOCAL nRet AS LONGINT
LOCAL lReturn AS LOGIC
hReturn:=ShellExecute(NULL, String2Psz("open"), String2Psz(cSetUp),
NULL, String2Psz(cPath), SW_SHOW)
nRet:=INT(@hReturn)
IF nRet<=32
lReturn:=FALSE
ELSE
lReturn:=TRUE
ENDIF
This seems to work well everywhere.
Dick
--- news://freenews.netfront.net/ - complaints: news@netfront.net ---
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web