LabWindows/CVI

Table of Contents
  • LabWindows/CVI Fundamentals
  • Creating Applications
  • Distributing Applications
  • Library Reference
  • Programmer Reference
  • Hardware Information

DDE Support Library Error Codes

The DDE Support Library functions return negative values when they detect errors. This library uses a common set of error codes. Refer to the function panel help for a list of the error codes and information about the individual functions. The following table lists the error codes, defined constants, and error messages associated with functions in the the LabWindows/CVI DDE Support Library.

Use the GetDDEErrorString function to convert the error code, returned in the status parameter of DDE Support Library functions, into meaningful error messages.

Error codes are defined in the cvi\include\ddesupp.h file.

DDE Support Library Error Codes

Code Defined Constant Error Message
0 kDDE_NoError No error
-1 -kDDE_UnableToRegisterService Unable to register service
-2 -kDDE_ExistingServer Existing server
-3 -kDDE_FailedToConnect Failed to connect
-4 -kDDE_ServerNotRegistered Server not registered
-5 -kDDE_TooManyConversations Too many conversations
-9 -kDDE_InvalidParameter Invalid parameter
-10 -kDDE_OutOfMemory Insufficient memory
-12 -kDDE_NoConnectionEstablished No connection established
-13 -kDDE_NotThreadOfServer Not in thread in which server was registered
-14 -kDDE_NotThreadOfClient Not in thread in which client connection was established
-16 -kDDE_AdvAckTimeOut Advise ACK time out
-17 -kDDE_Busy DDE_FBUSY flag is set
-18 -kDDE_DataAckTimeOut XTYP_REQUEST ACK time out
-19 -kDDE_DllNotInitialized DdeInitialize has not been called
-20 -kDDE_DllUsage Server and client handle misuse
-21 -kDDE_ExecAckTimeOut Execute ACK time out
-22 -kDDE_DataMismatch Data formats mismatched
-23 -kDDE_LowMemory Memory low
-24 -kDDE_MemoryError Memory allocation failed
-25 -kDDE_NotProcessed Transaction failed
-26 -kDDE_NoConvEstablished Conversation not established
-27 -kDDE_PokeAckTimeOut Poke ACK time out
-28 -kDDE_PostMsgFailed Internal postmessage failed
-30 -kDDE_ServerDied Server died before completion
-31 -kDDE_SysError System internal error
-32 -kDDE_UnadvAckTimeOut Unadvise ACK time out
-33 -kDDE_UnfoundQueueId Transaction ID is invalid
Note  Error codes -16 through -33 correspond to native Windows DDE error codes that start from 0x4000.

Log in to get a better experience