Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Once I needed to modify a variable that was inside another application in order to modify its behavior.
I wonder whether its possibile to create an application that will get access to another process running on the same computer and modify some variable value. Process is a native one, and the application is written in c++. Do you know some good tutorials that help to achieve this?
I think you are looking for WriteProcessMemory function, take a look on this
You can use shared memory for this but this is more of an advanced concept: How to implement shared memory in .NET?
You can have a look at other alternatives: Passing data between C++ (MFC) app and C#
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
How i can add code editor C#,which will compile the code in live
I tried something with Ace, but nothing so far
Thank you.
If I understand correctly, you want to propose an input to user. They had C# code (no matter what) and your server executes it.
If yes, take a look at that.
It creates a project and build it in memory before executing it.
Be careful cause if you execute the code no matter what it will be a security breach into your server. For example, someone could execute a code which will download a file onto your server and open a backdoor to it.
Check this site:
https://dotnet.microsoft.com/platform/try-dotnet
This is embeddable .Net compiler which you could use without any preparations and setups
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I'm looking for advice and experiences about proper way to create outputs from one separate application to other independent application which must take this value for own implementation conditions. to make it clearer in primitive way for example output application writes some undated value to the text file, and another running application with available path to this file reads it in time loop and if value is found makes some implementation. But I'm trying to find what is more correct way to do the same to pass it from one application directly to another
Message Queing is certainly what you are looking for.
It will let some applications put messages on the queue and some others (or not actually) consume these messages.
https://msdn.microsoft.com/en-us/library/ms711472(v=vs.85).aspx
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
Is it possible to make a debugger like OllyDbg using C# ? I mean debug VC++, Delphi, Borland? Or make something like IDA (debugger) ?
No.
.NET Framework languages as C# and VB.NET are not the best choice to conduct it. You will have a LOT of work to get information from CPU, libraries and so forth. You will must to implement so many procedures to direct-call DLL´s and hardware, that it could be impossible in some scenarios.
To make a debug and get Ring-0 and other CPU and OS features, should be better to utilize C, C++ or even pure Assembly.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I want to make a C# WindowsFormApplication project to collect and store answers.
I then want to use these answers to generate input for selenium web driver which is a console application.
Is it possible to join the two projects together so I first collect my answers on the form, and when I click run on the windows application form, for the console application to start running? If so, how would this be done?
In case you don't want to use database as suggested by kat0r you can use sockets to make them communicate together.
The obvious answer would be to store the questions in a file/database, and simply access it from both applications. You can start other programs with something like Process
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have developed a c# application that I wish to sell.You'll must be knowing that many people just reverse their system clock and keep using the software.How to prevent that
any ideas?
The easiest and most safe way would be to require access to the net to validate the time.
But access to the net is a strict requirement, especially for some scenarios of usage.
In alternative you could try to keep an encrypted file in which you store the last time your application was launched. If the system clock on the next launch of your application is earlier than your stored last launch something must be fishy.