|
How can i send and Receive Messages from one application to another or passing a varaible from one application to another
Amit Grover
CDAC R&D
|
|
|
|
|
|
i would like to use winAPI instead of Inter-Process Communication in .NET Using Named Pipes,. plz send me e.g if possible
Amit Grover
CDAC R&D
|
|
|
|
|
A.,
I don't think anyone on this board will give a shrink-wrapped solution to your problem. Interprocess communication can get messy depending on how you implement it. If you don't already understand what you're doing, then you need to get some education regarding the matter.
However, you have a lucky star over your head because I found two articles right here on CodeProject that you can read. You will then know for what you ask and two methods for doing it in the Win32 API.- Interprocess communication tutorial, by Alex Fr
- Interprocess Communication using Shared Memory, by Zoran M. Todorovic
Now that I've helped you find articles, you need to help yourself by reading them.
I gather that you don't know how to make calls to the Win32 API from C#. I will start you in the right direction: search this site or the Internet for "p/invoke". You will find what you need.
Sincerely,
Curtis Schlak.
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
|
i am looking for win32 api functions for send and recieve messages
Amit Grover
CDAC R&D
|
|
|
|
|
|
you have send me the way i can send message to another application. than how can another application receive that message.
Amit Grover
CDAC R&D
|
|
|
|
|
.Net Remoting is the answer if both the applications are written in .Net(which i assume so).
Here is the link for a basic over view of .net remoting Click Here
|
|
|
|
|
i would like to use winAPI instead of remoting and socket programming. plz send me e.g if possible
Amit Grover
CDAC R&D
|
|
|
|
|
I keep hearing people say to use Remoting to send data/messages between two processes/programs/whatever yet everything I've seen talks about running a routine in the server. Nobody talks about how to get the server to respond to a message.
In other words - you have an app that wants to send a message to another app saying 'There's new data available for you.' With remoting you can call a routine on the server but then how does the server know that there's been a change? It seems to me like the only thing you are doing is calling a remote routine but it doesn't provide communication with the host; the routine is segregated from the host.
Am I reading this wrong?
|
|
|
|
|
Hi.
I need a code sample that can mute the sound of windows in my applioation, please.
Best wishes
|
|
|
|
|
|
The following code works just fine on my "test" form, but when i put the code in the REAL application i get a selection rectangle, rather than the nice text color change i get with this code:
richTextBox1.AppendText("This" + System.Environment.NewLine);
richTextBox1.AppendText("seems" + System.Environment.NewLine);
richTextBox1.AppendText("to" + System.Environment.NewLine);
richTextBox1.AppendText("work." + System.Environment.NewLine);
string mySearchLetters = textBox1.Text;
int index = richTextBox1.Find(mySearchLetters);
label1.Text = mySearchLetters + " was found in pos " + index.ToString();
if (index >= 0)
richTextBox1.SelectionColor = System.Drawing.Color.Orange;
I'm thinking that maybe there is a "property" set on the real application that prevents this code from working but i can not find it. i compare the control properties, line-for-line and they seem to be identical.
Any ideas?
|
|
|
|
|
I take it your trying to highlight the position and length of the string you typed in?
This code won't work because your not changing the .SelectStart and .SelectionLength properties to actually select the string you want to change with .SelectionColor.
richTextBox1.SelectionStart = pos;
richTextBox1.SelectionLength = mySearchLetters.Length;
richTextBox1.SelectionColor = Color.Orange;
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
It turns out the solution was even simpler .. there WAS a property that was messing things up. All i had to do was set HideSelection to true !!!
The pretty orange text was hidden under the selection rectangle ... go figure ... lol.
Thanks for responding, Dave.
|
|
|
|
|
anyone can help me how to create a multicoloumn combobox?
|
|
|
|
|
Is there any opensource oodbms product for web applications made in C# 2.0? I am aware of db40 but i doubt if it works for web apps.
RmB
|
|
|
|
|
Yes it works for web apps perfectly.
Regards,
German Viscuso
db4objects Inc.
|
|
|
|
|
I'm trying to add href tags to a string...
I cannot seem to get the quotes working...
How do I add "<a href="" (I need that inner quote.) around www.codeproject.com "">" I need it again?
I have not done this in so long I cannot remember how I did it.
ARRRGHHH!!!
Thanks for the help... Losing my mind...
<div style="BORDER-TOP:#FFCD00 2px solid;BORDER-RIGHT:#FFCD00 2px solid;BORDER-LEFT:#FFCD00 2px solid;BORDER-BOTTOM:#FFCD00 2px solid;"><small>
Some assembly required.
Code-frog System Architects, Inc.</div>
-- modified at 5:55 Thursday 22nd December, 2005
|
|
|
|
|
|
yeah, either I'm stupid (which is possible) or that's not quite what I'm after. It's still not rendering a clickable link on a web page.
Some assembly required.
Code-frog System Architects, Inc.
|
|
|
|
|
string withQuotes = "Hello \"World\""<br />
Console.WriteLine(withQuotes)
|
|
|
|
|
Escape the quotation mark with the \ character:
string link = "<a href=\"www.codeproject.com\">";
Or use an @-delimited string and double qoutation marks:
string link = @"<a href=""www.codeproject.com"">";
---
b { font-weight: normal; }
|
|
|
|
|
Hi,
We have created around 100 forms in VS.Net 2003. Just added controls to form for creating the flow of project. Now we have decided to work in Beta 2 and want to use all the forms created in 2003. Please suggest some easy way for converting the 2003 forms into 2005 forms.(There is an extra Designer.cs class in Beta 2)
Regards,
Shah Adarsh
|
|
|
|