CommunicationState Enumeration

Communication state defines the states in which a communication-oriented object can exist. These states are defined as enumerations in the System.ServiceModel.dll.   http://msdn.microsoft.com/en-us/library/system.servicemodel.communicationstate(v=vs.110).aspx defines the various names in the enumeration however we do not get to see the enumeration values. As the above link explains there are four main states that a communication-oriented object can…


_bstr_t objects

A _bstr_t object encapsulates the BSTR data type. The class manages resource allocation and de-allocation through function calls to SysAllocString and SysFreeString. It isn’t necessary to de-allocate or free a string by calling SysFreeString that has been allocated by _bstr_t. Doing this might lead to double free of the allocated string when the  _bstr_t class…


How to get JavaScript working using Callback with COM

Imagine you have a scenario wherein you want your COM Server to be called within JavaScript which invokes an Async method. Upon completion of the Async method you would like to notify the JS using callback function that the task has been completed. Doing the Async work is simple but the callback to notify the…

0