[Ace-users] [ace-users] Compiling error while ACE embedded in MFC dialog base App,

Carl Liu(Henyep SZ) xxliu at cn.henyep.com
Wed Dec 5 20:42:43 CST 2007


 i heard about ACE a few days ago and downloaded one and tried to write some
codes with it.  but it shows Compiling error while ACE embedded in MFC
dialog base App, as follows:
1)Ace Ver: 5.2.3 
2)Compiler ver: VC++ 6.0
3)Dialog based App named: MySample
the problem occurred when i use "ACE::ini();  ACE::fini()", 
it compiles ok when i handled it as follows:
-------------file name:  "MySampleDlg.Cpp", -------------
..............
#include <ace/os.h> in
...........

BOOL CMySampleDlg::CreateSrv()
{
	ACE::ini();  
	..........
	...........
             ACE::fini()",	
}
------------

but it shows compiling errors  while I tried this:
-------------file name:  "MySample.Cpp", -------------
..............
#include <ace/os.h> in
...........

BOOL CMySampleApp::InitInstance()
{
	ACE::ini();  
	..........
	...........
}
BOOL CMySampleApp::ExitInstance()
{
	  
	..........
	...........
     ACE::fini()",	
}
 
------------
compiling errors:
rkDir\MySample\MySample.cpp(48) : error C2653: 'ACE' : is not a class or
namespace name
E:\WorkDir\MySample\MySample.cpp(48) : error C2065: 'init' : undeclared
identifier
E:\WorkDir\MySample\MySample.cpp(92) : error C2653: 'ACE' : is not a class
or namespace name
E:\WorkDir\MySample\MySample.cpp(92) : error C2065: 'fini' : undeclared
identifier

could anybody help me on this? thanks.


-----------------------------------
Regards


                    Carl  
-----------------------------------
-----Original Message-----
From: ace-users-bounces at cse.wustl.edu
[mailto:ace-users-bounces at cse.wustl.edu] On Behalf Of ace-users-request at cse.
wustl.edu
Sent: 2007年12月5日 21:57
To: xxliu at cn.henyep.com
Subject: Welcome to the "ace-users" mailing list

Welcome to the ace-users at mail.cse.wustl.edu mailing list!

To post to this list, send your email to:

  ace-users at mail.cse.wustl.edu

General information about the mailing list is at:

  http://mail.cse.wustl.edu/mailman/listinfo/ace-users

If you ever want to unsubscribe or change your options (eg, switch to or
from digest mode, change your password, etc.), visit your subscription page
at:

  http://mail.cse.wustl.edu/mailman/options/ace-users/xxliu%40cn.henyep.com


You can also make such adjustments via email by sending a message to:

  ace-users-request at mail.cse.wustl.edu

with the word `help' in the subject or body (don't include the quotes), and
you will get back a message with instructions.

You must know your password to change your options (including changing the
password, itself) or to unsubscribe.  It is:

  123456

Normally, Mailman will remind you of your mail.cse.wustl.edu mailing list
passwords once every month, although you can disable this if you prefer.
This reminder will also include instructions on how to unsubscribe or change
your account options.  There is also a button on your options page that will
email your current password to you.

__________ NOD32 2705 (20071205) Information __________

This message was checked by NOD32 antivirus system.
http://www.nod32cn.com




More information about the Ace-users mailing list