Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problems importing mqoa.dll into a MFC Application

133 views
Skip to first unread message

David Fellah

unread,
Dec 31, 2000, 8:51:55 PM12/31/00
to

Hello,
Im trying to use the IMSMQQueueInfosPtr, IMSMQQueueInfoPtr,IMSMQQuueuePtr
COM objects to transmit com objects on queues. However I have been unable
to create a MFC (Doc/View) project that will not choke on the


#import <mqoa.dll> no_namespace

directive :
I get the errors
<PATH TO MQOA.tlh>\tlh(1511) : error C2059 syntax error : 'constant' which
points to
enum MQTRANSACTION
{
-> MQ_NO_TRANSACTION
.
.
.
}

plus a whole host of other errors similar in nature. I downloaded the imp_draw
example application from microsoft - but it contained errors in the resource file
so I could not compile it (it did not exist).

Console applications work fine - so I trust it is an error on my part. Can
someone please help me ?

Thanks in advance,
David F.

Frank Boyne

unread,
Jan 2, 2001, 1:47:44 PM1/2/01
to
"David Fellah" <stra...@snet.net> wrote in message
news:38b001c07395$6b901560$46862ecf@cpmsftngxa06...

> COM objects to transmit com objects on queues. However I have been
> unable to create a MFC (Doc/View) project that will not choke on the
>
> #import <mqoa.dll> no_namespace

I don't generally 'do' MFC, so I'm not sure my test is valid, but I just
generated an MFC application, through the VC 6.0 wizard, and added the
#import to stdafx.h just above //{{AFX_INSERT_LOCATION}}, it compiles OK.


0 new messages