Find Jobs
Hire Freelancers

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

$250-750 USD

Em Andamento
Publicado há mais de 4 anos

$250-750 USD

Pago na 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 do Projeto: 22266905

Sobre o projeto

13 propostas
Projeto remoto
Ativo há 4 anos

Quer ganhar algum dinheiro?

Benefícios de ofertar no Freelancer

Defina seu orçamento e seu prazo
Seja pago pelo seu trabalho
Descreva sua proposta
É grátis para se inscrever e fazer ofertas em trabalhos
13 freelancers estão ofertando em média $509 USD for esse trabalho
Avatar do Usuário
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 em 7 dias
4,8 (91 avaliações)
8,3
8,3
Avatar do Usuário
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 em 7 dias
4,9 (43 avaliações)
6,0
6,0
Avatar do Usuário
"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 em 5 dias
5,0 (19 avaliações)
4,3
4,3
Avatar do Usuário
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 em 9 dias
4,8 (8 avaliações)
3,6
3,6
Avatar do Usuário
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 em 7 dias
4,9 (9 avaliações)
3,8
3,8
Avatar do Usuário
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 em 7 dias
4,6 (10 avaliações)
3,7
3,7
Avatar do Usuário
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 em 7 dias
4,9 (4 avaliações)
3,2
3,2
Avatar do Usuário
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 em 7 dias
5,0 (6 avaliações)
3,2
3,2
Avatar do Usuário
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 em 7 dias
4,9 (2 avaliações)
2,4
2,4
Avatar do Usuário
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 em 7 dias
4,0 (3 avaliações)
1,8
1,8
Avatar do Usuário
Hi, I'm a c# developer. I think I can handle it.
$555 USD em 10 dias
0,0 (0 avaliações)
0,0
0,0

Sobre o cliente

Bandeira do(a) BULGARIA
Stara Zagora, Bulgaria
4,9
23
Método de pagamento verificado
Membro desde ago. 8, 2010

Verificação do Cliente

Obrigado! Te enviamos um link por e-mail para que você possa reivindicar seu crédito gratuito.
Algo deu errado ao enviar seu e-mail. Por favor, tente novamente.
Usuários Registrados Total de Trabalhos 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)
Carregando pré-visualização
Permissão concedida para Geolocalização.
Sua sessão expirou e você foi desconectado. Por favor, faça login novamente.