Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Pure Virtual methods problem

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
netsphynx Posted - Oct 04 2007 : 5:16:49 PM
Hello!

I think there is a problem with class parsing when a class has Pure Virtual methods. If the '= 0' is defined with a macro and the name of the macro is different from the Windows definition 'PURE', Visual Assist does not seems to understand it.

Here is a little C++ code sample that reproduces the problem:


#define PURE                    = 0     // Taken from Visual Studio 2005 include file objbase.h at line 198.
#define MYPURE1                 = 0
#define MYPURE2                 PURE

class ITest
{
    public:
        virtual void Test1() = 0;
        virtual void Test2() MYPURE1;
        virtual void Test3() PURE;
        virtual void Test4() MYPURE2;
};

void main()
{
    ITest* pITest = 0;

    pITest->Test1();
    pITest->Test2();
    pITest->Test3();
    pITest->Test4();
}


In the sample, the Test1 and Test3 will be properly recognized but the Test2 and Test4 will not.

Thanks in advance for your help!

Chris

VA_X.dll file version 10.3.1561.0 built 2007.09.13
Licensed to:
VAOpsWin.dll version 1.3.2.7
VATE.dll version 1.0.6.1
DevEnv.exe version 8.0.50727.762 (2005 with SP1)
msenv.dll version 8.0.50727.762
Font: Courier New 13(Pixels)
Comctl32.dll version 6.0.2900.2982
Windows XP 5.1 Build 2600 Service Pack 2
2 processors

Platform: Win32
Stable Includes:
C:\\Program Files\\Microsoft Visual Studio 8\\VC\\include;
C:\\Program Files\\Microsoft Visual Studio 8\\VC\\atlmfc\\include;
C:\\Program Files\\Microsoft Visual Studio 8\\VC\\PlatformSDK\\include;
C:\\Program Files\\Microsoft Visual Studio 8\\SDK\\v2.0\\include;

Library Includes:
C:\\Program Files\\Microsoft Visual Studio 8\\VC\\atlmfc\\src\\mfc;
C:\\Program Files\\Microsoft Visual Studio 8\\VC\\atlmfc\\src\\mfcm;
C:\\Program Files\\Microsoft Visual Studio 8\\VC\\atlmfc\\src\\atl;
C:\\Program Files\\Microsoft Visual Studio 8\\VC\\crt\\src;

Other Includes:
2   L A T E S T    R E P L I E S    (Newest First)
netsphynx Posted - Oct 07 2007 : 6:52:00 PM
I just installed the VA 1609 like you suggested and it did fix the problem.

Thank you!!!

Chris
feline Posted - Oct 05 2007 : 4:30:38 PM
Can you try installing VA 1609 please. This should fix the problem:

http://forum.wholetomato.com/forum/topic.asp?TOPIC_ID=6743

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