I have a typical scenario to work with and seeking help for the same.
The scenario is.
1) I have to write some code in Managed C++ and C# code.
2) Managed C++ will interact with Native windows service.
Detailed Information
C++ Dll
When the native windows service start, it calls its own callback Init (
) method in our C++ dll (coz these methods are exported from this dll).
Further, there is another exported method Query( ) is there, which
receives a query from windows Service and passes it for resolution in
C# dll.
C#Dll
This has two functionality : 1) Continuous Polling 2) Resolve queries
received from C++dll then after resolution passed to C++ dll which will
further pass it to Service.
Problem
I want to implement continous polling using thread more specifically
using TimerDelegate but no sucess. Although where should i spawn this
delegate in C++ or in C# dll.