Solved

VB.NET debug code

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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 document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

863 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

24 Experts available now in Live!

Get 1:1 Help Now