Author |
Topic |
|
dingweed
Senior Member
37 Posts |
Posted - Mar 11 2004 : 11:43:32 AM
|
If I have a code like this
bool String::Compare(String& strToCompare) {
Here I type strToCompare.
and it gets replaced with
strToCompare->
}
Vey bad, very annoying. |
|
LarryLeonard
Tomato Guru
USA
1041 Posts |
Posted - Mar 11 2004 : 11:50:33 AM
|
Which IDE? VAX 1219, right? Re-parsing the file doesn't fix it, right? Can you post the declaration of the String class (if it's not private, of course)?
|
|
|
dingweed
Senior Member
37 Posts |
Posted - Mar 11 2004 : 1:31:00 PM
|
Sorry yes it is 1219. And reparsing does not help.
and declaration looks like this
class String { public: bool Compare(String& strToCompare); }
VA_X.dll file version 10.0.1219.0 Licensed to: VA.NET 7.1: VAOpsWin.dll version 1.0.0.40 DevEnv.exe version 7.10.3077.0 msenv.dll version 7.10.3077.0 Font: Terminal 13(Pixels) Comctl32.dll version 5.82.2800.1106 WindowsNT 5.1 Build 2600 Service Pack 1 2 processors
Platform: Custom 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:
|
|
|
Stephen
Tomato Guru
United Kingdom
781 Posts |
Posted - Mar 11 2004 : 1:44:28 PM
|
I can't reproduce this in VS.NET 2002. |
Stephen Turner ClickTracks http://www.clicktracks.com/ Winner: ClickZ's Best Web Analytics Tool 2003 & 2004
|
|
|
LarryLeonard
Tomato Guru
USA
1041 Posts |
Posted - Mar 11 2004 : 2:21:46 PM
|
I can't either in VS.NET 2003... I wonder if it has anything to do with the class name being "String" - that just somehow feels like a "dangerous" class name. Can you try renaming your class to "DingString", and see if you get the same misbehavior?
|
|
|
dingweed
Senior Member
37 Posts |
Posted - Mar 11 2004 : 2:36:37 PM
|
It is not called String, I posted String for simplicity.
Also do you have Options\\Text Editor\\C/C++\\Convert dot to -> unchecked? If it's unchecked you will not be able to repro it. I think if it's checked then it should be smart and not replace reference dots to -> |
|
|
LarryLeonard
Tomato Guru
USA
1041 Posts |
Posted - Mar 11 2004 : 2:45:15 PM
|
quote: It is not called String, I posted String for simplicity.
The problem is that much of what VAX does involves the parsing of text; in a case when it isn't parsing correctly, posting the exact text is probably going to be necessary. Can you post the exact text that is failing for you?quote: do you have Options\\Text Editor\\C/C++\\Convert dot to -> unchecked?
No, I have it checked.
|
|
|
Stephen
Tomato Guru
United Kingdom
781 Posts |
Posted - Mar 11 2004 : 3:38:41 PM
|
I tried MyString as well, and it didn't convert it.
Try posting a self-contained chunk of code that can be pasted into a file on its own to exhibit the problem. |
Stephen Turner ClickTracks http://www.clicktracks.com/ Winner: ClickZ's Best Web Analytics Tool 2003 & 2004
|
|
|
|
Topic |
|