从.NET C#DLL更新MFC对话框中的进度条 [英] Updating progress bar in MFC dialog from .NET C# DLL

查看:64
本文介绍了从.NET C#DLL更新MFC对话框中的进度条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经看到了这个

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

我有一个C#DLL,它正在执行冗长的任务以使用互操作使Outlook自动运行.

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

此DLL方法是通过MFC中的CDialog函数调用的.

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

我的对话框上有一个进度条控件.是否可以从.NET 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?

我的问题有意义吗?

推荐答案

文章在DLL中从EXE调用EXE中的导出函数将帮助您从dll中调用exe函数

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

但是,您可以创建在c#exe并在c ++中访问它的dll .

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

这篇关于从.NET C#DLL更新MFC对话框中的进度条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