messages

Grails - getting a message value from controller

How can I get a value from message properties outside of GSPs? For instance, the equivalent of <g:message code="some.message"/> but in a controller? ...

Effective communication in a component-based system

Yes, this is another question about my game engine, which is coming along very nicely, with much thanks to you guys. So, if you watched the video (or didn't), the objects in the game are composed of various components for things like position, sprites, movement, collision, sounds, health, etc. I have several message types defined for "t...

Delphi: How to respond to WM_SettingChange/WM_WinIniChange?

i need to know when my application recieves a WM_SETTINGCHANGE message (formerly known as WM_WININICHANGE). Problem is that the message pump in TApplication sends it down a black hole (default handler) before i can get a chance to see it: procedure TApplication.WndProc(var Message: TMessage); ... begin Message.Result := 0; for I...

async_write/async_read problems while trying to implement question-answer logic

Good day. I'm trying to implement a question - answer logic using boost::asio. On the Client I have: void Send_Message() { .... boost::asio::async_write(server_socket, boost::asio::buffer(&Message, sizeof(Message)), boost::bind(&Client::Handle_Write_Message, this, boost::asio::placeholders::error)); ...

Find the base revision,message

I have a task: "Find base revision: select latest SVN revision that has message "TRANSLATION_BASE_EN_NO". If tag was found - get all the resources from that revision" How can I read messages, and search for the revision I need? I want to see a piece of code of course. In C# (vs2008) Thanks ...

How do I get meaningful error messages in IIS7?

I have moved this question to Server Fault where it is probably more appropriator. I have a classic ASP website that is crashing in IIS7. It is crashing because IIS doesn't allow file uploads greater than a certain size. I know this because files below about 200k work fine. I removed the Status Code 500 error in IIS but I still don't ge...

C# Passing WndProc Messages from a form to another form

I'm working on a C# application with two Windows forms. Both forms are full screen and one form sits on top of the other form as a transparent overlay. The bottom form contains a web browser (also full screen). I'm tracking touch input on the transparent overlay form in order to capture gestures and draw buttons and other controls on the...

Send message to all running instance of windows app

I have a windows application which is published on a website and can be installed by users using 'Click once' method. I have several users, who will be working on the app at any given point of time. I'm thinking of implementing a Messaging system, wherein system administrator can broadcast messages to all the currently running instance...

Trapping messages in .NET

How can i trap a Windows system message (like WM_SETTEXT) that was sent by some window (VLC player window in my case)? I've tried to inherit NativeWindow class and override WndProc like this: class VLCFilter : NativeWindow { System.IntPtr iHandle; const int WM_SETTEXT = 0x000C; public VLCFilter() { Process p = P...

Django message doesn't expire

My code in the view: from django.contrib import messages messages.add_message(request, messages.INFO, 'Hello world.') I don't want to show this code to the user the second time if he/she refreshes again. How do I go about doing that? Messages don't seem to have any sort of expiry setting. There is documentation here: http://doc...

.net configurable business error messages

Hi all, I need to implement some kind of solution such that in our business logic layer when certain conditions are met an error message is returned. That error message should be configurable either in a file or table that can be edited at run time if needed. I've seen it done before a few ways and it always ends up something like "Th...

Display a flash message for a specific loggedin user upon receiving request.

Dears, how can i trigger a prompt (or flash message with links) display (notifying) for one of the logged in agent (specific agent screen) on my web application when receiving a request from a client. using rails and jquery. as my application is serving a call center, and the my client request ... when a call coming to the system a pro...

Accessing and inheriting Windows Message for other Windows Message in Delphi

I am using WMSysCommand messages to modify Caption bar button ( Maximize / Minimize ) behaivor and recent update requiered to use WMNCHitTest, but I do not want to split these two related messages in multiplie procedures because of lengthy code. Can I access private declaration ( message ) from other message? And if I can - How to do it...

MFL - Message Format Language

What is MFL? Why is it used? Does it actually convert data from one encoding to another? ...

What kind of good approaches do C++ programmers use for storing error messages?

Say I have a huge amount of code and have different kinds of error messages. For these, I want to have a separate place where I store error codes and error messages. For example, for an error that occured because the program could not open a file I store: F001 "Can not open a file." "The same error message in another language" "The s...

Best way to check for users new private messages on website?

I am coding a website in PHP and Javascript which implements private messaging functionality, and i wanted to have it so when a user recieved a new message it notifies them (by a flashing 'mail' icon at the top of the screen). The question is how to implement this functionality without having to check the messages database for unread me...

Win32 doesn't send mouse events to my window, only its parent. why?

I have a window that's a CHILD window of another window. For reasons beyond me, NC_HITTEST never gets called on it, no mouse events are called for it (but rather reach its parent window). Why is that? I want that child window to process his own mouse clicks. ...

mvvm wpf messenger class, unregistering messages

Hi guys, I am using Josh Smith's MVVM Foundation project Messenger class and just had a question regarding unsubscribing messages. At the moment I have multiple ViewModels which register messages as strings for example I have - ViewModelA - registers for message "A" ViewModelB - registers for message "A" So the both registered message...

What is the difference between WM_QUIT, WM_CLOSE, and WM_DESTROY in a windows program?

I was wondering what the difference between the WM_QUIT, WM_CLOSE, and WM_DESTROY messages in a windows program, essentially: when are they sent, and do they have any automatic effects besides what's defined by the program? ...

Unit testing messages

I have a web page that shows different messages according to different conditions. I want to unit test this so I configured my project to use MVVM and I'm testing my ViewModel. My ViewModel now format different messages. How can I test this? I don't want to reproduce all strings, it seems dirty... Now I'm doing this: void test() { ...