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

Douglas C. Schmidt schmidt at dre.vanderbilt.edu
Wed Dec 5 21:03:25 CST 2007


Hi,

> 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=20

Please upgrade to ACE+TAO+CIAO x.6.1 (i.e., ACE 5.6.1, TAO 1.6.1, and
CIAO 0.6.1), which you can download from

http://download.dre.vanderbilt.edu

under the heading: "Latest Beta Kit."

The DOC groups at Washington University, UC Irvine, and Vanderbilt
University only provide "best effort" support for non-sponsors for the
latest release, as described in

http://www.dre.vanderbilt.edu/~schmidt/DOC_ROOT/ACE/docs/ACE-bug-process.html

Thus, if you need more "predictable" help for earlier versions of
ACE+TAO, I recommend that you check out

http://www.dre.vanderbilt.edu/support.html

for a list of companies that will provide you with ACE+TAO commercial
support.

Thanks,

        Doug


>2)Compiler ver: VC++ 6.0
>3)Dialog based App named: MySample
>the problem occurred when i use "ACE::ini();  ACE::fini()",=20
>it compiles ok when i handled it as follows:
>-------------file name:  "MySampleDlg.Cpp", -------------
>..............
>#include <ace/os.h> in
>...........
>
>BOOL CMySampleDlg::CreateSrv()
>{
>	ACE::ini(); =20
>	..........
>	...........
>             ACE::fini()",=09
>}
>------------
>
>but it shows compiling errors  while I tried this:
>-------------file name:  "MySample.Cpp", -------------
>..............
>#include <ace/os.h> in
>...........
>
>BOOL CMySampleApp::InitInstance()
>{
>	ACE::ini(); =20
>	..........
>	...........
>}
>BOOL CMySampleApp::ExitInstance()
>{
>	 =20
>	..........
>	...........
>     ACE::fini()",=09
>}
>=20
>------------
>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 =20
>-----------------------------------
>-----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=C4=EA12=D4=C25=C8=D5 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
>
>


-- 
Dr. Douglas C. Schmidt                       Professor and Associate Chair
Electrical Engineering and Computer Science  TEL: (615) 343-8197
Vanderbilt University                        WEB: www.dre.vanderbilt.edu/~schmidt
Nashville, TN 37203                          NET: d.schmidt at vanderbilt.edu



More information about the Ace-users mailing list