Jul 02, 2009 by BillL
For chapter three, I will be introducing a framework from Microsoft called the Managed Extensibility Framework, or MEF ( http://mef.codeplex.com , http://msdn.microsoft.com/en-us/library/dd460648(VS.100).aspx ). If you are not familiar with MEF, you will...
Jun 29, 2009 by BillL
Here is the second chapter in my integration journey. If you have not looked at the first blog post ( http://www.summsoft.com/blogs/vstanewbie/archive/2009/06/18/chapter-one-a-sample-program-and-inversion-of-control.aspx ), it would be a good idea to...
Jun 22, 2009 by BillL
Here is Microsoft’s workaround for the problem hang-ups during in-process debugging: “The idea is that we want to wait for the type –registering threads to finish before we call addin.FinishInitialization. What I did is to record the...
Jun 22, 2009 by BillL
Q : My program uses about a dozen PIAs with built with tlbimp and needs about half of them installed with gacutil. Is the following usage scenario correct? 1. My colleagues who build my product would only need to do the tlbimp steps in order to generate...
Jun 22, 2009 by BillL
Q : When working with a COM host, such as the ShapeAppMFC sample included in the SDK, ProxyGen creates descriptor and proxy files which do not expose events due to the inheritance structure. Three types are generated for a class: the classType, IClassType...
Jun 19, 2009 by BillL
Q : Would it be possible for me to create a Custom Editor using VSPackage and then use it with VSTA? A : >> Would it be possible for me to create a Custom Editor using VSPackage Yes. >>and then use it with VSTA? No. However, you should be...
Jun 19, 2009 by BillL
Q : After I installed VSTA and some language packs I changed the language by modifying “HKEY_CURRENT_USER\SOFTWARE\Microsoft\VSTAHost\<hostid>\8.0\General\UILanguage.” However, when I ran VSTA and it configured the environment for first...
Jun 19, 2009 by BillL
Q : Is it possible to show users a VSTA IDE window but prevent them from editing the code? A : It may be possible to do this by calling IVsTextBuffer.SetStateFlags() with BUFFERSTATEFLAGS.BSF_USER_READONLY. If that doesn’t work, you could try creating...
Jun 19, 2009 by BillL
Q : I was wondering how to integrate custom help files into VSTA. So far, pressing F1 shows some general help about VSTA, but nothing that will help my customers to write macros. A : VSTA and Visual Studio use Microsoft Help 2. HelpStudio Lite is the...
Jun 19, 2009 by Melody
A useful function the DTE has a built in is to prompt the user to save any unsaved files. It is a good idea to make this call in when shutting down the DTE, for example in the disconnect method of the VstaDesignTimeIntegration class. EnvDTE. vsPromptResult...