By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,990 Members | 2,279 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,990 IT Pros & Developers. It's quick & easy.

Mixing VB6 and VB.Net resource files

P: n/a
I've an application (VB6) which uses resource dll's (only strings) with a
LoadResString function.
Now I added some new programs using VB.NET.
I want to avoid duplicating the resource-files, but I cannot find a way to
re-use those dll's from .NET.
Is there a way how I can read the stringtable from that dll? Or how I can
share the rc- or res-file with both the VB6 and the .Net project?

Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Jan,
The easiest way may be to create a VB6 DLL that has an object that your
VB.NET code can call that does the LoadResString for it.

As I don't believe the Visual Basic Compatibility Library's
VB6.LoadResString within VB.NET can be used to load VB6 style res files.

http://msdn.microsoft.com/library/de...l/vbup1062.asp

http://msdn.microsoft.com/library/de...eReference.asp

Hope this helps
Jay

"Jan van Veldhuizen" <ja*@van-veldhuizen.nl> wrote in message
news:eQ*************@tk2msftngp13.phx.gbl...
I've an application (VB6) which uses resource dll's (only strings) with a
LoadResString function.
Now I added some new programs using VB.NET.
I want to avoid duplicating the resource-files, but I cannot find a way to
re-use those dll's from .NET.
Is there a way how I can read the stringtable from that dll? Or how I can
share the rc- or res-file with both the VB6 and the .Net project?

Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.