This initializes the context.
Remarks
This class must be initialized before it can begin sending and receiving DDE messages. This happens automatically upon its first use by a DdeClient
or DdeServer
. An application can call Initialize
to make the initialization process occur immediately. This is useful when a calling application expects this class to raise the Register
and Unregister
events or invoke the ITransactionFilter.PreFilterTransaction
method before being used by a DdeClient
or DdeServer
.
If you attempt to use a synchronizer that is not hosted on a thread running a windows message loop an exception will be thrown.
Explicitly calling this method will allow added ITransactionFilter
objects to begin intercepting the DDEML callback function.
Exceptions
Exception Type | Condition |
---|---|
InvalidOperationException | This is thrown when the context is already initialized. |
DdeException | This is thrown when the context could not be initialized. |
See Also
DdeContext Class | NDde.Advanced Namespace