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
 1430: typedef struct problem
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

kevinsikes
Tomato Guru

USA
271 Posts

Posted - Nov 08 2005 :  10:48:16 PM  Show Profile
Build 1430 fails to recognize typedef'd structures:

typedef struct tagA
{
	unsigned long dw;
	char aaaa[4];
} A, *LPA;

typedef struct tagB
{
	unsigned short wLow;
	unsigned short wHigh;
	char c1;
	char c2;
	char c3;
	char c4;
} B, *LPB;

typedef union tagU
{
	A a;
	B b;
} U, *LPU;


void main()
{
	U foo;
	foo.a.dw = 0x1234ABCD;

	if (foo.b.wLow != 0xABCD)
	{
		// Not little endian.  Panic!
	}
}

In the above example (which works fine in build 1428) A, B, and U are not syntax colored, and hovering the mouse over any member in foo.b.wLow shows only "U foo".


VA_X.dll file version 10.1.1430.0 built 2005.11.04
VAOpsWin.dll version 1.3.3.0
VATE.dll version 1.0.4.2
MSDev.exe version 6.0.9782.2
Devshl.dll version 6.0.9782.0
Devedit.pkg version 6.0.9782.0
Font: Bitstream Vera Sans Mono 16(Pixels)
Comctl32.dll version 5.81.4916.400
WindowsNT 5.0 Build 2195 Service Pack 4
Single processor
Platform: Win32 (x86)

Kevin Sikes
Infotainment Platform Design Engineer
Ford Motor Company

Edited by - kevinsikes on Nov 08 2005 10:56:12 PM

jh2002
New Member

9 Posts

Posted - Nov 09 2005 :  12:27:54 AM  Show Profile
Same here. 1430 only colors the last name.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18751 Posts

Posted - Nov 09 2005 :  4:24:37 PM  Show Profile
confirmed.

case=871

thank you for the clear example.

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

kevinsikes
Tomato Guru

USA
271 Posts

Posted - Nov 20 2005 :  11:10:56 PM  Show Profile
This is working properly in build 1432. Thanks!

Kevin Sikes
Infotainment Platform Design Engineer
Ford Motor Company
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