"John Hart [MSFT]" <JohnHart@Online.Microsoft.com.> wrote in message
news:Yu3nJzleEHA.752@cpmsftngxa06.phx.gbl...
> Hi Jan,
>
> Jay is correct the Visual Basic Compatibility Library's VB6.LoadResString
> will only work on VB.Net resx files. Another possible solution for you
> would be to call the native Window's APIs LoadLibrary and LoadString from
> your .Net project to load the resources from your VB6 DLL.
>
> Here's a KB article that describes how: How To Create and Call a String
> Resource in a DLL with a Specific Locale ID
>
(
http://support.microsoft.com/default.aspx?scid=kb;en-us;232625&Product=vb6)
>
> This article was written with a VB6 sample but you can easily upgrade the
> code .Net
>
>
> --
> John Hart, Microsoft VB Team
> This posting is provided "AS IS" with no warranties, and confers no
rights.
> --------------------
> > From: "Jay B. Harlow [MVP - Outlook]" <Jay_Harlow_MVP@msn.com>
> > References: <eQtpqSZeEHA.236@tk2msftngp13.phx.gbl>
> > Subject: Re: Mixing VB6 and VB.Net resource files
> > Date: Tue, 3 Aug 2004 15:32:56 -0500
> > Lines: 28
> > Organization: T.S. Bradley
> > X-Priority: 3
> > X-MSMail-Priority: Normal
> > X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
> > X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
> > Message-ID: <O$qXhkZeEHA.2908@TK2MSFTNGP10.phx.gbl>
> > Newsgroups:
>
microsoft.public.dotnet.internationalization,microsoft.public.dotnet.languag
> es.vb,microsoft.public.dotnet.languages.vb.upgrade
> > NNTP-Posting-Host: ip68-96-139-50.om.om.cox.net 68.96.139.50
> > Path:
>
cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10
> phx.gbl
> > Xref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.languages.vb:221420
> microsoft.public.dotnet.languages.vb.upgrade:6769
> microsoft.public.dotnet.internationalization:820
> > X-Tomcat-NG: microsoft.public.dotnet.languages.vb.upgrade
> >
> > 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/default.asp?url=/library/en-us/vbcon/html/
> vbup1062.asp
> >
> >
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/
> vbgrfVisualBasicCompatibilityNamespaceReference.asp
> >
> > Hope this helps
> > Jay
> >
> > "Jan van Veldhuizen" <jan@van-veldhuizen.nl> wrote in message
> > news:eQtpqSZeEHA.236@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?
> > >
> > >
> > >
> >
> >
> >
>