Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Replacing '.' to '->' inside include path

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
Hyp-X Posted - Aug 05 2005 : 01:57:21 AM
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:

4   L A T E S T    R E P L I E S    (Newest First)
support Posted - Jan 19 2006 : 12:27:54 AM
Fixed in 1440.
feline Posted - Aug 08 2005 : 4:23:42 PM
*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
Hyp-X Posted - Aug 06 2005 : 4:36:59 PM
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.
feline Posted - Aug 06 2005 : 3:59:19 PM
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?

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