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
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 4 years ago.
Improve this question
after one hour searching I'm writing this question.
how to read,write and modify a text in text editor while the text editor is open, the text editor might be anything such as notepad or vs or word.
the type of c# application isn't matter whatever it be.
Writing to another memory's process is more complex and less stable. Better idea is to send a message/event to another process. This link demonstrates it for notepad, but idea is similar for other editors.
You need to connect to the process, it involves a lot of Windows API and it is different for different applications. My advise, don't do it, I cannot imagine an architecture which includes this kind of actions, it is asking for bugs.
But, if you still want to do it, Google: "connect to a process notepad and change text c#"
You will find many links which explain. For example this one:
https://www.codeproject.com/Articles/670373/Csharp-Read-Write-Another-Process-Memory
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 4 years ago.
Improve this question
How do I put this DBMS.OUTPUT_PUT.LINE in a database, and is it also allowed to put it on listbox, datagridview or label?
example: [Time]: "NAME" has inserted a data.
If you are trying to get additional text data from an operation to be returned from a SQL operation similar to how DBMS_OUTPUT.PUT_LINE works, then PRINT allows that. Since you mention C#, you should note that to consume PRINT data you need to subscribe to the SqlConnection.InfoMessage event, as described here.
However, in most cases it is more suitable / pragmatic to SELECT (perhaps via OUTPUT-clause in the case of INSERT/DELETE operations) something that informs the UI - perhaps the rows, perhaps the ##ROWCOUNT, perhaps the SCOPE_IDENTITY(). PRINT is usually a bad option for anything other than tool scripts.
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.
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
For my job i have to make many small projects that require to send different mails and set up some html. I usually make these forms in Winforms. Now at this moment whenever i need to fill my html I take the string replace some values and have functions that write hardcoded table rows.
To make my job a little easier I was wondering if it was possible to import the razor engine(not sure if it's the right word choice) in my winforms project and simply pass a model to a CSHTML file which returns me the HTML in a string so i can mail it to coworkers.
If this is possible, instructions on how to do it are welcome.
Kind Regards Roxas
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#