473,385 Members | 1,872 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Migrating from VS 6.0 to VS 2008 gives error

Hi,
I am migrating code from VS 6.0 to VS2008. The Code compiles in VS 6.0 but gives the following errors when compiled in VS 2008,
---
\Program Files\VC\atlmfc\include\afxcmn.inl(376) : error C2065: 'TVM_GETLINECOLOR' : undeclared identifier
E:\Program Files\VC\atlmfc\include\afxcmn.inl(378) : error C2065: 'TVM_SETLINECOLOR' : undeclared identifier
E:\Program Files\VC\atlmfc\include\afxcmn.inl(394) : error C2065: 'TVIF_STATEEX' : undeclared identifier
E:\Program Files\VC\atlmfc\include\afxcmn.inl(396) : error C2065: 'TVIF_EXPANDEDIMAGE' : undeclared identifier
E:\Program Files\VC\atlmfc\include\afxcmn.inl(396) : error C2065: 'TVIF_EXPANDEDIMAGE' : undeclared identifier
E:\Program Files\VC\atlmfc\include\afxcmn2.inl(39) : error C2065: 'UDM_GETPOS32' : undeclared identifier

---

How can i resolve these errors , please suggest.
Thanks in advance.

Vikrant
Nov 18 '09 #1
4 5976
Frinavale
9,735 Expert Mod 8TB
I looked up "TVM_GETLINECOLOR" and apparently it is a message that gets the current line color of an unmanaged TreeView...the version of TreeView control that VB6 uses. The unmanaged version of the TreeView control is completely different from the .NET managed version of the TreeView control.

Not everything is going to be correctly converted to VB.NET when migrating from VB6. You are going to have to make make modifications to the code produced by the migration to make sure that that the things that couldn't be migrated are fixed.

In this case I'd say that you're probably going to have to take a look at the code that was managing the TreeView and modify it so that the properties of the .NET TreeView Control... for example in this case you would have to change the TVM_GETLINECOLOR to the TreeView.LineColor Property.

-Frinny
Nov 18 '09 #2
Plater
7,872 Expert 4TB
I am curious why the new visual studio is even looking at a .ini file for code?
Nov 18 '09 #3
Frinavale
9,735 Expert Mod 8TB
Hmm I didn't notice the extension earlier...
It's actually not an .ini file...it's a .inl extension (what is that??)

-Frinny
Nov 18 '09 #4
The errors mentioned above are not from the MFC code of the project,instead they are generated from some files i.e.afxcmn.inl, afxcmn1.inl, afxcmn2.inl . Maybe these files contain inline functions for common controls .
Since the error shows Undeclared identifier, the project maybe missing some header files to be included, in which these constants are declared.

??

VikrantS
Nov 19 '09 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Luis Esteban Valencia | last post by:
I have an application on my intranet It works fine there when I copied the proyect to the server of the Internet it gives me this error. The arquitecture of my servers are. There is one Server...
13
by: Matt Fielder | last post by:
First off, if this is better posted in another group that qualifies as a manged group, please let me know. I currently have an application written in VB.Net using MSDE as the database. Current...
34
by: subramanian100in | last post by:
Is there any difference between porting and migrating. Kindly explain
4
by: =?Utf-8?B?QXJqdW4=?= | last post by:
Hi, After migrating my application from VC++ 6.0 to VC++ 2005, I receive the error C2593 'operator +=' is ambiguous. It refers to the following line: Name += pManager->GetAgentName(); ...
1
by: VictorLeo | last post by:
I have an application that this throws with VS 2008 and LINQ everything works well, the problem is when I try to create an installer for this project. Adding a project to install add the main...
9
by: WT | last post by:
Hello, I have code created with .net 1.0 and migrated to 3.5. Form 2.0 the XslTransform class is obsolete and the vs2008 compiler generates warnings that these classes are absolete suggesting to...
2
by: CKKwan | last post by:
The Web Project in VS 2003 is created in the inetpub. But in VS2005 / 2008, they store together in the project / soluction directory. Now, when I am migrating, how can I ensure that all these...
1
by: jj | last post by:
The following creates a copy of an image. It worked fine in Visual Studio 2005, but after installing Visual Studio 2008 then opening the solution as a ..net 2.0 project, I get an error on the...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.