Find Jobs
Hire Freelancers

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

$250-750 USD

В роботі
Опублікований over 4 years ago

$250-750 USD

Оплачується при отриманні
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 проекту: 22266905

Про проект

13 пропозицій(-ї)
Дистанційний проект
Активність 4 yrs ago

Хочете заробити?

Переваги подання заявок на Freelancer

Вкажіть свій бюджет та терміни
Отримайте гроші за свою роботу
Опишіть свою пропозицію
Реєстрація та подання заявок у проекти є безкоштовними
13 фрілансерів(-и) готові виконати цю роботу у середньому за $509 USD
Аватарка користувача
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 за 7 дні(-в)
4,8 (91 відгуки(-ів))
8,3
8,3
Аватарка користувача
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 за 7 дні(-в)
4,9 (43 відгуки(-ів))
6,0
6,0
Аватарка користувача
"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 за 5 дні(-в)
5,0 (19 відгуки(-ів))
4,3
4,3
Аватарка користувача
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 за 9 дні(-в)
4,8 (8 відгуки(-ів))
3,6
3,6
Аватарка користувача
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 за 7 дні(-в)
4,9 (9 відгуки(-ів))
3,8
3,8
Аватарка користувача
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 за 7 дні(-в)
4,6 (10 відгуки(-ів))
3,7
3,7
Аватарка користувача
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 за 7 дні(-в)
4,9 (4 відгуки(-ів))
3,2
3,2
Аватарка користувача
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 за 7 дні(-в)
5,0 (6 відгуки(-ів))
3,2
3,2
Аватарка користувача
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 за 7 дні(-в)
4,9 (2 відгуки(-ів))
2,4
2,4
Аватарка користувача
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 за 7 дні(-в)
4,0 (3 відгуки(-ів))
1,8
1,8
Аватарка користувача
Hi, I'm a c# developer. I think I can handle it.
$555 USD за 10 дні(-в)
0,0 (0 відгуки(-ів))
0,0
0,0

Про клієнта

Прапор BULGARIA
Stara Zagora, Bulgaria
4,9
23
Спосіб оплати верифіковано
На сайті з серп. 8, 2010

Верифікація клієнта

Дякуємо! Ми надіслали на вашу електронну пошту посилання для отримання безкоштовного кредиту.
Під час надсилання електронного листа сталася помилка. Будь ласка, спробуйте ще раз.
Зареєстрованих користувачів Загальна кількість опублікованих робіт
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Завантажуємо для перегляду
Дозвіл на визначення геолокації надано.
Ваш сеанс входу закінчився, і сеанс було закрито. Будь ласка, увійдіть знову.