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
 Intellisense problem
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

ajtruckle
Ketchup Master

81 Posts

Posted - Dec 19 2005 :  03:21:28 AM  Show Profile  Reply with Quote
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

support
Whole Tomato Software

5566 Posts

Posted - Dec 19 2005 :  3:13:47 PM  Show Profile  Reply with Quote
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.
Go to Top of Page

ajtruckle
Ketchup Master

81 Posts

Posted - Dec 19 2005 :  3:29:10 PM  Show Profile  Reply with Quote
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
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19015 Posts

Posted - Dec 19 2005 :  4:32:46 PM  Show Profile  Reply with Quote
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?

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

ajtruckle
Ketchup Master

81 Posts

Posted - Dec 19 2005 :  4:54:47 PM  Show Profile  Reply with Quote
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

Edited by - ajtruckle on Dec 19 2005 4:59:59 PM
Go to Top of Page

ajtruckle
Ketchup Master

81 Posts

Posted - Dec 20 2005 :  02:56:43 AM  Show Profile  Reply with Quote
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
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19015 Posts

Posted - Dec 20 2005 :  4:52:42 PM  Show Profile  Reply with Quote
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

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

ajtruckle
Ketchup Master

81 Posts

Posted - Dec 21 2005 :  02:47:49 AM  Show Profile  Reply with Quote
OK, so this will be looked into for me then?

Will I be emailed when there is a fix to try?

Thank you.

Andrew
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19015 Posts

Posted - Dec 21 2005 :  3:33:51 PM  Show Profile  Reply with Quote
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.

zen is the art of being at one with the two'ness

Edited by - feline on Dec 21 2005 4:31:15 PM
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Jan 19 2006 :  12:47:08 AM  Show Profile  Reply with Quote
Fixed in 1440.
Go to Top of Page

ajtruckle
Ketchup Master

81 Posts

Posted - Jan 21 2006 :  5:26:38 PM  Show Profile  Reply with Quote
Thank you. I have downloaded and tested. Appears to function correctly now.

Much appreciated.

Andrew
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