Solved

VB.NET debug code

Posted on 2008-10-14
2
221 Views
Last Modified: 2012-05-05
I am in the process of migrating a VB6 app to VB.NET. A problem that I am coming across is the following error: "Name 'LoadResString' is not declared"
The code this is located in:
    Sub LoadResStrings(ByVal frm As Form)
        On Error Resume Next

        Dim ctl As System.Windows.Forms.Control
        Dim obj As Object
        Dim fnt As Object
        Dim sCtlType As String
        Dim nVal As Short

        'set the form's caption
        frm.Text = LoadResString(CInt(frm.Tag))
...
...

I have searched the converted code and the original code and there is no mention of a function or routine called "LoadResString". The original VB6 code compiles and runs just fine, without errors or problems, not sure what is going here, could this be referencing some external file with the routine code?

Any ideas as to why this runs in vb6 but not here?
0
Comment
Question by:wppiexperts
2 Comments
 
LVL 13

Accepted Solution

by:
TechTiger007 earned 75 total points
ID: 22715346
"LoadResString" function is used for resource management.


This link should help you

http://msdn.microsoft.com/en-us/library/1z81by0s(VS.71).aspx
0
 

Author Closing Comment

by:wppiexperts
ID: 31506032
Excellent! Thanks!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now