Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 21 JAN 2004 06:18:38PM Dana Corson wrote:

We are testing DDE from OI 32.

When using Word 2000 on a dde on the 1st attempt misses the first

BookMark, but loads the others fine.

On subsequent attempts it takes it fine. It is just the 1st occurrance of DDE after starting OI.

As a side note, running WORD 97 it takes all of the DDE all the time.

The only difference I have is the WORD 97 is running on an older slower pc.

Any suggestions?

Thanks


At 21 JAN 2004 06:29PM Richard Bright wrote:

You may want to put a pause in. From memory the DDE needs a few moments to get a breath when being set up.

Richard Bright

BrightIdeas New Zealand


At 22 JAN 2004 04:58AM S Smith wrote:

Try prototyping Sleep(milliseconds) in kernel32.dll

then try a 200 ms. delay.

This will give Word a chance to draw a last anxious breath as the rubber glove *snaps* over the dextrous digits of DDE….

ULONG STDCALL Sleep(ULONG) AS SLEEPER

Then from your routine, immediately after you invoke the load,

DECLARE SUBROUTINE SLEEPER

SLEEPER(200)


At 22 JAN 2004 04:58AM S Smith wrote:

Try prototyping Sleep(milliseconds) in kernel32.dll

then try a 200 ms. delay.

This will give Word a chance to draw a last anxious breath as the rubber glove *snaps* over the dextrous digits of DDE….

ULONG STDCALL Sleep(ULONG) AS SLEEPER

Then from your routine, immediately after you invoke the load,

DECLARE SUBROUTINE SLEEPER

SLEEPER(200)


At 22 JAN 2004 09:38AM Oystein Reigem wrote:

Dana,

Is Word well up and running when that first DDE thing is done? I have a process in my latest app that first starts Word, then communicates with Word via DDE. To be certain Word is ready I let my app wait for a few seconds before the first DDE command. For good measure I have a loop around that first DDE command where I check if the command was successful, and wait and repeat a few times if not. I don't really remember if all this is necessary. For all I know the first bit is sufficient and the second bit (the loop) never runs, and never might be tested, and thus be buggy. But at least it seems to work all the time.

- Oystein -

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/63c13611d544910485256e2200800ca3.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1