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

Signature
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>
[quoted text clipped - 8 lines]
> 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
>
[quoted text clipped - 4 lines]
> 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
[quoted text clipped - 6 lines]
> > 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?
Jay B. Harlow [MVP - Outlook] - 06 Aug 2004 14:00 GMT
John,
I like that better then my VB6 DLL!
Although he already has VB6 DLLs, so it may not be such a big difference...
Thanks for the link, I'll need to save that one.
Jay
> Hi Jan,
>
[quoted text clipped - 5 lines]
> 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
[quoted text clipped - 11 lines]
> > 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
[quoted text clipped - 8 lines]
> > 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
> >
[quoted text clipped - 11 lines]
> can
> > > share the rc- or res-file with both the VB6 and the .Net project?