O
Olivier
Hello,
We have to integrate with an application A. This application is written
using unmanaged C++ (I guess) but has a .NET API. The first problem is that
this API is not accessible from an external application (it it just for
internal use)
So, I have created a .NET Assembly (C#) which is loaded during the startup
of the application A. In this assembly I register a .NET class for COM
We have another application B that will create an instance of this .NET/COM
class to do its work.
Now the problem: In the implementation of this .NET/COM class I have to
execute some code but this must be done on the main thread of the
application A (otherwise some strange things or crash happen)
How can I do that?
Thanks in advance
Olivier.
We have to integrate with an application A. This application is written
using unmanaged C++ (I guess) but has a .NET API. The first problem is that
this API is not accessible from an external application (it it just for
internal use)
So, I have created a .NET Assembly (C#) which is loaded during the startup
of the application A. In this assembly I register a .NET class for COM
We have another application B that will create an instance of this .NET/COM
class to do its work.
Now the problem: In the implementation of this .NET/COM class I have to
execute some code but this must be done on the main thread of the
application A (otherwise some strange things or crash happen)
How can I do that?
Thanks in advance
Olivier.