Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Incorrect autotext
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

verifier
Senior Member

Sweden
27 Posts

Posted - Feb 03 2004 :  07:35:56 AM  Show Profile
I got a class file:

#define DTLOGFILE

class DtLogFile
{
enum MyEnum
{
ONEVALUE = 10
}
[...]

}


in another sourcefile I type:
DtLogFile::

Autotext changes it to:
DTLOGFILE::

:: Is not valid for a #define constant, right? So why change it to a define? Why change it at all when I've typed the classname correctly.

please fix.

c++ coder @ datatal.se | been coding since '95

willdean
Tomato Guru

134 Posts

Posted - Feb 03 2004 :  09:40:59 AM  Show Profile

I can see why you don't want it corrected, when it was already correct as it was, but there's no reason why PREPROCESSORCONSTANT:: would be syntactically incorrect.

And you've had nearly nine years to learn that...

Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Feb 03 2004 :  11:08:54 AM  Show Profile
In what file type was "class DtLogFile" declared? A .cpp or .h file?

Did the file in which you typed "DtLogFile::" have a #include of the file with the class declaration?

Whole Tomato Software, Inc.
Go to Top of Page

verifier
Senior Member

Sweden
27 Posts

Posted - Feb 04 2004 :  04:43:39 AM  Show Profile
1. A header file:
#pragma once
#define DTLOGFILE

namespace Datatal {
namespace IO {
class DtLogFile
{
[...]

2. No, in the header file (and I typed it in the cpp file)

c++ coder @ datatal.se | been coding since '95
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000