Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #6101

Re: ShellExecute fails to open document 1st time in Word 2010

From "Jamal" <jamal@examples.net>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: ShellExecute fails to open document 1st time in Word 2010
Date 2013-10-15 20:41 -0400
Organization Aioe.org NNTP Server
Message-ID <l3knbe$3nd$1@speranza.aioe.org> (permalink)
References <2k6p39peneka4t3uao457snlm3q7i9dgta@4ax.com> <xmU%t.105417$dY5.97432@fx07.am4> <au80491pk4rqmqad9cv5i3bcl1u0mbj22u@4ax.com> <v31r595io02hjhrs3rv7qco8i6qr95u19r@4ax.com>

Show all headers | View raw


That's a good find!

"D.J.W. van Kooten"  wrote in message 
news:v31r595io02hjhrs3rv7qco8i6qr95u19r@4ax.com...

On Mon, 23 Sep 2013 13:21:21 +0200, D.J.W. van Kooten
<public@ic2remove.this.com> wrote:

Hello all,

>I'll let you know!
>
The problems is solved, by a complete rewite done by Kees after a lot
of investigations:

lpShellInfo.cbSize := _SIZEOF (_winSHELLEXECUTEINFO)
lpShellInfo.hwnd := SELF:oCaller:Handle()
lpShellInfo.lpVerb := String2Psz("open")
lpShellInfo.lpFile := String2Psz(cFile)
lpShellInfo.nShow := SW_SHOWNORMAL
lpShellInfo.fMask := SEE_MASK_WAITFORINPUTIDLE

IF ShellExecuteEx (@lpShellInfo)
hProc := lpShellInfo.hProcess
ENDIF

instead of ShellExecute.

I already noted that on my system, with Word 2003, it worked fine. Our
change was that we displayed a preview while browsing through
documents. Word versions after 2003 are many times slower than 2003
and apparently fail to load in time, after which also the doubleclick
-which wasn't changed at all- fails.

The above code, especially the SEE_MASK_WAITFORINPUTIDLE, solves this
problem.

Dick 

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

ShellExecute fails to open document 1st time in Word 2010 D.J.W. van Kooten <public@ic2remove.this.com> - 2013-09-20 21:06 +0200
  Re: ShellExecute fails to open document 1st time in Word 2010 "Jamal" <jamal@examples.net> - 2013-09-21 13:42 -0400
    Re: ShellExecute fails to open document 1st time in Word 2010 D.J.W. van Kooten <public@ic2remove.this.com> - 2013-09-23 11:25 +0200
  Re: ShellExecute fails to open document 1st time in Word 2010 Malcolm G <malcolm-news2012delete@delete.jobstream.com> - 2013-09-23 11:04 +0100
    Re: ShellExecute fails to open document 1st time in Word 2010 D.J.W. van Kooten <public@ic2remove.this.com> - 2013-09-23 13:21 +0200
      Re: ShellExecute fails to open document 1st time in Word 2010 D.J.W. van Kooten <public@ic2remove.this.com> - 2013-10-15 20:13 +0200
        Re: ShellExecute fails to open document 1st time in Word 2010 Massimo Bighelli <info@arcasistemi.it> - 2013-10-16 01:05 +0200
        Re: ShellExecute fails to open document 1st time in Word 2010 "Jamal" <jamal@examples.net> - 2013-10-15 20:41 -0400

csiph-web