Problem with C/C++ when using MQ_INVALID_HANDLE
I am using C binding for OpenMQ.
In my C or C++ program, I have the following:
MQPropertiesHandle propertiesHandle;
propertiesHandle = MQ_INVALID_HANDLE;
I will get compile error:
error C2059: syntax error : '{'
But If I change the above into following I will not get he error:
MQPropertiesHandle propertiesHandle = MQ_INVALID_HANDLE;
I need the first method to separately define the variable in one function and initialize it in other function. Can any body tell me what's wrong with the first method and how to cope with it.

