mj_
mj_

Reputation: 6447

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)?

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.

Is there a difference?

Thanks,

mj

Upvotes: 0

Views: 580

Answers (1)

lupus
lupus

Reputation: 3963

A service would make sense as a separate process, so you would basically execute: system ("mono-service2 yourprogram.exe") or use fork/exec etc.

Upvotes: 1

Related Questions