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_GETLINECOL OR' : undeclared identifier
E:\Program Files\VC\atlmfc \include\afxcmn .inl(378) : error C2065: 'TVM_SETLINECOL OR' : 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_EXPANDEDI MAGE' : undeclared identifier
E:\Program Files\VC\atlmfc \include\afxcmn .inl(396) : error C2065: 'TVIF_EXPANDEDI MAGE' : undeclared identifier
E:\Program Files\VC\atlmfc \include\afxcmn 2.inl(39) : error C2065: 'UDM_GETPOS32' : undeclared identifier
---
How can i resolve these errors , please suggest.
Thanks in advance.
Vikrant
4 6025 Frinavale 9,735
Recognized Expert Moderator Expert
I looked up "TVM_GETLINECOL OR" 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_GETLINECOLO R to the TreeView.LineCo lor Property.
-Frinny
Plater 7,872
Recognized Expert Expert
I am curious why the new visual studio is even looking at a .ini file for code?
Frinavale 9,735
Recognized Expert Moderator Expert
Hmm I didn't notice the extension earlier...
It's actually not an .ini file...it's a .inl extension (what is that??)
-Frinny
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
Sign in to post your reply or Sign up for a free account.
Similar topics |
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 for Internet another
server for Databases and another server for Intranet. The only one that has
public IP is the Internet Server and obviously I cant give public access to
the database server.
The applicacion access data on the database server....
|
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 install is via InstallShield. As I've just found out
that MSDE is not supported under Vista, I need to migrate to SQLExpress. I
am also potentially interested in migrating to using an installer built in
Visual Studio.
I have a few questions:
|
by: subramanian100in |
last post by:
Is there any difference between porting and migrating.
Kindly explain
|
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();
where Name is a string and GetAgentName also returns a string.
|
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 results of the project as it
is commonly I generate the installer and it gives me an error in the
generation but I said that wrong or anything that file was also
concerned with adding all the results osea the source for the project
xml and nothing...
| |
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 use
XslCompiledTransform.
But all this was rendered using an Xml control and I can't find a way to
relate this control to an XslCompiledTransform ?
Any help appreciated to solve this migration pb.
|
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 files (in
the inetpub) are moved into the project directory.
More importantly is that I do not have inetpub in my vista and is not
allowed to install.
|
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 'bmpOut.Palette = imageFile.Palette'
line (see below).
Anyone come across this or suggest a reason for the error?
private static System.Drawing.Image CreateImageFile(System.Drawing.Image
imageFile, int width, int height)
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |