Find Jobs
Hire Freelancers

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

$250-750 USD

In Progress
Posted over 4 years ago

$250-750 USD

Paid on delivery
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.
Project ID: 22266905

About the project

13 proposals
Remote project
Active 4 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
13 freelancers are bidding on average $509 USD for this job
User Avatar
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 in 7 days
4.8 (91 reviews)
8.3
8.3
User Avatar
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 in 7 days
4.9 (43 reviews)
6.0
6.0
User Avatar
"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 in 5 days
5.0 (19 reviews)
4.3
4.3
User Avatar
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 in 9 days
4.8 (8 reviews)
3.6
3.6
User Avatar
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 in 7 days
4.9 (9 reviews)
3.8
3.8
User Avatar
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 in 7 days
4.6 (10 reviews)
3.7
3.7
User Avatar
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 in 7 days
4.9 (4 reviews)
3.2
3.2
User Avatar
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 in 7 days
5.0 (6 reviews)
3.2
3.2
User Avatar
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 in 7 days
4.9 (2 reviews)
2.4
2.4
User Avatar
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 in 7 days
4.0 (3 reviews)
1.8
1.8
User Avatar
Hi, I'm a c# developer. I think I can handle it.
$555 USD in 10 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of BULGARIA
Stara Zagora, Bulgaria
4.9
23
Payment method verified
Member since Aug 8, 2010

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.