Visual Basic Development Bookmark and Share   
 Home > Visual Basic Interop and Upgrade > Can't get Support.LoadResString to work in the Microsoft.VisualBasic.Compatibility.VB6 namespace
 

Can't get Support.LoadResString to work in the Microsoft.VisualBasic.Compatibility.VB6 namespace

I've been looking for a method to read legacy .res files and came across the Support.LoadString method but have no idea how to get it to work. The only other method that seems to link to it is the SetResourceBaseName method but that doesn't seem to do anything.

Anyone have any idea on how to get this to work?
apostleMSDN  Sunday, November 29, 2009 11:02 AM
Functions and objects in the Microsoft.VisualBasic.Compatibility.VB6 namespace are provided for use by the tools for upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation.

In this situation please use the Win32 resource functions via PInvoke to read the values from resource file:
http://msdn.microsoft.com/en-us/library/aa302340.aspx#win32map_resourcefunctions


Best regards,
Riquel
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
Riquel_Dong  Tuesday, December 01, 2009 6:06 AM
Functions and objects in the Microsoft.VisualBasic.Compatibility.VB6 namespace are provided for use by the tools for upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation.

In this situation please use the Win32 resource functions via PInvoke to read the values from resource file:
http://msdn.microsoft.com/en-us/library/aa302340.aspx#win32map_resourcefunctions


Best regards,
Riquel
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
Riquel_Dong  Tuesday, December 01, 2009 6:06 AM

You can use google to search for other answers

Custom Search

More Threads

• Problem converting VB6 DLL to .Net 2.0
• Exception running a macro
• shell32.dll - PickIconDlg
• Error list needs to be increased from default 100 errors -Visual studio 2005
• "System Cannot Find Specified File."
• Adding a Library and accessing its functions in Visual Studios 2005???
• VB6 Code To VB.NET
• ShiftConstants and smartmenuxp control
• Question regarding interfaces and stuff in GRAPH OBJECT LIBRARY particularly those in OFFICE 11 or OFFICE 12.
• Interop Forms Toolkit 1.0 - Speed issue?