Creating an Add-in

Posted on 2001-08-15
Medium Priority
Last Modified: 2013-12-23
I would like to create an Add-in for Visual Interdev that manipulates code.  I can not seem to find any help for this.  It sems like it can be done in VB but i can't see anything for Interdev.

Any help would be appreciated.
Question by:svfafel
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +3
LVL 20

Expert Comment

ID: 6390565
You use the exact same procedures to create an add-in for VI as for VB and C++. There are no differences. See the following links for a few example of how to create one for VB.

Once you have created your add-in it takes a little jury-riging to get VI to recognise it. Use the following to get into the VIIDE

In Regedit do the following (yes you know editing the registry can be ...)

Invoke Regedit and find the following key:

Add a key called:
Let it default to the default value not set.

After that is done and saved also close VI. Then Register your new add-in
just like you would for VB (regsvr32)
Restart VI and look in the Add-In-Manager and you should see it.......
If not Do the following:

Invoke Regedit and find the following key: HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\6.0\Addins.

Create a new subkey (select the Addins node and then New and Key from the Edit menu) using the propID
as its name.
Note   If you've registered add-ins in Visual Basic before, this name is the same as the one you've
entered in the vbaddin.ini file.

Select the new key, right-click the right pane of Regedit, and select New on the context menu. Select
String, enter Friendlyname and press RETURN. The new named value is selected; press RETURN again and
enter the name of the add-in as you want it displayed in the Add-In Manager. Select New and String again,
but this time enter Description. Use the same procedure for the name to enter a description of the add-in.
Select String, New, and enter LoadBehavior. Use 0 for this value. Finally, select New and Integer, and
enter LoadBehavior.

Exit Regedit and open the Add-In Manager to see the name and description of your new add-in. (If the
Add-In Manager is already open, close it and open it again.)


Author Comment

ID: 6392554
I have installed/configured as you mention...i get the selection in my list of add-ins but when i go to run it, i get an Access Violation error when attempting to execute the line:
    Set m_oButtonClear = m_oVBIDE.Events.CommandBarEvents(cmdClear)

any ideas?  It has done this on two different addins i have tried...

LVL 20

Expert Comment

ID: 6393376
Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

LVL 20

Expert Comment

ID: 6393390

Accepted Solution

DaveFenton earned 400 total points
ID: 6544361
I've also tried similar things but no luck. The Interdev ide returns a DTE object type to the add-in not a VBIDE type.
The code that is given as examples on all these sites with add-in examples doesn't work(unless someone can point out otherwise)
The furthest I've managed to get is actually adding a menu item to the interdev menu. The place I get stuck is in actually accessing the code itself. the DTE has a different object model to VBIDE and I've found very little information of any use either on the web or in MSDN.
I have found one piece of code that is an example InterDev add-in. Unfortunatly it doesn't manipulate code just opens and closes windows but it is a starting point.


Expert Comment

ID: 6688304
I'm with Dave.  Anybody have anything that works for accessing VI code?

Expert Comment

ID: 6689268
I've now got code that works BUT only on certain machines. In the office only about half the machines will work. Obviously there's some version incompatability but I'm blown if I can work out what it is. In theory all of our office machines are set up exactly the same with the same versions of dll's etc. The only things that vary are browser versions since we like to have a full range for testing. I can't believe that it's down to browser versions (then again it is Microsoft!)

Expert Comment

ID: 6689497
I'd love to see some of that working code.  If you don't mind: craig_j_dawson@hotmail.com.  Thanks.

Expert Comment

ID: 6783404

You have many open questions:


To assist you in your cleanup, I'm providing the following guidelines:

1.  Stay active in your questions and provide feedback whenever possible. Likewise, when feedback has not been provided by the experts, commenting again makes them receive an email notification, and they may provide you with further information. Experts have no other method of searching for questions in which they have commented, except manually.

2.  Award points by hitting the Accept Comment As Answer button located above and to the left of that expert's comment.

3.  When grading, be sure to read:
to ensure that you understand the grading system here at EE. If you grade less than an A, you must explain why.

4.  Questions that were not helpful to you should be PAQ'd (stored in the database for their valuable content?even if not valuable to you) or deleted. To PAQ or delete a question, you must first post your intent in that question to make the experts aware. Then, if no experts object after three full days, you can post a zero-point question at community support to request deletion or PAQ. Please include the link(s) to the question(s).
CS:  http://www.experts-exchange.com/jsp/qList.jsp?ta=commspt
At that point, a moderator can refund your points and PAQ or delete the question for you. The delete button does not work.

5.  If you fail to respond to this cleanup request, I must report you to the Community Support Administrator for further action.

Our intent is to get the questions cleaned up, and not to embarrass or shame anyone. If you have any questions or need further assistance at all, feel free to ask me in this question or post a zero-point question at CS. We are very happy to help you in this task!

community support moderator

LVL 19

Expert Comment

ID: 6856447
This question appears to have been abandoned. A question regarding will be left in the Community Support area regarding its disposition; if you have any comment about the question, please leave it there.

A moderator will be asked to resolve the question. Unless there is any objection or futher activity, the recommendation will be to accept the answer of hes.

The link to the Community Support area is:




Author Comment

ID: 6871009
Dave, you are right....there is no great way to extend the functions of VI 6.  VS .net will have much more functionality....


Featured Post

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Turn A Profile Picture Into A Cartoon Using Photoshop And Illustrator This tutorial will teach you how to make a cartoon style image out of a regular picture. I have tried to keep the tutorial as simple as possible. I used Adobe CS4 for this tuto…
Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
The purpose of this video is to demonstrate how to prevent comment spam on a WordPress Website. This will be demonstrated using a Windows 8 PC. Plugin Akismet will be used. Go to your WordPress login page. This will look like the following: myw…
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…
Suggested Courses
Course of the Month12 days, 11 hours left to enroll

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question