#C++ Conversion Ops
4 messages in this thread
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
TCL compiles fine under C++ – just set the Extensions mapping back to Factory
Default.
– Dennis
–>
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
Your assignments make good sense, I'll do that from now on. Thanks.
Bob