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

Message handling with WndProc

Hi everyone.

I have a dialog box based application that I am developing for my
employer. We are only just getting to grips with C~ having been
developing in VC++ for ages.

I am handling a user defined message using an overloded WndProc
function. What i'd like to know is do I have to physically pop it off
the message stack or should WndProc do it for me?

I am getting loads of fires fo this message when I should only see one
at a time from the COM server i am talking to.

Any advice greatfully recieved. From what I've seen, I like I quite
like C# for what it's worth.

Cheers,

Rob (In mid wales, UK.)

ps, We are recruiting if anyone is interested; C# and C++/MFC anyone?.
Nov 16 '05 #1
2 2445
Robert,

C-tilde? That's a new one =)

You don't have to pop the message off the stack. The framework will
take care of all of that for you. If you see more, then chances are you are
causing an effect somewhere (or there is something that you are missing)
which is causing this to be processed again. If you are having difficulty,
feel free to post the code.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Robert Wilson" <ro********@remove.robstech.co.uk> wrote in message
news:41***********************@ptn-nntp-reader01.plus.net...
Hi everyone.

I have a dialog box based application that I am developing for my
employer. We are only just getting to grips with C~ having been
developing in VC++ for ages.

I am handling a user defined message using an overloded WndProc function.
What i'd like to know is do I have to physically pop it off the message
stack or should WndProc do it for me?

I am getting loads of fires fo this message when I should only see one at
a time from the COM server i am talking to.

Any advice greatfully recieved. From what I've seen, I like I quite like
C# for what it's worth.

Cheers,

Rob (In mid wales, UK.)

ps, We are recruiting if anyone is interested; C# and C++/MFC anyone?.

Nov 16 '05 #2
Yes, sorry about the tilde. I saw it after I clicked 'send to server'.

We're having fun and games with our firewall at work (where we don't
have NG access) and I normally access my Laptop at home to gain access
to the NG's. They have gone and closed the SSH port on the firewall so
I have to start calling in favours now :o(

Nicholas Paldino [.NET/C# MVP] wrote:
Robert,

C-tilde? That's a new one =)

You don't have to pop the message off the stack. The framework will
take care of all of that for you. If you see more, then chances are you are
causing an effect somewhere (or there is something that you are missing)
which is causing this to be processed again. If you are having difficulty,
feel free to post the code.

Hope this helps.

Nov 16 '05 #3

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

Similar topics

2
by: Cantankerous Old Git | last post by:
I am trying to write a program that I hope to get working as a command-line app to start with, and then eventually use a windows service wrapper to call it as a service. Its purpose is to attach...
2
by: Jacek | last post by:
Hello Could someone tell me how to handle a message in my C# application sent from other application written in MFC C++, The message is sent using: ::SendMessage( hWndCallback, nMessage,...
8
by: Brian Keating EI9FXB | last post by:
Would I be correct in saying that the only way to get a user message into a Windows form would be to use P/Invoke with Message? Of is there some part of the .NET API that I am totally un aware...
2
by: Ryan Fransen | last post by:
I have created a custom windows message and using SendNotifyMessage (user32.dll) the message is sent (broadcasted). I send the message as follows: private static extern int...
0
by: mikelostcause | last post by:
Is there anyway to hold the base.WndProc(ref m) until after the Logout() finishes loading a webpage?? I'm working on shutting down an app that runs in the system tray, I have no problems...
4
by: Lance | last post by:
I need to handle the WM_SIZING message in the Form.WndProc method in order to perform custom logic while the user is resizing a form. But, I have two questions: 1. The help for WM_SIZING states,...
3
by: Benny Raymond | last post by:
I get the following error message when trying to use the Excel Interop on my wife's machine however I don't get it on my own - we have the same version of Office installed - what could be the...
4
by: Darin | last post by:
Some of our customers get this message, occasionally and randomly. What does it mean and what can I do to trap it or (better yet) fix it so it doesn't occur? See the end of this message for...
0
by: makifsar | last post by:
I am using a comserver to communicate remote equipments. This server gives response via WndProc. First I call READ function to start communication and remote equipment gives response this via...
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:
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...
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...

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.