CompuServe Thread

#C++ Conversion Ops

4 messages in this thread
#7100From: Bob DelaneyJul 17, 1993 3:45 PM
I believe I know what caused the insertion of operator long (); into the public part of the class declaration of CDialogText to generate a "syntax error" message. I had used AppMaker to generate a shell with a window containing a CDialogText box. I find that the starter project provided by AppMaker maps .cp extension files to Think C, not Symantec C++! It does map .cpp extension files to Symantec C++. So since it's CDialogText.cp, it was being compiled with Think C and so gave the syntax error. I just looked at the AppMaker 1.5.4 release notes and can find no mention of this unusual mapping. By the way, is it OK to compile the TCL with Symantec C++? Bob
#7101From: Dennis BrothersJul 17, 1993 4:09 PM
TCL compiles fine under C++ – just set the Extensions mapping back to Factory Default. – Dennis
#7325From: Joe SewellJul 21, 1993 5:13 PM
–> By the way, is it OK to compile the TCL with Symantec C++? <– The whole reason the TCL source changed from .c to .cp was so it would be compiled under THINK C for those buying THINK C 6.0, and under Symantec C++ for those buying SC++ 6.0 for Macintosh. (FWIW, my current filename standard is: .c = pure C, .cpp = pure C++, .cp = code that can compile under either one, such as TCL subclasses.) Joe
#7337From: Bob DelaneyJul 21, 1993 8:19 PM
Your assignments make good sense, I'll do that from now on. Thanks. Bob