Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version
Go to top

Customized Visual Studio .NET package: your fully integrated document window inside the IDE

, 20 Dec 2003
Create a fully integrated document window inside the Visual Studio IDE.
Installation:

I do not supply a binary file (bined.dll) to force you to rebuild the whole solution on your computer.


1. Find original bined.dll (it is usually found in Visual Studio root directory under "\Vc7\vcpackages")
 and rename it "orig-bined.dll". Also, it is a good idea to back up a copy of original "bined.dll"
 in some other safe place before you start doing anything.
2. Copy a custom package DLL into the aforementioned directory and name it "bined.dll".
 According to the settings in my workspace, the resultant file will be copied into
 "C:\Program Files\Microsoft VisualStudio .Net\Vc7\Vcpackages" on the "post build event",
 so probably you will need to change it to reflect your machine's settings.
3. To associate a file extension with bined.dll you will need to change the system registry.
 Under the following key: 
 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\7.0\Editors\{25834150-CD7E-11D0-92DF-00A0C9138C45}\Extensions]
 (for Visual 2002)
 and/or
 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\7.1\Editors\{25834150-CD7E-11D0-92DF-00A0C9138C45}\Extensions]
 (for Visual 2003)
 add a DWORD value set to 0x32. The name of the value is the same as a file extension that you are going to use.
 For example: value name = xyz, type = DWORD, Data = 0x32. Now the custom package will be loaded into the IDE
 if a file having extension "xyz" is dragged into the Visual Studio IDE or opened through the standard "Open file" dialog.
  
Note 1: this does not associate your files with Visual Studio when using Windows Explorer! 
Note 2: my custom package is using only a ".bine" extension and the use is hard-coded.
 To change this you will need to modify a little the implementation of
 CVsEditorFactory::CreateEditorInstance method.

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

Michael Sheinin
Web Developer
United States United States
For the last 7 years I have developed software in real-time/embedded and MS-Windows environments for military and civil markets. I hold B.Sc. degree in computer engineering. Living in Ontario, Canada, I like hiking and traveling in general. Currently, I'm looking for employment opportunity inside the GTA.

| Advertise | Privacy | Mobile
Web03 | 2.8.140916.1 | Last Updated 21 Dec 2003
Article Copyright 2003 by Michael Sheinin
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid