Find Jobs
Hire Freelancers

Build an event, that is usable from a C# program, which belongs to a C++ program.

$250-750 USD

En curso
Publicado hace más de 4 años

$250-750 USD

Pagado a la entrega
I have a small C++ dll which creates a CLRCreateInstance and loads a C# dll. Here is the source: /////////////////////////////////////////////////////////////////////////////////////////////////////// #include <metahost.h> #pragma comment(lib, "[login to view URL]") DWORD WINAPI ControlThread(LPVOID lpParam) { ICLRMetaHost* metaHost = NULL; ICLRRuntimeInfo* runtimeInfo = NULL; ICLRRuntimeHost* runtimeHost = NULL; if (CLRCreateInstance(CLSID_CLRMetaHost, IID_ICLRMetaHost, (LPVOID*)&metaHost) == S_OK) if (metaHost->GetRuntime(L"v4.0.30319", IID_ICLRRuntimeInfo, (LPVOID*)&runtimeInfo) == S_OK) if (runtimeInfo->GetInterface(CLSID_CLRRuntimeHost, IID_ICLRRuntimeHost, (LPVOID*)&runtimeHost) == S_OK) if (runtimeHost->Start() == S_OK) { DWORD pReturnValue; runtimeHost->ExecuteInDefaultAppDomain(L"C:\\[login to view URL]", L"[login to view URL]", L"EntryPoint", L"asd", &pReturnValue); runtimeInfo->Release(); metaHost->Release(); runtimeHost->Release(); } return 0; } BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved ) { switch (ul_reason_for_call) { case DLL_PROCESS_ATTACH: CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)ControlThread, hModule, NULL, NULL); break; case DLL_THREAD_ATTACH: case DLL_THREAD_DETACH: case DLL_PROCESS_DETACH: break; } return TRUE; } /////////////////////////////////////////////////////////////////////////////////////////////////////// And now here is the source code for the C# [login to view URL] /////////////////////////////////////////////////////////////////////////////////////////////////////// namespace ExampleProject { public class Example { public static int EntryPoint(string pwzArgument) { string processName = [login to view URL]().ProcessName; [login to view URL]("The current process is " + processName); return 0; } } } /////////////////////////////////////////////////////////////////////////////////////////////////////// What I want is to create a second thread in the C++ project and call it TickEvent /////////////////////////////////////////////////////////////////////////////////////////////////////// DWORD WINAPI TickEvent(LPVOID lpParam) { while (true) { Sleep(500); //[login to view URL](); } } /////////////////////////////////////////////////////////////////////////////////////////////////////// And use it like this in the C# [login to view URL] /////////////////////////////////////////////////////////////////////////////////////////////////////// namespace ExampleProject { public class Example { public static int EntryPoint(string pwzArgument) { [login to view URL] += OnTick; } private static void OnTick(EventArgs args) { string processName = [login to view URL]().ProcessName; [login to view URL]("Called every 500ms inside " + processName); return 0; } } } /////////////////////////////////////////////////////////////////////////////////////////////////////// The question from me is, can you make an event like this, which is controlled from the C++ dll and usable from any C# dll? If you can complete this task, I will be asking from you to also implement different C++ API which are usable in C# inside the events earlier created. Please take a moment and use the passw0rd "I am C# pr0grammer" to confirm you have read my post in general and are sure you can complete it.
ID del proyecto: 22266905

Información sobre el proyecto

