473,772 Members | 2,292 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_M AP

ON_COMMAND(IDC_ COMBO, OnCommand
BOOL EditorCombo: OnCommand(WPARA M wParma, LPARAM lParma

if(LOWORD(wParm a == IDC_COMBO

switch(HIWORD(w Parma)

case CBN_SELENDCANCE L

--- 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 1340

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

Similar topics

1
4805
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, so acomplish Autonmation std. I need to access the array inside the variant to load an user-defined struct with it. To do this I used the myvariant->parray.pvData but it didn't work. It seems that the data wasn't there... I tried with...
3
2056
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 this dll. Is that possible to do? Because currently what is happening is, even if I try to step inside the function in the dll (by F11 key), it is stepping over the whole function (like F10 does). How can I step inside the dll code? Am I doing...
4
4830
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 not ... can anybody tell me what I am doing wrong? Many thanks, Ronny Sigo Private Declare Function GetForegroundWindow Lib "user32" () As Long Private Declare Function SendMessage Lib "user32" Alias "SendMessageA"
2
2359
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 find it. Who knows the missing class? Thanks in advance Bernd
0
1119
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 projects; its generated assembly is inside MyAssembly.dll When used inside a VC++.NET project it appears correctly over forms at design time but when trying to compile the project we get the following error:
0
1456
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 projects; its generated assembly is inside MyAssembly.dll When used inside a VC++.NET project it appears correctly over forms at design time but when trying to compile the project we get the following error:
0
1329
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 projects; its generated assembly is inside MyAssembly.dll When used inside a VC++.NET project it appears correctly over forms at design time but when trying to compile the project we get the following error:
0
289
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 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
1
2424
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
9621
marktang
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...
0
9454
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,...
0
10264
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, 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...
0
10106
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 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...
0
9914
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 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...
0
8937
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, 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...
0
5484
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4009
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3610
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.