|
-
February 13th, 2002, 05:13 AM
#1
MQ exception ??
import "mqoa.dll;
using namespace MSMQ;
try {
IMSMQQueueInfoPtr pqinfo ("MSMQ.MSMQQueueInfo"); ////////////// THIS THROWS EXCEPTION
pqinfo->PathName = L".\\queuename";
//
// Create non-transactional, non-world-readable queue.
//
pqinfo->Create();
}
catch (_com_error &e) {
// UNDONE: handle error.
}
why the exception is throwed ?? - its part of MS sample .. i am using W2k Server .. nad VC++ 6.0
Thaks for all suggestions
Mira
-
February 13th, 2002, 08:34 AM
#2
Re: MQ exception ??
Check if you called CoInitialize when the application starts and CoUnitialize when the application stops. These calls are mandatory for the COM clients to run successfuly.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|