Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 1530 VAX underlines elements too far from base

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
Heppi Posted - Jul 21 2006 : 03:15:35 AM
Hello,
I found some weird underline "feature".

Given the following class structure:

class CxxxFileState 
{
public:
 virtual void Consume(CxxxFileContext& _context);
 virtual int GetMinimumSizeToRead(CxxxFileContext& _context);
protected:
 void ChangeState(CxxxFileContext& _context, CxxxFileState* _state);
 bool CheckMinimumRead(CxxxFileContext& _context);
};
class Record : public CxxxFileState
{
public:
 virtual void Consume(CxxxFileContext& _context);
 virtual int GetMinimumSizeToRead(CxxxFileContext& _context);
};
class ProgramInfo : public Record
{
public:
 virtual void Consume(CxxxFileContext& _context);
};
void ProgramInfo::Consume(CxxxFileContext& _context)
{
 if (!CheckMinimumRead(_context))
  return;
 STR_SEND_BUFFER* pHead = _context.GetHeadBuf();
 BYTE* pProg = _context.GetBuf();
 _context.Writer().ProcessProgramInfo(pHead, pProg, GetMinimumSizeToRead(_context) );
 ChangeState(_context, Header::State());
}

Some elements left out....
In ProgramInfo::Consume CheckMinimumRead, GetMinimumSizeToRead and ChangeState are underlined. In Record::Consume where these functions are also used, they are not.

Heppi
VS2005 VAX1530 and below
3   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Jul 24 2006 : 7:02:17 PM
confirmed. that is very strange. i was able to simply the code sample a bit, and i still see the same effect.

case=1791
Heppi Posted - Jul 24 2006 : 02:32:40 AM
Unfortunately,
if pasting this code fragment into a new file project I get the same result like you.
I omitted some declarations and (!important) the surrounding namespace.

Put a namespace around it and you see the underlining feature.
feline Posted - Jul 22 2006 : 12:27:22 PM
pasting this code into a header file in an existing C++ project, using VS2005 and VA 1530 i am not seeing these problems:



if you paste the code into a new file, or even into a new project, do you still have this inconsistent underlining? i am wondering if something further up the file is confusing VA.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000