Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

IOleComandTarget::exec for commands with parameters.

$
0
0

Hi everybody,

I have a VS extensibility project that implements several commands. These commands are described in a .VSCT file and processed in the appropriate implementation of IOeleCommandTarget::exec method. So far so good. I can get command notifications call appropriate methods to process them. Now, to simplify scripting, I want to add parameters to one of those commands. So far I added

CommandFlag>AllowParams</CommandFlag>

to the appropriate Button element. After this modification I am getting multiple exec() calls in response to this command. Obviously VS is trying to get some information about the parameters from me. I assume there is certain protocol involved where the VS Shell invokes the exec() method and expects me to store something in the VariantIn and VariantOut arguments. But what? I was desperately trying to find a documentation or a sample, but alas...

Can somebody point me in the right direction?

Thank you.

Victor.


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>