|
Overview |
|
|
|
Group |
|
|
|
Quick Info
Windows NT
| Yes
| Win95
| Yes
| Win32s
| Yes
| Import Library
| -
| Header File
| dde.h
| Unicode
| No
| Platform Notes
| None
|
|
|
WM_DDE_EXECUTE
A DDE client application posts a WM_DDE_EXECUTE message to a DDE server
application to send a string to the server to be processed as a series of commands.
The server application is expected to post a WM_DDE_ACK message in response.
WM_DDE_EXECUTE
wParam = (WPARAM) hwnd; // handle of posting application
lParam = (LPARAM) hCommands; // handle to global object
Parameters
hwnd
Value of wParam. Identifies the client window posting the message.
hCommands
Value of lParam. Contains a global memory object that references an ANSI or Unicode command
string, depending on the types of windows involved in the conversation.
Remarks
The command string is a null-terminated string consisting of one or more opcode strings enclosed in single brackets ([ ]).
Each opcode string has the following syntax, where the parameters list is optional:
opcode parameters
The opcode is any application-defined single token. It cannot include spaces, commas,
parentheses, brackets, or quotation marks.
The parameters list can contain any application-defined value or values. Multiple parameters
are separated by commas, and the entire parameter list is enclosed in
parentheses. Parameters cannot include commas or parentheses except inside a quoted
string. If a bracket or parenthesis character is to appear in a quoted string, it
need not be doubled, as was the case under the old rules.
Following are some valid command strings:
[connect][download(query1,results.txt)][disconnect]
[query("sales per employee for each district")]
[open("sample.xlm")][run("r1c1")]
[quote_case("This is a "" character")]
[bracket_or_paren_case("()s or []s should be no problem.")]
Note that, under the old rules, parentheses and brackets had to be doubled, as
follows:
[bracket_or_paren_case("(())s or [[]]s should be no problem.")]
Servers should be able to parse commands in either form.
Unicode execute strings should be used only when both the client and server
window handles cause the IsWindowUnicode function to return TRUE.
Posting
The client application posts the WM_DDE_EXECUTE message by calling the PostMessage function, not the SendMessage function.
The client application allocates hCommands by calling the GlobalAlloc function with the GMEM_DDESHARE option.
When processing the WM_DDE_ACK message that the server posts in reply to a WM_DDE_EXECUTE message, the
client application must delete the hCommands object sent back in the WM_DDE_ACK message.
Receiving
The server application posts the WM_DDE_ACK message to respond positively or
negatively. The server should reuse the hCommands object.
Unless specified otherwise by a sub-protocol, the server should not post the
WM_DDE_ACK message until all the actions specified by the execute command string
are completed. The one exception to this rule is when the string causes the
server to terminate the conversation.
See Also
GlobalAlloc, IsWindowUnicode, PackDDElParam, PostMessage, ReuseDDElParam, SendMessage, UnpackDDElParam, WM_DDE_ACK
| Last news from Greatis Software |
 |
|
Nostalgia .Net |
|
.Net is powerful, but not all-powerful, so sometimes we need to use Win32 API for our .Net applications. It's simple enough with Platform Invoke if you have Win32 skill, but we do not always have time to dig the ancient documentation, declare the special types that are compatible with Win32, find the values of the Win32's constants and so on. Nostalgia .Net offers several simple-to-use classes, and components that will allow you to forget about the headache of Win32 and just use the power of Win32 in your application the same way as you use the native. Net classes. More » |
| Recommended software for developers |
 |
|
Ultimate Pack |
|
Component pack for Delphi and C++ Builder that contains runtime form designer, runtime object inspector, print suite and much more for the very special price. More » |
 |
|
Form Designer .Net |
|
Unique runtime form design solution that allows to edit any form in .Net WinForms application at runtime with full source codes for only 300 euro! More » |
 |
|
Print Suite .Net |
|
Print Suite .Net is a set of components for easy printing texts, images and grids from your WinForms applications. Full C# source codes are available More » |
 |
|
Gradient Controls .Net |
|
Gradient Controls .Net offers controls with gradient background feature. Labels, panels and so on... Full C# source codes are available More » |
 |
|
Greatis iGrid |
|
iGrid plots drawing grid right over your desktop, so you can use it everywhere, with any drawing application without any special plugins for different graphic editors. More » |
All the contacts and projectsDmitry Vasiliev (just.dmitry)
Related LinksSoftware for Visual Studio .NET developers Software for Delphi and C++ Builder developers Software for Visual Basic 6 developers Delphi Tips&Tricks MegaDetailed.NET More Online Helps Win32 Programmer's Reference Win32 Multimedia Programmer's Reference OLE Programmer's Reference Microsoft Windows Pen API Programmer's Reference Microsoft Windows Sockets 2 Reference Microsoft Windows Telephony API (TAPI) Programmer's Reference Unix Manual Pages
|