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
 Member Completion Box Question/Problem
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

pwaugh
Ketchup Master

USA
68 Posts

Posted - Dec 05 2006 :  12:35:23 PM  Show Profile  Reply with Quote
Hi,

When I type a class name followed by the scope resolution operator like in this picture:



Near the cursor you see that I have

GetRect
GetRect()

When I have a GetRect() method defined in the .h.

Why do I see two(2) public methods, one bolded without parenthesis, and one regular without????

Shouldn't I only see one listing?

Thanks


Programming in C++

VA_X.dll 10.4.1626.0
Built 2008.01.17

(1-user license) Support ends 2009.01.29

DevEnv.exe version 9.0.21022.8
msenv.dll version 9.0.21022.8
Comctl32.dll version 6.0.2900.2982
Windows XP 5.1 Build 2600 Service Pack 2
Single processor
Platform: Win32

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Dec 05 2006 :  1:07:04 PM  Show Profile  Reply with Quote
which IDE and version of VA are you using?

Do you have:
VA Options -> Text Editor -> listboxes -> bold non-inherited members

turned on? If so this would explain why some items are bold, if this is a derived class.
What happens if you use an instance of this class, or a pointer to this class?
Is the problem specific to this class, or does it happen for lots of classes?

zen is the art of being at one with the two'ness
Go to Top of Page

pwaugh
Ketchup Master

USA
68 Posts

Posted - Dec 05 2006 :  1:19:34 PM  Show Profile  Reply with Quote
quote:
which IDE and version of VA are you using?

IDE:

Microsoft Visual Studio 2005
Version 8.0.50727.42 (RTM.050727-4200)

VA_X:

VA_X.dll file version 10.3.1540.0 built 2006.10.27
Licensed to:
VA X: [email protected] (1-user license) Support ends 2007.09.22
VAOpsWin.dll version 1.3.3.7
VATE.dll version 1.0.5.9
DevEnv.exe version 8.0.50727.42
msenv.dll version 8.0.50727.42
Font: Courier New 13(Pixels)
Comctl32.dll version 6.0.2900.2982
Windows XP 5.1 Build 2600 Service Pack 2
Single processor


quote:
Do you have:
VA Options -> Text Editor -> listboxes -> bold non-inherited members
turned on?

I do indeed have this option ON.


quote:

If so this would explain why some items are bold, if this is a derived class.

This is not a derived class.

quote:

What happens if you use an instance of this class, or a pointer to this class?

What happens? To what? Your question is not clear. The class works fine, and is a basic class that is used in other classes through composition.


quote:
Is the problem specific to this class, or does it happen for lots of classes?

The problem is just an example. It happens all the time to other classes, this is just the one I posted. I had posted earlier about this, but was unable to replicate it at that time to post a screen shot.

Programming in C++

VA_X.dll 10.4.1626.0
Built 2008.01.17

(1-user license) Support ends 2009.01.29

DevEnv.exe version 9.0.21022.8
msenv.dll version 9.0.21022.8
Comctl32.dll version 6.0.2900.2982
Windows XP 5.1 Build 2600 Service Pack 2
Single processor
Platform: Win32
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Dec 06 2006 :  08:33:44 AM  Show Profile  Reply with Quote
The class name seems to be CduLineItem. If you have the code:

CduLineItem foo;
foo.|


or:

CduLineItem *foo;
foo->|


do you still get these duplicate items?

What happens if you exclude the IDE from being skinned by WindowBlinds? I am assuming it is WindowBlinds you have used here to get this look. There can be some problems with WindowBlinds and VA:

http://docs.wholetomato.com?W270

I am quite interested by your comment that it happens all of the time. When this was happening before you were unable to replicate it on demand, but now it is happening all of the time. Do you know what has changed since then?

zen is the art of being at one with the two'ness
Go to Top of Page

pwaugh
Ketchup Master

USA
68 Posts

Posted - Dec 06 2006 :  10:07:17 AM  Show Profile  Reply with Quote
When using the class, I do not get the duplicates, only when attempting to Define the function which is declared in the related header file.

