# Dde "wait loop"

**URL:** <https://rubytalk.org/t/dde-wait-loop/43608>\
**Category:** ruby-talk\
**Created:** [8 January 2008 16:38 UTC](https://rubytalk.org/t/dde-wait-loop/43608 "2008-01-08T16:38:22Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ernst\_Tanaka](https://avatars.discourse-cdn.com/v4/letter/e/df705f/32.png) [@Ernst\_Tanaka](https://rubytalk.org/u/Ernst_Tanaka)\
**Post date:** [8 January 2008 16:38 UTC](https://rubytalk.org/t/dde-wait-loop/43608/1 "2008-01-08T16:38:22Z")

</div>

I have a question on DDE

I use the following command;

d = tk\_call('dde', 'request', 'TOS', 'DESCRIPTION', x.opra)

it seems that the call doesnot always give data while I am sure data is  
available.  
Tested via a dde call in a spreadsheet.

Could it be that that my program is not waiting long enough for the DDE  
response.

Appreciate any help.

Ernst T

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

---

<div class="post-metadata">

**Author:** ![Ernst\_Tanaka](https://avatars.discourse-cdn.com/v4/letter/e/df705f/32.png) [@Ernst\_Tanaka](https://rubytalk.org/u/Ernst_Tanaka)\
**Post date:** [9 January 2008 13:04 UTC](https://rubytalk.org/t/dde-wait-loop/43608/2 "2008-01-09T13:04:06Z")

</div>

Is there away to do dde calls in a async way and handle them with  
callbacks?

I am stuck here, would appreciate any help.

Thnks

Ernst T

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

---

<div class="post-metadata">

**Author:** ![Ernst\_Tanaka](https://avatars.discourse-cdn.com/v4/letter/e/df705f/32.png) [@Ernst\_Tanaka](https://rubytalk.org/u/Ernst_Tanaka)\
**Post date:** [10 January 2008 04:12 UTC](https://rubytalk.org/t/dde-wait-loop/43608/3 "2008-01-10T04:12:38Z")

</div>

no response so far;

have check on event/callback but sofar nothing.  
read MSFT documentation on DDE, no direct help either.

Still hope some fellow Rubyist will give a hand.

Thks

Ernst

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

---

<div class="post-metadata">

**Author:** ![Junkone](https://avatars.discourse-cdn.com/v4/letter/j/e274bd/32.png) [@Junkone](https://rubytalk.org/u/Junkone)\
**Post date:** [10 January 2008 11:55 UTC](https://rubytalk.org/t/dde-wait-loop/43608/4 "2008-01-10T11:55:03Z")

</div>

i have been searching high and low on how to use dde with ruby and the  
only post i have seen is yours. will keep looking.  
seede

> **···**
>
> On Jan 9, 11:12 pm, Ernst Tanaka \<er...@tanakasite.com\> wrote:
> 
> > no response so far;
> > 
> > have check on event/callback but sofar nothing.  
> > read MSFT documentation on DDE, no direct help either.
> > 
> > Still hope some fellow Rubyist will give a hand.
> > 
> > Thks
> > 
> > Ernst  
> > --  
> > Posted viahttp://www.ruby-forum.com/.

---

<div class="post-metadata">

**Author:** ![Ernst\_Tanaka](https://avatars.discourse-cdn.com/v4/letter/e/df705f/32.png) [@Ernst\_Tanaka](https://rubytalk.org/u/Ernst_Tanaka)\
**Post date:** [14 January 2008 01:35 UTC](https://rubytalk.org/t/dde-wait-loop/43608/5 "2008-01-14T01:35:42Z")

</div>

Junkone wrote:

> **···**
>
> > On Jan 9, 11:12�pm, Ernst Tanaka \<er...@tanakasite.com\> wrote:
> > 
> > > --  
> > > Posted viahttp://www.ruby-forum.com/.
> > 
> > i have been searching high and low on how to use dde with ruby and the  
> > only post i have seen is yours. will keep looking.  
> > seede
> 
> Anyone experience with DDE who would like to contribute to this post.  
> I am stuck here.  
> My program runs; sometime I get data; sometime I get the string "N/A".  
> --  
> Posted via [http://www.ruby-forum.com/\](http://www.ruby-forum.com/%5C).

---

<div class="post-metadata">

**Author:** ![Ernst\_Tanaka](https://avatars.discourse-cdn.com/v4/letter/e/df705f/32.png) [@Ernst\_Tanaka](https://rubytalk.org/u/Ernst_Tanaka)\
**Post date:** [18 January 2008 17:00 UTC](https://rubytalk.org/t/dde-wait-loop/43608/6 "2008-01-18T17:00:56Z")

</div>

A request for senior rubyist to write a DDE Gem.

If you check out VisualFoxPro you see a great set of command handling  
every DDE situation.  
Trust me; I have check the web -- it really seems Ruby doesnot have  
anything close.

[http://msdn2.microsoft.com/en-us/library/as3e74s4(VS.80).aspx](http://msdn2.microsoft.com/en-us/library/as3e74s4(VS.80).aspx)  
DDE Functions.

It would be great if the gem could also handle callback from DDEadvise

TK has a limited set of DDE command implemented. Two disadvantages one  
you have to load TK for just a limited use; two the Tk DDE  
implementation is very limited.

I am not able to take up my own dare. I learned to program in 1980 on  
Cics/Cobol and have learned ruby over the last months by trial and  
error. I am on the edge of my ruby knowledge.

We have a long weekend coming up; 🙂

Thanks!

Ernst

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

---

<div class="post-metadata">

**Author:** ![Junkone](https://avatars.discourse-cdn.com/v4/letter/j/e274bd/32.png) [@Junkone](https://rubytalk.org/u/Junkone)\
**Post date:** [18 January 2008 18:04 UTC](https://rubytalk.org/t/dde-wait-loop/43608/7 "2008-01-18T18:04:57Z")

</div>

I second that. I just dont know much ruby or dde mechanics to  
contribute. I would appreciate if someone took this proj and guide.  
seede

> **···**
>
> On Jan 18, 12:00 pm, Ernst Tanaka \<er...@tanakasite.com\> wrote:
> 
> > A request for senior rubyist to write aDDEGem.
> > 
> > If you check out VisualFoxPro you see a great set of command handling  
> > everyDDEsituation.  
> > Trust me; I have check the web -- it really seems Ruby doesnot have  
> > anything close.
> > 
> > [Microsoft Learn: Build skills that open doors in your career](http://msdn2.microsoft.com/en-us/library/as3e74s4(VS.80).aspxDDEFunctions%5C).
> > 
> > It would be great if the gem could also handle callback from DDEadvise
> > 
> > TK has a limited set ofDDEcommand implemented. Two disadvantages one  
> > you have to load TK for just a limited use; two the TkDDE  
> > implementation is very limited.
> > 
> > I am not able to take up my own dare. I learned to program in 1980 on  
> > Cics/Cobol and have learned ruby over the last months by trial and  
> > error. I am on the edge of my ruby knowledge.
> > 
> > We have a long weekend coming up; 🙂
> > 
> > Thanks!
> > 
> > Ernst  
> > --  
> > Posted viahttp://www.ruby-forum.com/.
