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
 Replacing '.' to '->' inside include path
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Hyp-X
New Member

3 Posts

Posted - Aug 05 2005 :  01:57:21 AM  Show Profile  Reply with Quote
Try the following C++ source:

#include "Foo.h"

struct CFoo
{
int Bar;
};

CFoo *Foo;

Try to change the include path to "../Foo.h"

VAX replaces '.' to '->' so the include path will be "->->/Foo.h"

This is very annoying ...

----

VA_X.dll file version 10.1.1418.0 built 2005.06.24
Licensed to:
VA X: [email protected] (18-user license) Support ends 2006.06.23
VA.NET 7.1:
VAOpsWin.dll version 1.2.0.4
DevEnv.exe version 7.10.3077.0
msenv.dll version 7.10.3077.0
Font: Courier 13(Pixels)
Comctl32.dll version 6.0.2900.2180
WindowsNT 5.1 Build 2600 Service Pack 2
Single processor

Platform: Win32
Stable Includes:
C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\include;
C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\atlmfc\\include;
C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\PlatformSDK\\include\\prerelease;
C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\PlatformSDK\\include;
C:\\Program Files\\Microsoft Visual Studio .NET 2003\\SDK\\v1.1\\include;

Library Includes:
C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\atlmfc\\src\\mfc;
C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\atlmfc\\src\\atl;
C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\crt\\src;

Other Includes:

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Aug 06 2005 :  3:59:19 PM  Show Profile  Reply with Quote
using VS 2003 and VAX 1418 i have added the code:

#include "Foo.h"

struct CFoo
{
    int Bar;
};

static void include_test()
{
    CFoo *Foo;
    Foo->Bar;
}


to an existing cpp file. i used Foo in the function to make sure that VAX was converting "." to "->" correctly, and it is. i then changed the include line as you did, and the dots were left alone. are you doing something different?

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

Hyp-X
New Member

3 Posts

Posted - Aug 06 2005 :  4:36:59 PM  Show Profile  Reply with Quote
Yes, in my code "CFoo *Foo;" is in global scope, not inside a function.
The problem is likely appearing only when Foo is a global variable.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Aug 08 2005 :  4:23:42 PM  Show Profile  Reply with Quote
*ah* i have found the problem. there was some other variable called "Foo" in the test project i was using that was confusing VAX. if i use a proper project that is not already full of things called "Foo" and "Bar" then i see the same thing.

i had initially tried with "CFoo *Foo;" at global scope, but that had not worked either, and i presumed this was a typo, due to my slight aversion to global variables

case=709

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

support
Whole Tomato Software

5566 Posts

Posted - Jan 19 2006 :  12:27:54 AM  Show Profile  Reply with Quote
Fixed in 1440.
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