Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DDE help

Status
Not open for further replies.

Scoty

Programmer
Oct 25, 2000
278
US
I am programming a dde interface for an IBM personal comm...I have an intermented hangup problems...It is driving me nuts..on the dde spy from ms it say I have a 4009 error..(param?) But with VBA I cant set the
Code:
PARAM
(or can I?). I dont believe the error has anything to do with the hang up as I get the error everytime (and it is not fatal). I have put in a
Code:
SSTAT
on the session but the error occurs on the
Code:
DDEINITIATE
..thus causing the lock up before I can evalute the return. Can someone please help me or point me in the correct direction as I have had it :-(
 
Lets take a look at your code

DougP, MCP
dposton@universal1.com

Ask me how Bar-codes can help you be more productive.
 
Doug my code reads as follows
Code:
sesd = DDEInitiate("IBM327032", "SessionD")
ready = DDERequest(sesd, "sstat")
DDEExecute sesd, "[SENDKEY(wait inp inh)]"
If Left(ready, 3) <> &quot;nor&quot; Then ready = Mid(ready, 63, 1) Else ready = Mid(ready, 60, 1)
If ready <> 0 Then GoTo timer
ps = DDERequest(sesd, &quot;ps&quot;)
DDETerminate sesd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top