T O P I C R E V I E W |
ajtruckle |
Posted - Dec 19 2005 : 03:21:28 AM I have a smart pointer to a _ContactItem. Yesterday morning VisualAssist X decided it would not show me all the dropdown methods. All it showed was two - AddRef/Release. It refused to work.
I am now trying it at work , same place in the code, and all the methods are showing, which is what it was doing at home.
What caused this behavior and how do I fix it? This is Visual C++ 6.
Thanks.
Andrew |
10 L A T E S T R E P L I E S (Newest First) |
ajtruckle |
Posted - Jan 21 2006 : 5:26:38 PM Thank you. I have downloaded and tested. Appears to function correctly now.
Much appreciated.
Andrew |
support |
Posted - Jan 19 2006 : 12:47:08 AM Fixed in 1440. |
feline |
Posted - Dec 21 2005 : 3:33:51 PM i have put this in the list of things to fix, and ask the developers to look at this fairly soon. this thread should be updated with the version number when a fix is produced.
the work around for now is to stick with 1418 if you are finding this to be a significant problem, since this version does not have this bug. |
ajtruckle |
Posted - Dec 21 2005 : 02:47:49 AM OK, so this will be looked into for me then?
Will I be emailed when there is a fix to try?
Thank you.
Andrew |
feline |
Posted - Dec 20 2005 : 4:52:42 PM my first guess is that the changes between VA 1418 and the new version you have installed caused this. the C++ parser was recently re-written in order to make it easier to bug fix, and to improve various things. however the occasional bug is showing up as a result, and this is likely to be one of them.
since i have never had a lot of luck with the MSOffice API i have added the code:
CComQIPtr <std::string> spConItem; spConItem->|
to a C++ project, using both VA 1418 and VA 1438 in VS2003. VA 1438 gives me just the 4 items you list, while VA 1418 gives me the member list for the std::string class.
case=940 |
ajtruckle |
Posted - Dec 20 2005 : 02:56:43 AM I just checked at work and I am using 1418 here. I get a huge selection of methods on this computer.... Did I give you enough information in my previous post?
Andrew |
ajtruckle |
Posted - Dec 19 2005 : 4:54:47 PM Now you ask! I don't remember what version I had, but it would have been this year as I bought it in June.
The smart pointer is _ContactItem. My stdafx.h has this in it:
#import "C:\\program files\\microsoft office\\office10\\msoutl.olb" \ rename_namespace("Outlook"), raw_interfaces_only, named_guids using namespace Outlook;
And my code has this in it:
// Create a new contact item hr = m_spApp->CreateItem(Outlook::olContactItem, &conItem ); if (SUCCEEDED(hr)) { // Cast it into an appointment object CComQIPtr <Outlook::_ContactItem> spConItem( conItem );
I am not sure what I did to change it. I can find out at work what version I am using there tomorrow if it helps.
I just checked my USB key drive and it has on it:
VA_X_Setup1418.exe
so I guess that was the version installed on my PC at home previously.
Andrew |
feline |
Posted - Dec 19 2005 : 4:32:46 PM do you know which version of VA you were using before? would it be possible to get hold of a copy of the smart pointer class you are using so i can test it here? ideally i would like to try it with both your previous version of VA and 1438, the current version.
depending on how old the previous version of VA was something significant may have changed in the way it parses code.
the more interesting question is what happened on your home machine to stop this working. any clues? |
ajtruckle |
Posted - Dec 19 2005 : 3:29:10 PM Well, I just tried the rebuild. Just the same. I then just downloaded and installed the new version from the internet. It now shows as methods:
AddRef lpVtbl QueryInterface Release
It is missing loads of methods, like all the put_XXXXXX methods. A pity :(
Whay can I do?
Andrew |
support |
Posted - Dec 19 2005 : 3:13:47 PM Make sure you have the same (the latest??) build of VA X on your two PCs.
At home, try "Rebuild" on the Performance tab of our options dialog. |