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

2019-08-19 04:58发布

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?

标签: c# callback mfc
1条回答
疯言疯语
2楼-- · 2019-08-19 05:12

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++.

查看更多
登录 后发表回答