I am really confused by a lot of misinformation about native / guided interaction.
I have a regular C ++ exe that is NOT built using CLR tools (this is not Managed C ++ nor C ++ / CLI, and never will be). This C ++ exe is "responsible", there is no managed wrapper for it.
I would like to access some of the code that I have in a C # assembly from my C ++ exe. I can access the C # assembly from my C ++ code using COM. However, when my C # code detects an event, I would like it to call back to my C ++ code. A C ++ function pointer for the callback will be provided at runtime. Note that a C ++ function pointer is a function found in the exe runtime. It can use static elements from there. I do not want managed code to try loading some DLL to call a function (no DLL).
How to pass this C ++ pointer to my C # code through COM / .NET and is its C # code successful?
Thanks!
evilfred
source share