简体   繁体   English

C ++中的嵌入式Mono启动C#ServiceBase

[英]Embedded Mono in C++ Starting C# ServiceBase

Is it possible to use a C++ application that has a mono runtime embedded inside of it to perform a mono_jit_exec on a C# app that is a service (uses ServiceBase to start)? 是否可以使用其中嵌入了mono运行时的C ++应用程序在作为服务的C#应用​​程序上执行mono_jit_exec(使用ServiceBase启动)?

I can start a simple C# application from a C++ app that has a normal C# application (not a service) but I'm having some trouble starting a service. 我可以从具有普通C#应用程序(而不是服务)的C ++应用程序中启动一个简单的C#应用​​程序,但是在启动服务时遇到了一些麻烦。

Is there a difference? 有区别吗?

Thanks, 谢谢,

mj j

服务作为一个单独的进程有意义,因此您基本上可以执行:系统(“ mono-service2 yourprogram.exe”)或使用fork / exec等。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM