Microsoft KB Archive/102732: Difference between revisions
(importing KB archive) |
m (Text replacement - """ to """) |
||
Line 29: | Line 29: | ||
<pre> as INIT.WPM. | <pre> as INIT.WPM. | ||
Application (WP;WPWP;Default; | Application (WP;WPWP;Default;"WPWPUS.WCD") | ||
// The following command would change to | // The following command would change to | ||
// reflect the FoxPro table name used in the session | // reflect the FoxPro table name used in the session | ||
DDEInitiate(handle; | DDEInitiate(handle;"ddedata"; | ||
"c:\foxprow\sample\organize\dbfs\;TABLE personal" ) | |||
IF (handle = 0) | IF (handle = 0) | ||
// Connection cannot be established | // Connection cannot be established | ||
MESSAGE:= | MESSAGE:="Cannot init conversation with FoxPro" | ||
NUMSTR(Show;;handle) | NUMSTR(Show;;handle) | ||
PROMPT( | PROMPT("Error";"handle:"+Show+ " - " + Message;1;;) | ||
PAUSEKEY(Key:Enter!) | PAUSEKEY(Key:Enter!) | ||
ENDPROMPT | ENDPROMPT | ||
ELSE | ELSE | ||
// A DDE conversation has begun | // A DDE conversation has begun | ||
MESSAGE:= | MESSAGE:="Connection established!!!" | ||
NUMSTR(Show;;handle) | NUMSTR(Show;;handle) | ||
PROMPT( | PROMPT("Success";"handle:"+Show+ " - " + Message;4;;) | ||
PAUSEKEY(Key:Enter!) | PAUSEKEY(Key:Enter!) | ||
ENDPROMPT | ENDPROMPT | ||
Line 55: | Line 55: | ||
6. If a DDE session can be established, a dialog box will appear | 6. If a DDE session can be established, a dialog box will appear | ||
<pre> with the message | <pre> with the message "Connection established!!!" | ||
</pre> | </pre> | ||
7. If a DDE session cannot be established, a dialog box will appear | 7. If a DDE session cannot be established, a dialog box will appear | ||
<pre> with the message | <pre> with the message "Cannot init conversation with FoxPro." | ||
</pre> | </pre> | ||
WordPerfect is manufactured by WordPerfect Corporation, a vendor independent of Microsoft; we make no warranty, implied or otherwise, regarding this product's performance or reliability. | WordPerfect is manufactured by WordPerfect Corporation, a vendor independent of Microsoft; we make no warranty, implied or otherwise, regarding this product's performance or reliability. |
Latest revision as of 09:26, 20 July 2020
DDE Link Between FoxPro and WordPerfect for WindowsID: Q102732 2.50 2.50a WINDOWS The information in this article applies to:
SUMMARYThe procedure below tests for the establishment of a dynamic data exchange (DDE) link between Microsoft FoxPro for Windows and WordPerfect version 5.2 for Windows. In this scenario, FoxPro functions as a DDE server and WordPerfect functions as a DDE client. MORE INFORMATION1. Open a FoxPro for Windows session and issue the following command to establish FoxPro as a DDE server: DO c:\foxprow\sample\dde\ddedata.app 2. Switch to Program Manager and open a WordPerfect for Windows session. 3. Create a document with the following commands and save it as INIT.WPM. Application (WP;WPWP;Default;"WPWPUS.WCD") // The following command would change to // reflect the FoxPro table name used in the session DDEInitiate(handle;"ddedata"; "c:\foxprow\sample\organize\dbfs\;TABLE personal" ) IF (handle = 0) // Connection cannot be established MESSAGE:="Cannot init conversation with FoxPro" NUMSTR(Show;;handle) PROMPT("Error";"handle:"+Show+ " - " + Message;1;;) PAUSEKEY(Key:Enter!) ENDPROMPT ELSE // A DDE conversation has begun MESSAGE:="Connection established!!!" NUMSTR(Show;;handle) PROMPT("Success";"handle:"+Show+ " - " + Message;4;;) PAUSEKEY(Key:Enter!) ENDPROMPT ENDIF 4. Close the INIT.WPM file. 5. From the Macro menu, choose Play. Double-click the INIT.WPM file. 6. If a DDE session can be established, a dialog box will appear with the message "Connection established!!!" 7. If a DDE session cannot be established, a dialog box will appear with the message "Cannot init conversation with FoxPro." WordPerfect is manufactured by WordPerfect Corporation, a vendor independent of Microsoft; we make no warranty, implied or otherwise, regarding this product's performance or reliability. REFERENCESFor more information on WordPerfect commands and macros, contact WordPerfect Corporation. To obtain the phone number for WordPerfect Corporation, query on the following words in the Microsoft Knowledge Base: Microsoft Technical Support and WordPerfect and vendor and phone and list Additional reference words: FoxWin 2.50 2.50a KBCategory: KBSubcategory: FxinteropDde Keywords : kb3rdparty kbcode FxinteropDde Version : 2.50 2.50a Platform : WINDOWS |
Last Reviewed: May 22, 1998 |