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

How will I get wparam inside 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



How will I implement the same function in VC++.NET
Thanks/Sreejith
Jul 21 '05 #1
0 1295

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

Similar topics

1
by: Demian | last post by:
Hi, I developed an OCX in VC++, wich takes a VARIANT as parameter and return a Long as the result of the operation. This VARIANT cames from a client VB6.0 wich send an array of Byte as a VARIANT,...
3
by: pinaki_m77 | last post by:
Hi, I am trying to debug a C++ program using Microsoft VC++ IDE. The program loads a dynamic link library (dll) and later makes calls to functions inside this dll. I want to step inside the code of...
4
by: Ronny Sigo | last post by:
Hello all, Below is a testroutine. I am trying to open and cclose iexplore programmatically (the default startpage is suffcient, no need to specify another) The opening works, but the closing does...
2
by: Bernd Krueger | last post by:
Hallo, in some of my application I developed with VC++ I used CHtmlView for formated text output based on HTML. In the current .NET application I need something similar inside C#. But I can't...
0
by: Severino | last post by:
Hi all, we have developed a .NET component for use inside Windows Forms: this component has been written using VC++.NET (2003) and is working perfectly when inserted inside VC#.NET or VB.NET...
0
by: Severino | last post by:
Hi all, we have developed a .NET component for use inside Windows Forms: this component has been written using VC++.NET (2003) and is working perfectly when inserted inside VC#.NET or VB.NET...
0
by: Severino | last post by:
Hi all, we have developed a .NET component for use inside Windows Forms: this component has been written using VC++.NET (2003) and is working perfectly when inserted inside VC#.NET or VB.NET...
0
by: Sreejith P S | 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: star111792 | last post by:
hi, i just want to ask that how can i convert WPARAM datatype into 'char' datatype? is there any built-in method or i have to do casting for it? thanks
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:
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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.