quote:
What happens if you exclude the IDE from being skinned by WindowBlinds?

The problem pre-dates Window Blinds.

quote:
I am quite interested by your comment that it happens all of the time. When this was happening before you were unable to replicate it on demand, but now it is happening all of the time. Do you know what has changed since then?

Really what I should have said is that the behavior is replicated now on demand, now that I know how I got it. Nothing has changed. It is just an irratation that I now know how I can replicate, and you have confirmed is not intentional. That's what I wanted to know.

If you guys can fix it, great, but I realize it is pretty minor.

On the off chance my header is "wrong", here it is:

// CduLineItem.h
//
// Copyright (c) 2006 Benchmark Avionics Corporation. All rights reserved.

#pragma once

#include <string>
#include <windows.h> // Definition of ULONG_PTR unsigned long
#include <gdiplus.h>

using namespace std;
using namespace Gdiplus;


class CduLineItem
{
public:
CduLineItem();
virtual ~CduLineItem();

wstring GetText() const;
void SetText(const wstring);
void Clear();

RectF GetRect() const;
void SetRect(const RectF);

Font* GetFontPtr() const;
void SetFontPtr(const Font*);

StringFormat m_StrFormat;
SolidBrush *m_pColor;

private:
bool m_isBoxed;
wstring m_Text;
RectF m_RectF;
Font *m_pFont;

SizeF m_TextSize;
};

So, with that saved, when I then go into the .cpp file and do what I do in the original post I get the effect.

In fact, I can continue to get it now.

Programming in C++

VA_X.dll 10.4.1626.0
Built 2008.01.17

(1-user license) Support ends 2009.01.29

DevEnv.exe version 9.0.21022.8
msenv.dll version 9.0.21022.8
Comctl32.dll version 6.0.2900.2982
Windows XP 5.1 Build 2600 Service Pack 2
Single processor
Platform: Win32
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Dec 06 2006 :  12:42:14 PM  Show Profile  Reply with Quote
Very strange. Thank you for the header file, this always helps. However I cannot reproduce the problem here using VS2005 and VA 1541.

Do you have:

VA Options -> Text Editor -> listboxes -> Get content from default Intellisense

turned on or off?

Have you tried using VA's Create Implementation refactoring command? This will add default implementations to the cpp file for you, which is less typing, which is always good

zen is the art of being at one with the two'ness
Go to Top of Page

pwaugh
Ketchup Master

USA
68 Posts

Posted - Dec 06 2006 :  12:48:07 PM  Show Profile  Reply with Quote
quote:
Very strange. Thank you for the header file, this always helps. However I cannot reproduce the problem here using VS2005 and VA 1541.


I am now using VA 1541 (with VS Pro), and the behavior is the same.

quote:

Do you have:

VA Options -> Text Editor -> listboxes -> Get content from default Intellisense turned on or off?


OFF

quote:

Have you tried using VA's Create Implementation refactoring command? This will add default implementations to the cpp file for you, which is less typing, which is always good

Nope. I will try it, but for the moment, I prefer to have to type, as it helps me reinforce learning.
Go to Top of Page

pwaugh
Ketchup Master

USA
68 Posts

Posted - Dec 06 2006 :  2:19:29 PM  Show Profile  Reply with Quote
I just tried that refactor -> Create Implementation, and it is awesome! Thanks for pointing that out.

Programming in C++

VA_X.dll 10.4.1626.0
Built 2008.01.17

(1-user license) Support ends 2009.01.29

DevEnv.exe version 9.0.21022.8
msenv.dll version 9.0.21022.8
Comctl32.dll version 6.0.2900.2982
Windows XP 5.1 Build 2600 Service Pack 2
Single processor
Platform: Win32
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Dec 07 2006 :  10:48:02 AM  Show Profile  Reply with Quote
Find a summary of our refactorings at:

http://www.wholetomato.com/products/featureRefactoring.asp

Find the start of documentation at:

http://www.wholetomato.com/products/features/rename.asp
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000