Click here to Skip to main content
15,889,034 members
Everything / Message

Message

message

Great Reads

by cjmakwana
This article outlines the C# code implementation for the popular message broker pattern generally used in common problems which involves brokering of messages with arbitrary type.
by VIGNESH SUKUMAR
Simple Message only BizTalk Project
by Ayush Swiss
Establish the communication between WebView2 and JavaScript by which you can send and receive the message via WebView2
by axuno
Take this ready-to-use VBA module for MS-Outlook, that lets you export all mail messages selected in the current Outlook email browser to the file system.

Latest Articles

by Jason Sultana
Understanding and preventing Newline Injection
by Wessel Beulink
As someone who frequently employs Logic Apps – Azure’s fantastic low-code solution – I’ve come to appreciate its wide range of actions and connectors. One of the keys to this balance? Solid documentation!
by DotNetLead.com
How to build an OpenAI chat application using Angular, ASP.NET API, and Azure
by Ștefan-Mihai MOGA
How to save a message to an MSG Compound file.

All Articles

Sort by Score

Message 

5 Feb 2017 by cjmakwana
This article outlines the C# code implementation for the popular message broker pattern generally used in common problems which involves brokering of messages with arbitrary type.
2 Mar 2014 by VIGNESH SUKUMAR
Simple Message only BizTalk Project
1 Mar 2021 by Ayush Swiss
Establish the communication between WebView2 and JavaScript by which you can send and receive the message via WebView2
21 Mar 2013 by Espen Harlinn
Assuming you're using Visual C++, you could use COM, here is a pretty nice tutorial: A Beginner Tutorial for Writing Simple COM/ATL DLL For VS2012[^]Delphi works pretty well with COM, so accessing the COM object should be quite easy.Best regardsEspen Harlinn
16 Apr 2013 by Manfred Rudolf Bihy
There is a way of checking if the screensaver is still running. See the discussion on MSDN: Screen Saver notifications[^]. nobugz[^] answer shows how to pinvoke SystemParametersInfo to poll the current status of the screensaver.Google search: "C# screen saver running"Regards,—...
21 Mar 2013 by Matthew Faithfull
If you have the source to both parts, C++ and Delphi and you build both with C++ Builder/Rad Studio then you can call the C++ code from the Delphi and the other way around too. In that case you could do what you want with a callback. You pass the address of a Delphi function into the C++ as a...
19 Jun 2016 by User 11060979
In your first Approach you simply mixed up the keys.Primary Key:UserName VARCHAR(30) NOT NULL PRIMARY KEY,Email VARCHAR(30) NOT NULL PRIMARY KEY,vs. Foreign:UserName VARCHAR(30) FOREIGN KEY (UserName) REFERENCES Signup (UserName),password VARCHAR(50) FOREIGN KEY (password) REFERENCES...
20 Jan 2022 by Luc Pattyn
I tested this C# code snippet on Win 10: NotifyIcon ni = new NotifyIcon(); ni.Icon = SystemIcons.Exclamation; ni.Visible = true; ni.ShowBalloonTip(1000, "title", "text", ToolTipIcon.Error); It shows a permanent notifyicon in the taskbar and a...
26 Apr 2012 by JackDingler
If windows doesn't know that your window needs to be repainted, then it won't send a WM_PAINT message.This isn't a message that you should use to drive animation. You can't depend on Windows guessing when you'll need it.You have two options that you may try for this scenario.Use the...
24 Dec 2013 by CHill60
The answer to your question is no ... messages in MQ Series / Websphere are not overwritten. Your message will remain on the queue until it is explicitly removed by a read. This is usually still true even if there has been a system crash.As idle63 has implied this is quite fundamental to the...
22 Apr 2015 by Richard Deeming
For your P/Invoke declaration, the wMsg parameter should be an Integer, not a Long. The parameter is a 32-bit integer, whereas Long is a 64-bit integer.The wParam parameter and return values should be IntPtr, since their size depends on whether you're running as a 32-bit or 64-bit...
22 Apr 2015 by Sergey Alexandrovich Kryukov
Please see my comment to the question. .NET will never work with "SendMessageA" (unless you do special marshaling), because .NET works with Unicode, not ASCII. It would be better to use "SendMessageA". Unbalance stack is the sign if using wrong signature, wrong number and/or sizes of...
16 Sep 2016 by axuno
Take this ready-to-use VBA module for MS-Outlook, that lets you export all mail messages selected in the current Outlook email browser to the file system.
7 Feb 2017 by KianTing
MuleSoft provides a good structure of documents for developers to learn about its types of variable and properties, but as we all know reading and understanding the concepts is good, but you never beat the act of actually rolling up your sleeves and practicing it in a lab exercise. Learning from exp
25 Jun 2010 by GeniusMchlahla
I entered the South African Computer Olympiad for high school students. I found it relatively easy. It was not much of a challenge, with the exception of one particular question. The question proposes an alien language, which uses only one character to write with, '%'. The full problem can be...
27 Jun 2010 by Peter_in_2780
What the question is looking for can be re-expressed like this:How many different ways can we divide a pile of beans? By different, we mean that the sizes of the resulting piles are not all the same. For example,1 => 12 => 2, 1 13 => 3, 2 1, 1 1 14 => 4, 3 1, 2 2, 2 1 1, 1 1 1 15 =>...
5 Dec 2011 by #realJSOP
No, there's no such message.
16 Jan 2012 by Mohibur Rashid
problem with the line :char name[MAX_PATH] = "E:\Net-Worm\Groups\Worm\Worm.Win32.Socks.gh";//you are actually getting: "E:Net-WormGroupsWormWorm.Win32.Socks.gh"Another issue is name is a local variable, I think, but not sure, your second application is not getting proper access to...
17 Jan 2012 by JackDingler
I see something else here...The '\' character is a control character in C/C++.If you want it expressed as a string literal then use, '\\'.Try this:char name[MAX_PATH] = "E:\\Net-Worm\\Groups\\Worm\\Worm.Win32.Socks.gh";
22 Jul 2012 by woutercx
"How to get the handle of the window"http://www.cplusplus.com/forum/beginner/3811/[^]
18 Aug 2012 by stib_markc
I suggest to use PostThreadMessage instead of SendMessage, check PostThreadMessage Demystified[^] for reasons. For Documentation see http://msdn.microsoft.com/en-us/library/windows/desktop/ms644946%28v=vs.85%29.aspx[^]And by the way if you want to invoke a function of your dialog class from...
1 Apr 2013 by iDebD
C++ DLL: "MyDll.dll"/////////////////////////////////////////////////////typedef HRESULT (CALLBACK * CALLBACKPROC)(DWORD wEvent,LONG_PTR arg,PVOID pParam);/////////////////////////////////////////////////////CALLBACKPROC g_pCallback = NULL;LPVOID g_pCallbackParam =...
5 Jun 2013 by Sergey Alexandrovich Kryukov
Such property is not available, due to the multithreading nature of the class System.Messaging.MessageQueue: http://msdn.microsoft.com/en-us/library/system.messaging.messagequeue.aspx[^].You can thing of it as of some full-proof feature. Otherwise, what does it mean if you check up...
10 Sep 2013 by User 59241
What you seek to do is called inter process communication (IPC). It is more complex than communicating between threads within a process. There are many mechanisms to achieve this.An overview is given...
17 Sep 2013 by Mehdy Moini
Imagine one thread is completed and another thread is not, so thread one, after endReceive , will delete the file when second thread have a message queue with a file name which doesn't point to a file, because first thread delete that.
11 Oct 2013 by ASP.NET Community
We all may encounter a problem of validating RequiredField for FCKEditor. Here is the Solution: Your HTML Markup for
3 Nov 2013 by Sergey Alexandrovich Kryukov
The error messages are no annoying, they suggest you to find and fix your bugs. If you keep considering error messages annoying instead of fixing the bugs, you won't be able to complete your work.—SA
18 Apr 2014 by Mahmoud_Mohamed
Hi. I am a new with SignalR .. I would like to develop a solution that have two project one web and other is window. Using SignalR realtime messaging deliver. That enable chatting between the Webform and the Window form and only saving messages in windows. Any Help Smile Like references or ideas...
6 Jan 2016 by CPallini
Do you mean something like jabberd[^]?
31 Jan 2016 by Aravind Suresh Babu
Hi,I am trying to access a webservice whose WSDL is http://ec.europa.eu/taxation_customs/dds2/eos/validation/services/validation?wsdlBut on calling the method , I got the below error. Client found response content type of 'text/html', but expected 'text/xml'. The request failed...
15 Feb 2017 by Richard MacCutchan
This is the wrong place. Try Bugs and Suggestions[^].
23 Apr 2017 by CHill60
You might be better off posting this at Bugs and Suggestions[^] All "potential spam" is sent to a queue to be reviewed by certain members (I am one of those). The human check lets a lot of stuff through the filter. The general tip for Press Releases is at the top of the forum: Quote: A press...
21 Nov 2018 by Yaseer Mumtaz
Complete professional MEAN stack app development series for beginners
13 May 2023 by Richard MacCutchan
You have your parameters the wrong way round in your call to FindWindow function (winuser.h) - Win32 apps | Microsoft Learn[^]. As a result it is likely that the return value was not a Windows handle; use the debugger to check.
3 Mar 2024 by Jason Sultana
Understanding and preventing Newline Injection
25 Jun 2010 by Dalek Dave
Good Question, but I shall leave it to others to solve :)
24 Aug 2010 by Member 1914662
Hello- I'm Using a WinForms (.NET) control within an MFC 9.0 application.Problem: My WM_COMMAND message handler "OnStartTestMode()" is not getting called in my "CWinFormsControl"-derived MFC class. A "pWnd->PostMessage(WM_COMMAND, IDM_START_CMD);" is posting the WM_COMMAND message to...
27 Aug 2010 by Member 1914662
I Got it to work now -- I changed the "Postmessage()/GetNextWindow()" loop (to send msgs to all children of the View) into a single call to "pView->SendMessageToDescendents(WM_COMMAND, msg, 0, FALSE, TRUE)" and now all child windows (including the CWinFormsControl-based one) are getting their...
30 Sep 2010 by M Sheik Uduman Ali
This article explains how to generate, convey and handle warnings in SOA system.
9 Jun 2011 by TorstenH.
Do you give the JVM enough RAM?Is the garbage collector on the servers app working? Or is the RAM overflowing? Tried to log the network communication? what's happening there? Any network malfunctions possible?that's what I would check first.regardsTorsten
21 Jun 2011 by derkoni87
Hi,is there a chance to disable the messaging system for a particular window dynamically during runtime? Looking at my application, I have got a CEdit control (lets say Edit1) and a handler routine which will be called on EN_CHANGE notification.The message handler now invokes...
21 Jun 2011 by వేంకటనారాయణ(venkatmakam)
I did not completely understood your question.But upto my understanding you are doing this.ON_EN_CHANGE(IDC_EDIT1, &CTestCEdit1Dlg::OnEnChangeEdit1)ON_EN_CHANGE(IDC_EDIT2, &CTestCEdit1Dlg::OnEnChangeEdit2)in OnEnChangeEdit1 you are changing the text of EDIT2 and in OnEnChangeEdit2 you...
5 Aug 2011 by sczii
Heya guysI was wondering if anyone had any links to tutorials or source code that I could look at for creating your own version of MSN messenger ? If anyone could help me out that would be great.There has to be a tutorial on the web somewhere that someone knows about... I just cant find...
5 Aug 2011 by walterhevedeich
Try finding it here[^]. Hope this helps
23 Oct 2011 by mardul
Hello,how can i intercept WM_NCPAINT message of a popup menu window created with CreatePopupMenu and displayed with TrackPopupMenu? Is there a way to assign an application defined WindowProc to a menu having only a HMENU handle?I can get the handle to the popup window in the parent...
23 Oct 2011 by Richard MacCutchan
Take a look here[^], there may be a message that will help to capture what you want.
27 Oct 2011 by Mehdi Gholam
You can connect to a any machine with the following methods :1) Using TcpClient connections2) Using Remote Desktop Protocol3) Using WebServices4) Using WebClient and getting a html page5) Using Named Pipes6) Using WCFTake your pick.
15 Nov 2011 by Thomas Keruba
Hi,My name is Thomas (21), I am student of computer engineering. Task at my school was to make a program that changing original SIP/SDP messages when using VoIP.The task was hard, I admit to find help on the internet. I found SIP SDK that do the same. Check out if you...
15 Nov 2011 by Richard MacCutchan
My only advice would be to study the SDK carefully until you fully understand the technology. From that knowledge you should be able to write your own library which is not a complete copy of the original. Also remember to mention in your assignment where you found the knowledge, to prove that...
15 Nov 2011 by Smithers-Jones
"But somehow I has to change it a little not to look like cheating."In my opinion(and probably in that of your teacher/tutor too), that still would be cheating. So don't change it a little and tell them, it's your code, cause they will find out, either by searching for bits of your code on...
21 Nov 2011 by Zsefv2
Hi all,If you have seen my previous questions, I am developing this mfc app which will read serial comm messages from a device. The device sends many messages some @ 10hz, some at 1hz.The design of my app is simple, a thread to read the serial comm, a thread to send serial comm message...
21 Nov 2011 by Richard MacCutchan
You should put the UI code into a separate thread so the actual updating of the List View is not happening in the same thread as the data receiver.
29 Nov 2011 by Member 8435811
The issue is resolved by copying the download to the Deviare directory.
30 Nov 2011 by zzcp
want a advanced message program for two-way chatting based on src/appl/simple/client and src/appl/simple/server or other sample program of kerberos in C language.DOWNLOAD KERBEROS 1.9.2http://web.mit.edu/kerberos/dist/index.html#krb5-1.9[^]
30 Nov 2011 by Mehdi Gholam
Homework by definition is for your education.It is extremely disrespectful to expect time and effort from others when you are not willing to spend your own.People who respond to questions here are donating their time for the solving of genuine problems of other.
5 Dec 2011 by Style-7
Hi,Is message exist such as WM_DAYCHANGED for Windows?I am working now for Calendar and want to update it if day is changed.Thank you.
25 Jan 2012 by Mr. Tomay
Concerning The Ultimate Toolbox Edit Control Extensions[^], I am using the COXNumericEdit class with a leading zero flag must be displayed.When typing on that COXNumericEdit control the parent window receives 6 EN_CHANGE notification messages. But I want that the parent window to receive only...
16 Jan 2012 by lilyNaz
Hi, I need to send a message to another application and pass a string using LPARAM Sending Application:const UINT WM_GAURD_WINPROC = RegisterWindowMessage( "GAURD");char name[MAX_PATH] =...
18 Jan 2012 by jk chan
By seeing HWND_BROADCAST i guess you are sending this message to an another process.If the second application is a different process, you cannot send the address of a local variable in your function. Each process has its own memory space.Possible solutions: use inter process tools like...
29 Mar 2012 by pritam40
Simple but presentable message boxes for Silverlight developers. Designed for ease of integration with existing projects.
26 Apr 2012 by druscelli
Hello to everybody,I have an application that show video images but sometimes stop paint frames.After experienced this problem I did some debug with spy++ and found that windows messages don't come to my window therefore it doesn't repaint, unless I go with mousepointer on the window and...
26 Apr 2012 by armagedescu
I had problems with WM_TIMER messages not coming to window. Maybe it is not the same. I solved it by using PeekMessage instead of GetMessage function. If PeekMessage does not work, then it means the message is not posted in your message queue. In this case you have to do redraw on timer, or...
26 Apr 2012 by renzhewh
The lower CPU usage seems just the result, but not the reason. Could you give more details about this issue, such as what message you need to handle window update, and what happened when the program stop working.You could see more debugging technique with a book named Why Programs...
26 Apr 2012 by subrata kumar Nayak
hi,.... I have created a thread and now i want to send message(to do a particular event) from the thread to the main GUI thread, so that th GUI thread can execute my message.can any one tell me how to do this in iphone(Objective C)
28 May 2012 by CPallini
If you are using Cocoa then have a look at "Safe, threaded design and inter-thread communication"[^].
2 Jul 2017 by Balaji1982
Hi,I would like to know the best approach.I have 10 different screens accessing the same table for an unique order number. Once a screen requests a unique number the same is generated and stored in this table and this value is sent back to the screen. This becomes a problem when the...
12 Jul 2012 by a_daish
Hi All,Wondered if you could help.Putting together a Twitter desktop client together in Visual Studio 2010 using Visual Basic for a project. The Twitter client works a charm but I'm trying to figure out how to receive socket messages from third party applications. It needs to be able to...
21 Jul 2012 by Allen Qake09
What can I make to a window to NEVER receive any WM_ message ? OR atleast to not process or apply them? Or to discard them from the Message Queue ?Can those functions be helpful ? :-GetMessage function ? or-DispatchMessage function ? or-PostQuitMessage...
21 Jul 2012 by woutercx
I'll assume C#. What kind of messages do you not want to receive anymore? I assume keyboard messages?Maybe I have an idea for you:I used a certain control in my project:KRBTabControl[^] that had an override: protected override bool ProcessCmdKey(ref Message msg, Keys keyData) ...
21 Jul 2012 by woutercx
Or override WndProc in your form:protected override void WndProc(ref Message m) as they explain here: http://msdn.microsoft.com/en-us/library/system.windows.forms.message.aspx[^]
22 Jul 2012 by woutercx
What you want is a "system wide" filter on WM_ messages.This is a Codeproject that provides something like that..NET system wide hotkey component[^]Now the only thing you have to find out is to find the handle of the existing Chrome window.Maybe this will be a good...
22 Jul 2012 by woutercx
Hmm seems like this could be a solution in autoit itself!http://www.autoitscript.com/forum/topic/97867-keeping-my-gui-not-focused/[^]
22 Jul 2012 by woutercx
In C++http://stackoverflow.com/questions/9164659/code-in-petzolds-programming-windows-making-window-error[^]Closer to a solution, but still you'll have to know the proper handle of the Google Chrome window, and if you don't know what you're doing you can mess up your Window session...
6 Sep 2012 by bbirajdar
Use File.Close() or enclose the code inside the using blocks like this using(ZipInputStream stream = new ZipInputStream(File.OpenRead(@"c:\DoUnZip.zip"));){ // do your work here }
6 Sep 2012 by Sunil Kumar Pandab
Try this code what i have used in my application and it is working fine :-public string Zip(string ZipFileName) { try { if (!File.Exists(ZipFileName)) { //lstProcess.Items.Add("File Does Not Exists."); return...
4 Nov 2012 by lalit je
I need to send msg from rendom e-Mail id which should fetch from access/sql data baseand the text/html file format or page should be attached with email.Can any one help me regarding this.Lalit (Software developer)
4 Nov 2012 by Khalid Farhan
sending emails through c# desktop based application
24 Nov 2012 by Younth
Hello Everyone,I'm trying to redraw the menu (a menu with POPUP style ,right keydown menu), I already recoded three messages: WM_MESUREITEM, WM_INITPOPUP and WM_DRAWITEM, but the finally result doesn't make me satisfied.The three messages above only deal with menu items, the whole menu...
24 Nov 2012 by Richard MacCutchan
You have not really explained what your problem is, but some of these links[^] may help you.
18 Dec 2012 by Am Gayathri
In my Asp.net website i want to display one message box. I tried System.Windows.Forms;but am getting error message as;Error 2 The type or namespace name 'Windows' does not exist in the namespace 'System' (are you missing an assembly reference?)
17 Dec 2012 by Nitin Giri
There is no direct suport for message box in asp.net. One alternative is you can use javascript to display an alert.
17 Dec 2012 by Abhishek Pant
Here is asp.net we do not have direct message box like windows forms but have confirmatation box or alerts message or popups using javascripts Simple MessageBox functionality in ASP.NET[^]ASP.NET MessageBox[^]ASP.Net Message Box Alert Display[^]here is simple example using...
19 Dec 2012 by CarlosEveris
Hello mates,I'm trying to send a windowsmessage from an app in C# (Compact Frame) to another one in C++ (MFC), both of them in a PDA.In the receiver app (MFC) I realize that I receive the message but I can't read the string message, it shows a little square.This is the code of the...
11 Apr 2015 by Sergey Alexandrovich Kryukov
No. Of course, you can create some bridge/tunnel with some kind of network transport, but I'll tell you: it makes no practical sense.Here is why:Even the fact that you can exchange Windows messages across processes on the same computer, is the very weird historical artifact. The story...
16 Mar 2013 by kk2014
Hi all,i got the below issue while sending mail from my VB 6.0 application.The message could not be sent to the SMTP server. The transport error code was 0x80040217. The server response was availableI have tried to replicate but no luck.can anybody tell me is this problem is from...
19 Mar 2013 by nikitharavinder
I am new to java programming. I have used smsj api to send messages from pc to mobile through a gsm modem. I have succesfully been able to send plain text messages using SmsSender.sendTextSms(msg, reciever, sender) as well as unicode messages using SmsSender.sendUnicodeTextSms("smsj हिन्दी...
21 Mar 2013 by iDebD
Hi, Let me try to explain my problem here.I have a DLL, it is written in C++. It monitors all print objects for incoming print jobs (Through a Thread)and then fetch some information from print details. Upto here it is OK. Now I have to send this information to delphi project who loaded this...
5 Jun 2013 by Prasad Khandekar
Hello,Have a look at this documentation on MSDN. I think this is what you are looking for.Regards,
1 Aug 2013 by Aren Nov
Hi codeproject gentlemen,How can I find the handle of a new window when is about to get created/opened by another window BUT before the OS will display it, because I want to imediately kill that new window for not interrupting my other running tasks on the desktop, by stealing the focus....
4 Aug 2013 by Status BreakPoint
You can use the Inter Process Communication. See. Inter-Process Communication (IPC) Introduction and Sample Code[^]
20 Aug 2013 by kkklko
hi I want to get all messages in message queue in linux,could you give me some tips?many thanks!
21 Aug 2013 by kkklko
hi i want to post a message to a message queue of a process,but i do not know how to get the message queue of the process.could you give me some help? -kkklko
21 Aug 2013 by Richard MacCutchan
I already answered this question at how to get the id of message queue of a process in linux?[^]. Please do not post the same question multiple times.
4 Sep 2013 by Sergey Alexandrovich Kryukov
In brief, this is a really bad architecture. But basically, Receiver.exe should "register" in the server and pass it its HWND, which Server.exe should remember. After that, Server.exe can use SendMessage(HWMD, ...) to send a message to Receiver.exe. Receiver.exe should process the message in a...
10 Sep 2013 by Saurabh Raoot
Hi, I have two different Win32 consol applications. Both these applications has multiple threads. I want to send message from thead_1 of application_1 to thread_1 of applcation_2. Can I do this ?? If yes .. then what all I need to do ??I have used message queue beween threads of same...
16 Sep 2013 by Jeankininho
HiBasically, I'm using the class of .Net MessageQueue, I send a Message with FileName to a Queue, but I've received many errors from the Machines that consume the Queue like "File doesn't exist" or "FileNotFoundException". The machines supposed to delete the files.If someone familiar...
11 Oct 2013 by ASP.NET Community
This article presents a way to log and mail the errors from any web page.It logs following details -Control on which the error is raisedPage