|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MFC's 4.2 ??? |
« View previous topic :: View next topic » |
Author |
Message
|
joydivision |
Posted: Tue Jan 21, 2003 5:44 am Post subject: MFC's 4.2 ??? |
|
|
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 |
|
 |
clindsey |
Posted: Tue Jan 21, 2003 11:36 am Post subject: |
|
|
Knight
Joined: 12 Jul 2002 Posts: 586 Location: Dallas, Tx
|
Try without the parens:
ImqChannel *pchannel = new ImqChannel;
Charlie |
|
Back to top |
|
 |
joydivision |
Posted: Wed Jan 22, 2003 12:42 am Post subject: |
|
|
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 |
|
 |
clindsey |
Posted: Wed Jan 22, 2003 8:39 am Post subject: |
|
|
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 |
|
 |
joydivision |
Posted: Wed Jan 22, 2003 9:14 am Post subject: |
|
|
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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|