Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi Sir,

I was asked to pass some values from One EXE to another EXE when both are running.

I know how to pass parameters when opening a new EXE but I dont know how to pass when it is running.

My Problem:

Since I am using .NET 2.0 version may features are not supported.
So I was told to store in clipboard and retrieve that data from the destination EXE by timer

But there will be a problem if user select any content outside our EXE then the clipboard content will be erased thus causing much problem.

I gone through Google that we can store custom Clipboard data. So that clipboard data will be stored based on that key.

I can check and call the clipboard data by timer and thus I can make a clean transfer.

Sir,

This is what I planned to say. Can this be achieved or is there any way to do this efficiently.Waiting for your valuable answer.
Posted
Updated 12-Aug-14 20:57pm
v2
Comments
OriginalGriff 13-Aug-14 2:44am    
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind.
Use the "Improve question" widget to edit your question and provide better information.
KUMAR619 13-Aug-14 2:58am    
Sir, I have Edited my question please go through that and reply sir.
Waiting for your valuable answer.

1 solution

Please, don't do that.
That is a seriously poor idea, which if your application did it to me would cause your application to be terminated and uninstalled with extreme prejudice. I would then want my money back.

You should never, ever put anything on the clipboard unless the user specifically requests it: image how happy you would be if you were refactoring your code and cut a big chunk ready to paste it back further down...and one of my apps overwrote the clipboard content! Not a happy bunny I suspect.

.NET 2 included loads of ways that apps could talk directly to each other including sockets and TCPClient, or you could even communicate via a database! :laugh:
Any of those will be better that faffing with the clipboard, trust me!
 
Share this answer
 
Comments
KUMAR619 13-Aug-14 3:28am    
Thanks sir.
OriginalGriff 13-Aug-14 3:40am    
You're welcome!
KUMAR619 13-Aug-14 4:17am    
Sir, can you tell me your Gmail Id or any other MailId.
If you're interested share else ignore Sir.
OriginalGriff 13-Aug-14 4:22am    
Sorry, but no - all communication goes via the site so others can benefit as well.

And I already get several hundred emails a day as it is! :laugh:
KUMAR619 13-Aug-14 4:24am    
Yes Sir you are right.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900