Solved

VB.NET debug code

Posted on 2008-10-14
2
223 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
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…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

776 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