Share via


DDELastError( ) Function

Returns an error number for the last dynamic data exchange (DDE) function.

DDELastError( )

Return Values

Numeric

Remarks

You can use DDELastError( ) to help determine the cause of an error when a DDE function doesn't execute successfully.

DDELastError( ) returns 0 if the last DDE function executed successfully. It returns a nonzero value if the last DDE function was unsuccessful. The following table lists the error numbers and their descriptions.

Error number Description
1 Service busy
2 Topic busy
3 Channel busy
4 No such service
5 No such topic
6 Bad channel
7 Insufficient memory
8 Acknowledge timeout
9 Request timeout
10 No DDEInitiate( )
11 Client attempted server transaction
12 Execute timeout
13 Bad parameter
14 Low memory
15 Memory error
16 Connect failure
17 Request failure
18 Poke timeout
19 Could not display message
20 Multiple synchronous transactions
21 Server died
22 Internal DDE error
23 Advise timeout
24 Invalid transaction identifier
25 Unknown

See Also

DDEAbortTrans( ) | DDEAdvise( ) | DDEEnabled( ) | DDEExecute( ) | DDEInitiate( ) | DDEPoke( ) | DDERequest( ) | DDESetOption( ) | DDESetService( ) | DDESetTopic( ) | DDETerminate( )