Click here to Skip to main content
15,881,172 members
Articles / Programming Languages / C++

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

Rate me:
Please Sign up or sign in to vote.
4.72/5 (20 votes)
20 Dec 200313 min read 63.6K   1.1K   39  
Create a fully integrated document window inside the Visual Studio IDE.
General:
1. Solution files are provided for VS .NET & .NET 2003. 
	Solution files for Visual studio .NET 2003 have ".2003" extensions.
2. The source code can be built with two optional preprocessor derectives:
	_BASIC_WINDOW_ - eliminates all Document/View logic and enables for simplified functionality.
	_NO_TRACE_ - eliminates all diagnostic messages.



Installation:

customized bined.dll supplied in .\debug directory


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


Written By
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.

Comments and Discussions