ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ API Support » MFC's 4.2 ???

Post new topic  Reply to topic
 MFC's 4.2 ??? « View previous topic :: View next topic » 
Author Message
joydivision
PostPosted: Tue Jan 21, 2003 5:44 am    Post subject: MFC's 4.2 ??? Reply with quote

Newbie

Joined: 21 Jan 2003
Posts: 3

Hi,

i have problems when compiling the sample programs with mfc's 4.2.
The message error is "MQSeriesDlg.cpp(128): error C2660: 'ImqErr::operator new' : function does not take 3 parameters"

but the code is " pchannel = new ImqChannel() ".

Can someone help me?.

Thanks.
Back to top
View user's profile Send private message
clindsey
PostPosted: Tue Jan 21, 2003 11:36 am    Post subject: Reply with quote

Knight

Joined: 12 Jul 2002
Posts: 586
Location: Dallas, Tx

Try without the parens:
ImqChannel *pchannel = new ImqChannel;

Charlie
Back to top
View user's profile Send private message
joydivision
PostPosted: Wed Jan 22, 2003 12:42 am    Post subject: Reply with quote

Newbie

Joined: 21 Jan 2003
Posts: 3

thanks but don´t work.

in release mode the compilation has no error but in debug mode
don´t compile.
Back to top
View user's profile Send private message
clindsey
PostPosted: Wed Jan 22, 2003 8:39 am    Post subject: Reply with quote

Knight

Joined: 12 Jul 2002
Posts: 586
Location: Dallas, Tx

MQ classes do not have any dependencies on having debug defined or not.
Take a close look at your project settings for release and debug and see if there are any other differences.

Does your code have any "ifdef" based on debug mode?

Charlie
Back to top
View user's profile Send private message
joydivision
PostPosted: Wed Jan 22, 2003 9:14 am    Post subject: Reply with quote

Newbie

Joined: 21 Jan 2003
Posts: 3

IC22041 - User applications compiled with the Microsoft Visual
C++ compiler that do new/delete on Imq objects could
have caused problems if the application and MQSeries
bindings were using different C runtime environments.
This could have been caused by using different versions
of the compiler, compiling the application as debug,
using the Microsoft Foundation Class (MFC) or
statically linking the C-runtime. The problem could
have manifested itself as a user breakpoint when
debugging the application and operator delete, of the
imq object, was called.

i have found this article at
http://www-3.ibm.com/software/ts/mqseries/support/apars/u470763.html
I don´t understand the english languaje very well, but i thing is my problem.

thanks for your help.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » MFC's 4.2 ???
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.