My.ADVISOR.com Sign-In
ID
Password

Member Center / Sign-Up
   
SUBSCRIPTION STATUS
If you are a subscriber to this publication, sign-in to access locked articles. To subscribe or renew go to www.AdvisorStore.com.
Go to Article

ADVISOR ANSWERS

Using the VB Resource Editor

A reader asks how to use the Visual Basic Resource Editor under NT.

By Richard Campbell, Technical Editor


Q: I'm developing under NT 4.0 with SP4 and Visual Studio 6 (VB portion) with SP2. The problem is in the IDE. I can't load the Resource Editor to edit a resource file in my project. I've done some research, but without success. I even reinstalled VB. I have a dual-boot system, under Win95 with VB 6 I have no problem launching the editor. However, I prefer developing under NT. Is there a way to use the Resource Editor in my project under NT?
--Edith Carter, Nevada City, California

A: The Resource Editor that comes with Visual Basic 6.0 is an add-in. Visual Basic add-ins are ActiveX objects. In the case of the Resource Editor, the add-in is registered when Visual Basic is installed. These registry entries are stored in the registry under the user profile, rather than the system. This isn't an issue with Windows 95, since by default all users share the same profile. But with Windows NT, each user has a separate profile, so the add-ins only appear if you log in with the account that installed them. I suspect that you have different accounts for installing VB and actually developing in VB. There are two ways to fix this. One is to manually register the add-ins in the account you need them for. For the Resource Editor, the ActiveX file is RESEDIT.DLL. Use RegSvr32 to register it, and it'll appear in the add-in list in Visual Basic.

The other technique is to log in as the account that originally installed VB and export the registry keys for the add-ins into REG files, so that you can install them in the other accounts. The add-in keys are:
HKEY_CURRENT_USER\Software\Microsoft\Visual Basic\6.0\Addins
HKEY_CURRENT_USER\Software\Microsoft\Visual Basic\6.0\AddInToolbar


Once you've got the .REG files, log in with the other account and merge the files into the registry.


--Richard Campbell, Technical Editor


Melody Hendricks was a senior associate editor at Advisor Media from 1997 to 2004. Earlier, she contributed news stories and feature articles to print and online newspapers and magazines, including the Chicago Tribune Web site. Melody holds a bachelor's degree in English from North Park University in Chicago, Illinois, and an MBA in Entrepreneurship and Marketing from San Diego State University.

Printer-friendly
page layout

What do YOU think about this topic? Share your advice and thoughts using this form.

Your Name

REQUIRED : PUBLIC

Your E-Mail

REQUIRED : PRIVATE

Job, Company

OPTIONAL : PUBLIC

City, State, Country

OPTIONAL : PUBLIC

Your Web Site

OPTIONAL : PUBLIC

Your Comment

Please help everyone by keeping your comments on-topic, using clean language, and not defaming or making personal attacks.


Your e-mail address is required, but it will not be displayed to the public or given to anyone. See our Privacy Policy. Comments become visible after they pass our spam filter, and spammers and abusers are permanently blocked. Please report spam or abuse.

ARTICLE INFO

Web Edition: 1999.12.22, Doc #05872

FREE ACCESS FREE ACCESS

Keyword Tags: ActiveX, Application Development, Development, IDE - Integrated Development Environment, Microsoft, Microsoft Visual Basic, Microsoft Visual Studio, Microsoft Windows, Software Development

Use of this or any other site, content, product or service of Advisor Media constitutes acceptance of Terms of Use.
Portions copyright ©1983-2010 Advisor Media, LLC. All Rights Reserved.
Reuse or reproduction of any portion or quantity of Advisor Media's copyrighted content, in any form, for any purpose, requires written permission.
ADVISOR®, the ADVISOR logo, and other names and logos that incorporate ADVISOR are registered trademarks, trademarks or service marks of Advisor Media, LLC in the United States and/or other countries.
Other trademarks are used for identification, editorial or descriptive purposes and are the property of their owners.
Hosted by Prominic.NET Website powered by
LOTUS SOFTWARE
oa HENDM04 posted 1999-12-22 mod 03/10/2010 03:14:57 AM ztdbms/ztdbms
domino-144.advisor.com my.advisor.com 03/16/2010 05:26:53 AM