Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Parser failure when using #import

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
xMRi Posted - Jul 24 2014 : 04:31:58 AM
Hi!

I have a type library to import. I use it with the rename_namespace keyword.

#import "libid:{8D823185-7FB1-4263-B300-BDE8720A5988}" rename_namespace("AGComDebug"), raw_interfaces_only


But when I use the interfaces with the namespaces VAX shows red underlines on all keywords in the typelib.


CComPtr<AGComDebug::MacroDebugSession> spDebugSession;
spDebugSession->put_SessionHost(spDebugSessionHost);


put_SessionHost is unknown!

TIA
5   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Jul 29 2014 : 1:27:06 PM
At least its not just us. That does not help you much, but it is a small consolation from my point of view. Thankfully this is not a massive problem for you.

If you only need to reference a small number of functions from this namespace, have you considered creating VA Snippets for them? You would need to remember the shortcuts, but you could create them all with the same initial shortcut, and then turn On this setting:

http://docs.wholetomato.com/default.asp?W325

so that the snippets will be suggested after typing the common prefix.
xMRi Posted - Jul 29 2014 : 06:01:51 AM
I Just turned VAX off and it is correct that even VS-2010 doesn't recognize the namespace.

No this isn't an option, because of internal class names. But in fact it isn't real great problem, because there are just a few functions that I need to call. Sometimes it is possible to live without intellisense, even it is hard :)
feline Posted - Jul 28 2014 : 11:54:40 PM
Thank you for the update, this is indeed case=6261, unfortunately for now the only known solution is to remove the rename_namespace. I am a little surprised that "Get content from default Intellisense" is not helping, by the sounds of it the IDE is not handling the renamed namespace that well either.

Hopefully removing the rename_namespace is an option for you for now.
xMRi Posted - Jul 28 2014 : 06:37:26 AM
I just verified it. Using the #import statement without rename_namespace works. I can use the defined interfaces freely.
The check on "Get content from default Intellisense" is already set.
feline Posted - Jul 24 2014 : 3:05:05 PM
This sounds like:

case=6261

As a test can you please try removing the "rename_namespace("AGComDebug")" part of the #import line, and after VA has finished parsing this change, see if this makes any difference?

In case 6261 removing the rename_namespace allowed the imported symbols to be suggested correctly.

Depending on your IDE, you may find that turning On:

VA Options -> Listboxes -> Get content from default Intellisense

helps.

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