13 propuestas
Proyecto remoto
Activo hace 4 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
13 freelancers están ofertando un promedio de $509 USD por este trabajo
Avatar del usuario
Hi,. I have gone through the brief details mentioned on the job. I have done multiple jobs with .NET, C Programming, C# Programming, C++ Programming, Software Architecture which are the skills required to get this job done. Lets start the chat so we can discuss this job more in detail then we will discuss the final budget, Right now I am placing default bid. We will discuss the final budget after detailed discussion and going through detailed requirements. Thanks.
$750 USD en 7 días
4,8 (91 comentarios)
8,3
8,3
Avatar del usuario
I can start work right now and I can show you perfect result in a short time. Please contact me freely. Waiting for you with your great news.
$500 USD en 7 días
4,9 (43 comentarios)
6,0
6,0
Avatar del usuario
"I am C# pr0grammer" - I understand your frustration with automated bids. Hello, I'm very experienced with C, C++ and C# programming and I believe I can help you implement this project. I would implement this type of functionality using a callback to return from the C++ library into the C# code. I'd be happy to discuss the project further with you, so please don't hesitate in sending me a message via chat. Regards!
$400 USD en 5 días
5,0 (19 comentarios)
4,3
4,3
Avatar del usuario
Hello There. How are you doing?. I have read the description, I have great experience doing similar jobs related to these skills .NET, C Programming, C# Programming, C++ Programming, Software Architecture. Please start the chat so we can have detailed discussion. Thanks. Hi ! Please Send me a message so that we can discuss more about this project
$555 USD en 9 días
4,8 (8 comentarios)
3,6
3,6
Avatar del usuario
Dear Hiring Manager, After reviewing your job description, it’s clear that you’re looking for a candidate that is extremely familiar with the responsibilities associated with the role, and can perform them confidently. Given these requirements, I am certain that I have the necessary skills to successfully do the job adeptly and perform above expectations. I am an adaptable Software Developer. During the course of my academic career, I also managed to accrue nearly 2 years of work experience. I had the privilege of working for different tech companies in a Software Developer role in my free time, where I learned valuable professional skills such as advanced technology, application development, and emerging technologies. In both my academic and professional life, I have been consistently praised as hard-working by my professors and peers. Whether working on academic, extracurricular, or professional projects, I apply proven teamwork, research, and technical skills. After reviewing my resume, I hope you will agree that I am the type of competent and competitive candidate you are looking for. Thank you for your consideration, and I look forward to hearing from you soon. Sincerely, Siraj Ahmadzai
$533 USD en 7 días
4,9 (9 comentarios)
3,8
3,8
Avatar del usuario
Hello, How are you? My pleasure to bid your project. I've read carefully your project description. I have more than five years experience in development related with your project. Your satisfaction with the project is my top priority! If you give me a chance to work with you, then I will try my best level for your project to run successfully. Waiting for your kind response. Best Regards.
$500 USD en 7 días
4,6 (10 comentarios)
3,7
3,7
Avatar del usuario
Good day! I'm a licensed full stack developer and designer. I have rich experiences in python/Django, python selenium , image processing by using openCV and google apis and extensions. I have many experiences in c#, c++, c, ASP.NET, java programming. I have read your project description carefully. I'm interested in your project, please check my profile and if you are interested too then please kindly message to me. Thank you very much.
$500 USD en 7 días
4,9 (4 comentarios)
3,2
3,2
Avatar del usuario
I am C# pr0grammer I am C# pr0grammer I am C# pr0grammer I am C# pr0grammer I am C# pr0grammer I am C# pr0grammer I am C# pr0grammer
$400 USD en 7 días
5,0 (6 comentarios)
3,2
3,2
Avatar del usuario
Dear Client. Thanks for your job posting. My slogan is to satisfy the client's requirement with a low price. However, high quality and fast-deliver is promised. I am interested in your project. Because I have strong skills and great experience in this C#. please send me your message. thanks.
$500 USD en 7 días
4,9 (2 comentarios)
2,4
2,4
Avatar del usuario
Hi! Nice to meet you. My name is Nemanja, c/c# expert from Russia. I have read your project detail carefully. I have about 10 years of experience. I can complete your job within a few days. please contact me so that we can discuss more. Regard.
$500 USD en 7 días
4,0 (3 comentarios)
1,8
1,8
Avatar del usuario
Hi, I'm a c# developer. I think I can handle it.
$555 USD en 10 días
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de BULGARIA
Stara Zagora, Bulgaria
4,9
23
Forma de pago verificada
Miembro desde ago 8, 2010

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.