Find Jobs
Hire Freelancers

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

$250-750 USD

Σε Εξέλιξη
Αναρτήθηκε πάνω από 4 χρόνια πριν

$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.
Ταυτότητα εργασίας: 22266905

Σχετικά με την εργασία

13 προτάσεις
Απομακρυσμένη Εργασία
Ενεργός/ή 4 χρόνια πριν

Ψάχνεις τρόπο για να κερδίσεις μερικά χρήματα;

Πλεονεκτήματα πλειοδοσίας στο Freelancer

Καθόρισε τον προϋπολογισμό σου και το χρονοδιάγραμμα
Πληρώσου για τη δουλειά σου
Περίγραψε την πρόταση σου
Η εγγραφή και η πλειοδοσία σε εργασίες είναι δωρεάν
13 freelancers δίνουν μια μέση προσφορά $509 USD για αυτή τη δουλειά
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 σε 7 ημέρες
4,8 (91 αξιολογήσεις)
8,3
8,3
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 σε 7 ημέρες
4,9 (43 αξιολογήσεις)
6,0
6,0
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 σε 5 ημέρες
5,0 (19 αξιολογήσεις)
4,3
4,3
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 σε 9 ημέρες
4,8 (8 αξιολογήσεις)
3,6
3,6
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 σε 7 ημέρες
4,9 (9 αξιολογήσεις)
3,8
3,8
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 σε 7 ημέρες
4,6 (10 αξιολογήσεις)
3,7
3,7
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 σε 7 ημέρες
4,9 (4 αξιολογήσεις)
3,2
3,2
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 σε 7 ημέρες
5,0 (6 αξιολογήσεις)
3,2
3,2
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 σε 7 ημέρες
4,9 (2 αξιολογήσεις)
2,4
2,4
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 σε 7 ημέρες
4,0 (3 αξιολογήσεις)
1,8
1,8
Avatar Χρήστη
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

Επαλήθευση Πελάτη

Ευχαριστούμε! Σου έχουμε στείλει ένα email με ένα σύνδεσμο για να διεκδικήσεις τη δωρεάν πίστωση σου.
Κάτι πήγε στραβά κατά την προσπάθεια αποστολής του email σου. Παρακαλούμε δοκίμασε ξανά.
Εγγεγραμμένοι Χρήστες Συνολικές Αναρτημένες Δουλειές
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Φόρτωση προεπισκόπησης
Δόθηκε πρόσβαση για Geolocation.
Η σύνδεση σου έχει λήξει και τώρα έχεις αποσυνδεθεί. Παρακαλούμε συνδέσου ξανά.