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
 Feature Requests
 Bug: Can't complete sentance
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

fascist
New Member

7 Posts

Posted - Apr 25 2007 :  09:04:49 AM  Show Profile  Reply with Quote
cCompList - struct
cBaseCur - struct
cPolicies - CArray
csaData - CStringArray

cCompList->cBaseCur.cPolicies.GetAt(i).csaData.GetAt(i).
^ can't evaluate member list

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Apr 25 2007 :  11:43:09 AM  Show Profile  Reply with Quote
Which IDE and version of VA are you using?
Which programming language are you using?

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

fascist
New Member

7 Posts

Posted - Apr 26 2007 :  07:19:44 AM  Show Profile  Reply with Quote
1. Visual Studio 6 (latest sp)
2. C++ language
3. Win32 project
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Apr 26 2007 :  10:44:00 AM  Show Profile  Reply with Quote
If I am reading this right, and I think I am, your code is trying to use CStringArray::csaData

VS2005 informs me this does not exist, and I cannot find any sign of this in the header file in VC6 either.

Since this bit does not work VA does not understand csaData, so it will not understand the things that follow it.

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

fascist
New Member

7 Posts

Posted - Apr 26 2007 :  1:17:53 PM  Show Profile  Reply with Quote
quote:
Originally posted by feline

If I am reading this right, and I think I am, your code is trying to use CStringArray::csaData


u r not right... cPolicies is not a CStringArray...
cPolicies is "CArray <CPolicies,CPolicies>", and CPolicies class contains csaData member (it's my own class)
Go to Top of Page

sl@sh
Tomato Guru

Switzerland
204 Posts

Posted - Apr 27 2007 :  04:12:18 AM  Show Profile  Reply with Quote
From your incomplete (to say the least) description I gather that your code looks somethin like this:

class CPolicies {
public:
  CStringArray csaData;
};
struct STRUCT2 {
  CArray<CPolicies,CPolicies> cPolicies;
};
struct STRUCT1 {
  struct STRUCT2 cBaseStruct;
} *cCompList;
void foo() {
  STRUCT1 *cCompList;
  size_t i;
  // some sensible initialization
  cCompList->cBaseStruct.cPolicies.GetAt(i).csaData.GetAt(i).|
}

(red '|' indicating cursor position)

1. Provided this is correct, it would have been nice to get that much information (including the basic code as listed above) from the start.

2. If this is not correct it would have been even nicer to get the correct code from the start.

3. The above code works for me - after typing the last '.' I get the list of CStringArray symbols as appropriate (however, working with VS2003, so maybe this is a VC6 specific problem)

4. I wonder why you are using the same index variable i to both access your CArray and CStringArray
Go to Top of Page

fascist
New Member

7 Posts

Posted - Apr 27 2007 :  04:25:48 AM  Show Profile  Reply with Quote
quote:
Originally posted by sl@sh

class CPolicies {
public:
  CStringArray csaData;
};
struct STRUCT2 {
  CArray<CPolicies,CPolicies> cPolicies;
};
struct STRUCT1 {
  struct STRUCT2 cBaseStruct;
} *cCompList;
void foo() {
  STRUCT1 *cCompList;
  size_t i;
  // some sensible initialization
  cCompList->cBaseStruct.cPolicies.GetAt(i).csaData.GetAt(i).|
}



This code have the same problem... on vs6 and on vs2005 too...
VA version 10.3.1549.0

4. it's only an example, so i use same variable
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Apr 27 2007 :  08:00:14 AM  Show Profile  Reply with Quote
sl@sh thank you for this!

fascist I have tried the code from sl@sh on two different machines. VS2005 with VA 1554 and VS2005 with VA 1549 and when I type the dot I get the CStringArray symbols.

Can you start by providing some information about the problem? Can you reproduce this in a new project? Is it dependent on some other piece of code you have not told us about?

Can you please go to:

VA Options -> About -> Copy Info

and paste the details (from the clipboard) into this thread. This will give us the basic information about your setup.

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

fascist
New Member

7 Posts

Posted - Apr 27 2007 :  08:08:03 AM  Show Profile  Reply with Quote
VA_X.dll file version 10.3.1549.0 built 2007.03.16
VAOpsWin.dll version 1.3.4.8
VATE.dll version 1.0.6.2
MSDev.exe version 6.0.8168.2
Devshl.dll version 6.0.8168.0
Devedit.pkg version 6.0.8168.0
Font: Courier New CYR 11(Pixels)
Comctl32.dll version 5.82.2900.2982
Windows XP 5.1 Build 2600 Service Pack 2
2 processors

Platform: Win32 (x86)
Stable Includes:
C:\\Program Files\\Microsoft Visual Studio\\VC98\\INCLUDE;
C:\\Program Files\\Microsoft Visual Studio\\VC98\\MFC\\INCLUDE;
C:\\Program Files\\Microsoft Visual Studio\\VC98\\ATL\\INCLUDE;

Library Includes:
C:\\Program Files\\Microsoft Visual Studio\\VC98\\MFC\\SRC;
C:\\Program Files\\Microsoft Visual Studio\\VC98\\MFC\\INCLUDE;
C:\\Program Files\\Microsoft Visual Studio\\VC98\\ATL\\INCLUDE;
C:\\Program Files\\Microsoft Visual Studio\\VC98\\CRT\\SRC;

Other Includes:

p.s. same thing with new project

Edited by - fascist on Apr 27 2007 08:15:53 AM
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Apr 27 2007 :  12:53:40 PM  Show Profile  Reply with Quote
I am not seeing anything obviously odd in these settings.

What type of project did you create? Can you zip up this project and send me a copy, that way I will know that I am testing the same thing as you. Please submit the files via the form:

http://www.wholetomato.com/support/contact.asp

including this thread ID or URL in the description, so we can match it up.

You might want to try upgrading to VA 1555 to see if this helps.

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

fascist
New Member

7 Posts

Posted - Apr 28 2007 :  05:07:31 AM  Show Profile  Reply with Quote
hm... i've reinstall my VA and now it works...
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Apr 30 2007 :  07:46:06 AM  Show Profile  Reply with Quote
Working is good.

If you run into more problems can you post bug reports to the correct part of the forum, "Suggestions and Ideas" is for suggestions, not bug reports.

Also the more detail you provide up front the more easily and accurately we can help you.

zen is the art of being at one with the two'ness
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