ID: Q174300
The information in this article applies to:
This sample demonstrates how to use the MSMQ ActiveX components with the #import compiler directive new to Visual C++ 5.0. This program also demonstrates how to handle MSMQ ActiveX Events in C++.
The following file is available for download from the Microsoft Software Library:
~ Imp_Draw.exe (size: 119282 bytes)
For more information about downloading files from the Microsoft Software
Library, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q119591
TITLE : How to Obtain Microsoft Support Files from Online Services
The #import compiler directive makes COM objects easier to use from C++.
This sample program functions identically to the VB_Draw and C_Draw samples
included with the MSMQ product and will inter-operate with those two
samples.
This self-extracting executable file contains a sample project. To use the sample, unzip the contents of this file into a new directory. From the File menu, select Open Workspace from the Visual C++ IDE. Select Imp_Draw.dsw as the Workspace to load.
A new class has been defined to handle ActiveX Event notification, CMSMQEventHandler. This class can be used in other projects by deriving a new class from CMSMQEventHandler and overriding the Arrived and ArrivedError methods.
Aside from this new class the majority of code in this project was taken, or adapted, from the existing C_Draw and VB_Draw samples.
Keywords : MQVC
Version : WINNT:1.0
Platform : winnt
Last Reviewed: March 5, 1998