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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DDE Links and WIN2000

Status
Not open for further replies.

Riegg

Programmer
Mar 20, 2003
29
CA
I have a script that works just fine in 98 but when I run it under 2000 I can't get the DDE "stuff" to work. Anyone have luck with DDE in 2000??
 
I'll have to try this on my Win2K laptop at home, but I'm not aware of any problems. Are you communicating with Excel or a different application? Are you using the same versions of Procomm on both machines? In version 4.8, the DDE topic is PW5 (incorrectly mentioned as PW4 in the help files), while PW4 is used for previous 4.x versions.


aspect@aspectscripting.com
 
Nope just Excel, and it is the same version of Procomm on both. Now what is this about "the DDE topic is PW5"?? (It's 4.8 on both partitions; same machine)
 
The server name (I used the wrong bit of jargon, forget topic) is what is used by other applications to control Procomm. This is when Procomm is acting as a DDE server instead of a DDE client (which is what it is called when Procomm requests information from other applications). However, this shouldn't matter in your case since Procomm is controlling Excel and not the other way around, I assume.

At I have a couple DDE samples provided by Hank. You might want to take a quick look at those and see if those work successfully on your Win2K machine (it will be a little while tonight until I can fire up the laptop). One other thing to check is that the paths to Excel are the same on both machines, particularly if they are different versions of Excel.


aspect@aspectscripting.com
 
Oh, ya it's procomm that is controlling excel. The path is the same since it does bring it up (run excelpath ; where excelpath is setup in a user box.) The command that is giving me problems is:



ddeinit excelch "excel" "system"

 
Sorry, I forgot to get to this last night. I'll look into it tonight unless I happen to switch one of my work machines to Win2K today.


aspect@aspectscripting.com
 
I used the DDE_EXCEL_TO_TEXT.ZIP script on my samples page and it worked fine on my Win2K laptop. If you want to post your script, I can look it over and see if I notice anything, but it's odd that it works on Win98 and not Win2K.


aspect@aspectscripting.com
 
yes I found it very odd... now the problem is that my script is over 2000 lines so posting it is all most out of the question. But now that I know it works, and there are no issues I will go back and work on it.

Thanks
 
You might try just the ddeinit section of code by itself and see if you can get it (or the sample DDE code from Hank on my site) to see if you can get just that to work. There are a couple problems in other areas with ASPECT on Win2K - the one that jumps to mind at the moment is a couple of the file-related commands (sdlgfsaveas, sdlgfopen, and dir). These commands don't return the expected results under Win2K, so that may be causing your script some fits.


aspect@aspectscripting.com
 
well just more things for me to check..... ARGH!! :)
Thanks for the heads up on the sdlgfsaveas and sdlgfopen as I use both in the script. That's it I am just going to stamp "Do Not Use In Win2000" on it and send it out.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top