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'm working with some code in Visual Studio. My parter-in-crime fellow developer has suggested that the code also be available to work under Mono. I'm impresed witht he work that is already done in Mono, but I'm very new to Mono, so I don't know what it can/cannot do.
I've already written a class in C# using the .NET LicenseManager object. It writes to the windows registry, so I know I'll have to modify it so that it will use some compiler flags like #if Win32 or #if MONO.
My question is two-fold:
1) Does Mono implement the same LicenseManager class structure?
2) If so, how do you guys lock down your code using LicenseManager in Linux? (i.e. Write to files, use a hardware dongle, compare to hardware serials, etc??)
http://www.mono-project.com/MoMA will show you areas not supported
the current state of mono's implementation at the time I write this indicates it has more than just 'TODO' status but you would have to give it a try for your scenario.
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 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 is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
my .net app needs to store some persistent data and since it is possible that it runs in an environment where it cant write to disk, i would like to use the registry for it.
are there any conventions about the path where an application is writing to?
are there any tools or libraries that make reading and writing the registry from .net more convenient? i need to mostly write simple datatypes and datastructures like lists.
any other best practices or tips & tricks that should be know when working with the registry?
Writing to the registry is a little frowned on nowadays, however if you must:
Put settings for the current user in: HKEY_CURRENT_USER\Software\Your Company\Your App
Put settings for all users in: HKEY_LOCAL_MACHINE\Software\Your Company\Your App
Use the Registry class in the .NET framework to read and write registry keys and values:
http://msdn.microsoft.com/en-us/library/microsoft.win32.registry(v=vs.110).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 8 years ago.
Improve this question
I am working on a project where I need to use a wrapper written in C++ to transfer messages across servers through c# code. The client applications are written in c#, but the message bus that I have to use doesn't work directly with .NET, so C++ wrapper to the rescue.
I hope that this makes sense, and any help would be great. Thanks
You can call C++ contained in a dll from C# using Platform Invoke. http://msdn.microsoft.com/en-us/library/aa288468%28v=vs.71%29.aspx. In this case it is actually the C# code wrapping the C++ code.
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 3 years ago.
Improve this question
how to create a browser plug in using C#? (something like Flash Player or Unity3d)
This cannot be done using C# only.
WebKit is C++-based, so you'd need at least a C++ wrapper in order to let the browser communicate with your code. Using a mixed-mode C++ DLL that talks to WebKit on one side and to your C# code on the other side should be considered.
The WebKit site does not contain much docs (don't want to criticize, but I couldn't find much there when working with Chromium). Only Apple docs explain plug-ins, but it looks very Apple-oriented. Sorry, not very helpful.