Author |
Topic |
|
xMRi
Tomato Guru
Germany
315 Posts |
Posted - May 24 2006 : 04:09:03 AM
|
I miss CString::ReleaseBuffer when I type: CString str; str.R
Any ideas?
Using current version 1445! |
Martin Richter [rMVP] WWJD http://blog.m-ri.de "A well-written program is its own heaven; a poorly written program is its own hell!" The Tao of Programming |
Edited by - xMRi on May 24 2006 04:09:52 AM |
|
feline
Whole Tomato Software
United Kingdom
19020 Posts |
Posted - May 25 2006 : 2:33:06 PM
|
using VS2003, C++ and VA 1445 i cannot reproduce this. both ReleaseBuffer() and ReleaseBufferSetLength() are being suggested.
which IDE are you using? does this happen in a test project? what do you have:
VA Options -> Text Editor -> listboxes -> get content from default intellisense
set to? |
zen is the art of being at one with the two'ness |
|
|
xMRi
Tomato Guru
Germany
315 Posts |
Posted - May 26 2006 : 01:41:49 AM
|
Using VS2003 with VA 1445.
The check box "get content from default intellisense" was disabled.
I set it to checked now. I will see. Even than strange. |
Martin Richter [rMVP] WWJD http://blog.m-ri.de "A well-written program is its own heaven; a poorly written program is its own hell!" The Tao of Programming |
|
|
feline
Whole Tomato Software
United Kingdom
19020 Posts |
Posted - May 27 2006 : 1:40:07 PM
|
i nearly always have this turned off on my machines, so this setting should not make any difference. if changing this does not help can you try to reproduce this problem in a basic project? it is possible that some project specific settings you have are a factor. |
zen is the art of being at one with the two'ness |
|
|
xMRi
Tomato Guru
Germany
315 Posts |
Posted - May 29 2006 : 03:51:08 AM
|
Checked it, doesn't make a difference. I see this effect in all of my projects! There is nothing special with the projects... |
Martin Richter [rMVP] WWJD http://blog.m-ri.de "A well-written program is its own heaven; a poorly written program is its own hell!" The Tao of Programming |
|
|
feline
Whole Tomato Software
United Kingdom
19020 Posts |
Posted - May 29 2006 : 7:06:25 PM
|
this is odd. i should be able to reproduce this.
a fix has been made in the last few days for suggestions on CString, which should be present in the next build of VA. we are hoping to have a public beta of the new 15xx versions in a few days, which should have this fix. depending on how long it takes this may be the best way forward.
have you tried a new default project to see if you get this problem? there is a small chance that all of your normal projects have the same setting that causes this problem to show up. |
zen is the art of being at one with the two'ness |
|
|
jpizzi
Tomato Guru
USA
642 Posts |
Posted - May 29 2006 : 7:39:12 PM
|
What about giving us the "standard debug" information?
Isn't is possible that this is related to stable includes or some other environment-wide setting? |
Joe Pizzi |
|
|
xMRi
Tomato Guru
Germany
315 Posts |
Posted - May 30 2006 : 04:49:49 AM
|
quote: Originally posted by jpizzi
What about giving us the "standard debug" information?
What is this? How can I create it? |
Martin Richter [rMVP] WWJD http://blog.m-ri.de "A well-written program is its own heaven; a poorly written program is its own hell!" The Tao of Programming |
|
|
jpizzi
Tomato Guru
USA
642 Posts |
Posted - May 30 2006 : 10:04:44 PM
|
That would be the information from the Visual Assist Options About Window. Select Copy Info and paste into a new message here. |
Joe Pizzi |
|
|
xMRi
Tomato Guru
Germany
315 Posts |
Posted - May 31 2006 : 02:43:10 AM
|
Sorry, here they are: VA_X.dll file version 10.2.1445.0 built 2006.04.12 Licensed to: VA X: [email protected] (4-user license) Support ends 2007.03.27 VA.NET 7.1: [email protected] (1-user license) VA 4.1: [email protected] (1-user license) VAOpsWin.dll version 1.3.2.4 VATE.dll version 1.0.4.15 DevEnv.exe version 7.10.3077.0 msenv.dll version 7.10.3077.0 Font: Courier New 13(Pixels) Comctl32.dll version 5.82.2900.2180 WindowsNT 5.1 Build 2600 Service Pack 2 2 processors
Platform: Win32 Stable Includes: Y:\\Projekt\\Common\\Include; C:\\Programme\\Microsoft Visual Studio .NET 2003\\Vc7\\include; C:\\Programme\\Microsoft Visual Studio .NET 2003\\Vc7\\atlmfc\\include; C:\\Programme\\Microsoft Visual Studio .NET 2003\\Vc7\\PlatformSDK\\include\\prerelease; C:\\Programme\\Microsoft Visual Studio .NET 2003\\Vc7\\PlatformSDK\\include; C:\\Programme\\Microsoft Visual Studio .NET 2003\\SDK\\v1.1\\include;
Library Includes: D:\\Proj32\\AGSQL\\Common\\Libraries\\BCGControlBar; C:\\Programme\\Microsoft Visual Studio .NET 2003\\Vc7\\atlmfc\\src\\mfc; C:\\Programme\\Microsoft Visual Studio .NET 2003\\Vc7\\atlmfc\\src\\atl; C:\\Programme\\Microsoft Visual Studio .NET 2003\\Vc7\\crt\\src;
Other Includes:
|
Martin Richter [rMVP] WWJD http://blog.m-ri.de "A well-written program is its own heaven; a poorly written program is its own hell!" The Tao of Programming |
|
|
feline
Whole Tomato Software
United Kingdom
19020 Posts |
Posted - May 31 2006 : 3:49:28 PM
|
the only thing here that looks odd is the stable include:
Y:\\Projekt\\Common\\Include;
if you do ALT-G on CString where goes VA take you? when i do this i get two options, "atlstr.h" and "visual assist x\\misc\\stdafx.h"
do you see the same problem in a new, default application? |
zen is the art of being at one with the two'ness |
|
|
xMRi
Tomato Guru
Germany
315 Posts |
Posted - Jun 01 2006 : 02:01:14 AM
|
The link to the Y directory is our public libary and include path. It also contains stable includes but no standard classes from the MFC/ATL/CRT...
I get only one option the atlstr.h! I looked into the stdafx.h in the mic directory and I see that the CString stuff is commented out.
The behaviour is the same in every project I have. |
Martin Richter [rMVP] WWJD http://blog.m-ri.de "A well-written program is its own heaven; a poorly written program is its own hell!" The Tao of Programming |
|
|
jpizzi
Tomato Guru
USA
642 Posts |
Posted - Jun 01 2006 : 03:17:07 AM
|
Hmmm. If you put the code back in stdafx.h and rebuild the database, does it then start working again? |
Joe Pizzi |
|
|
feline
Whole Tomato Software
United Kingdom
19020 Posts |
Posted - Jun 01 2006 : 5:56:32 PM
|
VA 1446 has just been posted, which contains some fixes for listing CString members. upgrading to this version may also help. |
zen is the art of being at one with the two'ness |
|
|
straightwaytek
Ketchup Master
Canada
66 Posts |
Posted - Jun 02 2006 : 10:04:14 PM
|
Hello, I can verify that the CString bug appears in Visual Studio 2005 on a MFC project. When referencing a CString variable most of the member functions appear except for a notable few (in this case GetLength and ReleaseBuffer come to mind) I am still noticing this bug running the latest build of Visual Assist X (VAX Version 1446). Does anyone know why such members do not appears when using Visual Assist X on Visual Studio 2005?
Sincerely,
James Simpson |
|
|
feline
Whole Tomato Software
United Kingdom
19020 Posts |
Posted - Jun 06 2006 : 3:35:30 PM
|
strange. using VS2005, VA 1446 and a C++ MFC project i am seeing both GetLength() and ReleaseBuffer() suggested for a CString instance.
are you looking at completion or suggestion listboxes? what do you have: VA Options -> Text Editor -> listboxes -> get content from default intellisense
set to? are you in a position to try a new default project, to see if this is somehow project specific? |
zen is the art of being at one with the two'ness |
|
|
xMRi
Tomato Guru
Germany
315 Posts |
Posted - Jun 07 2006 : 04:30:45 AM
|
Now with 1446 I see no memebr at all of the CString class! |
Martin Richter [rMVP] WWJD http://blog.m-ri.de "A well-written program is its own heaven; a poorly written program is its own hell!" The Tao of Programming |
|
|
xMRi
Tomato Guru
Germany
315 Posts |
Posted - Jun 07 2006 : 04:36:57 AM
|
Sorry! I just forced a rebuild of my database and it works now. |
Martin Richter [rMVP] WWJD http://blog.m-ri.de "A well-written program is its own heaven; a poorly written program is its own hell!" The Tao of Programming |
|
|
feline
Whole Tomato Software
United Kingdom
19020 Posts |
Posted - Jun 07 2006 : 3:32:33 PM
|
normally installing a new version of VA would trigger a rebuild, so you should not have needed another rebuild. still i am glad this is now fixed |
zen is the art of being at one with the two'ness |
|
|
|
Topic |
|