简体   繁体   English

从.NET C#DLL更新MFC对话框中的进度条

[英]Updating progress bar in MFC dialog from .NET C# DLL

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. 我有一个C#DLL,它正在执行冗长的任务以使用互操作使Outlook自动执行。

This DLL method is called from my CDialog function in MFC. 从MFC中的CDialog函数调用此DLL方法。

My dialog has a progress bar control on it. 我的对话框上有一个进度条控件。 Is it possible to update this progress bar in the dialog from the .NET DLL? 是否可以从.NET DLL更新对话框中的此进度栏?

Does my question make sense? 我的问题有意义吗?

Article Calling an Exported Function in an EXE from Within a DLL will help you to call exe function from dll only. 文章从DLL内部调用EXE中的导出函数将帮助您仅从dll调用exe函数。

However, you can create named mutex , to sync process or dll progress. 但是,您可以创建名为Mutex ,以同步进程或dll进度。 named mutex can be accessible from C++ as well as C#. 可以从C ++和C#访问名为互斥体的名称。 Creating named Mutex in c# exe and Accessing it a dll in c++ . 在c#exe中创建命名的Mutex并在c ++中访问它的dll

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM