Updating progress bar in MFC dialog from .NET C# D

2019-08-19 04:52发布

问题:

I have seen this article but I need the reverse and find it confusing.

I have a C# DLL that is performing a lengthy task automating Outlook using interop.

This DLL method is called from my CDialog function in MFC.

My dialog has a progress bar control on it. Is it possible to update this progress bar in the dialog from the .NET DLL?

Does my question make sense?

回答1:

Article Calling an Exported Function in an EXE from Within a DLL will help you to call exe function from dll only.

However, you can create named mutex, to sync process or dll progress. named mutex can be accessible from C++ as well as C#. Creating named Mutex in c# exe and Accessing it a dll in c++.



标签: c# callback mfc