473,395 Members | 1,571 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,395 software developers and data experts.

Porting issue from VC++.6 to VC++.NET

Hi,

I am doing migration of MFC code from CV++.6 to
VC++.NET . I found a difference between handing
MFC "ON_COMMAND" message function prototype.

In VC++ .6 the function prototype is BOOL FUN(WPARAM,
LPARAM).But in VC++.NET the function prototype is void FUN
( ).

My Question - How will I get wparam inside VC++.NET ??

I am giving the function which is compiled in VC++.6
BEGIN_MESSAGE_MAP(
ON_COMMAND(IDC_COMBO, OnCommand)

BOOL EditorCombo: OnCommand(WPARAM wParma, LPARAM lParma)
{
if(LOWORD(wParma == IDC_COMBO )
{
switch(HIWORD(wParma))
{
case CBN_SELENDCANCEL:
--- do something ...
case CBN_SELENDOK:
... do something ...
case CBN_KILLFOCUS:
break;
}
return true;
}

How will I implement the same function in VC++.NET ?

Regards,
Sanjeev Parichha.

Nov 22 '05 #1
0 1328

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Murali | last post by:
I have a project in Unix which uses the make utility. I want to change the environment to VC++. Are there any tools which would help me in creating VC++ workspaces from my make files and the source...
0
by: sanjeevp | last post by:
Hi, I am doing migration of MFC code from CV++.6 to VC++.NET . I found a difference between handing MFC "ON_COMMAND" message function prototype. In VC++ .6 the function prototype is BOOL...
1
by: Robin Charisse | last post by:
Hi, I have a VC++6 project that uses msxml to parse XML documents. I have been asked to port this to a .NET project but from the research I've done so far it looks as though the only way to do...
1
by: Sunanda | last post by:
Hi, I am a newbie to .Net. I have an application in running in linux, a set of .c and .h files. I also have a makefile in linux to create the executable. I want to port this to windows...
2
by: rawCoder | last post by:
Hi all, I have an application in visual basic 6 which communicates with servers written in ANSI C++ using a C++ ( non COM ) dll by passig data through functions in UDT and receiving data back...
5
by: Pardeep Singh | last post by:
Hi all, I am migrating modules from VC++6 to VC++7. All the dll and exe modules are compiled successfully, but the applications crashes at startup. Please guide me what are the proper steps to...
1
by: siva.isukapalli | last post by:
Hi, We are involved in a porting project (from VC++ 6.0 to .Net VC++ 7.1). ** NOT C# or VB..NET. We have a custom app wizard written in 6.0. This basically creates a project with a set of...
5
by: BK-Chicago | last post by:
I am in the midst of porting a massive MFC application from VS6.0 to VS8.0. While i have fixed most of the compile time errors, i do have quite a linker error that i have not been able to resolve....
34
by: subramanian100in | last post by:
Is there any difference between porting and migrating. Kindly explain
6
by: =?Utf-8?B?RGlwZXNoX1NoYXJtYQ==?= | last post by:
Hi all, I am porting an code written in VC++ to VC.Net to make it manage. But in Managed VC we dont use "const" keyboard at all. but my code is using it very frequently, so is their any...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
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...
0
agi2029
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,...

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.