English 中文(简体)
C++/MFC的管理和管理不好好坏参半?
原标题:Can managed and unmanaged C++/MFC be mixed in one dll?

此前,我们在MFC(VC6)、VB6和C#中拥有软件,需要使用C++(和MFC)书写的同一发动机。 发动机需要C++加速。 当我们决定使用COM作为接口时,因为所有三人都可以使用这一接口,处理最不小的问题,等等。

我们的中西太平洋渔业公司的申请现在被解释,我们最近决定丢弃VB6,因此,我们离开的就是C#。

我们只能把COM发动机作为主机,但从COM登记等开始,只有经过管理的接口才能开展工作。 如果机器人有错的话,公司注册有时会引发支持问题。

是否有可能与现有的未管理的C++/MFC和网络前端接口相连接?

问题回答

你们可以有一个C++/CLI DL,在内部使用中华教团的课程。 与C++/CLI共同创建DL,其唯一好处是,在DL(遵循C++/CLI规则)和“公正工程”的任何地方,你可以使用本土C++。

然而,这里的目标应该是提供冰、清洁、有管理的包裹,可以从您的C#申请中找到。

尽管如此,你很可能想避免使用中小公司作为任何用户接口要素。 虽然有可能在C#和反之亦然中接收中西部太平洋渔业公司的成分,但往往存在问题——你更不用说把C++的发动机(当时的关键业务)和冰、使用C++/CLI进行清洁管理的包装的旧法。

C++/CLI可以做到这一点。





相关问题
Manually implementing high performance algorithms in .NET

As a learning experience I recently tried implementing Quicksort with 3 way partitioning in C#. Apart from needing to add an extra range check on the left/right variables before the recursive call, ...

Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How do I compare two decimals to 10 decimal places?

I m using decimal type (.net), and I want to see if two numbers are equal. But I only want to be accurate to 10 decimal places. For example take these three numbers. I want them all to be equal. 0....

Exception practices when creating a SynchronizationContext?

I m creating an STA version of the SynchronizationContext for use in Windows Workflow 4.0. I m wondering what to do about exceptions when Post-ing callbacks. The SynchronizationContext can be used ...

Show running instance in single instance application

I am building an application with C#. I managed to turn this into a single instance application by checking if the same process is already running. Process[] pname = Process.GetProcessesByName("...

How to combine DataTrigger and EventTrigger?

NOTE I have asked the related question (with an accepted answer): How to combine DataTrigger and Trigger? I think I need to combine an EventTrigger and a DataTrigger to achieve what I m after: when ...

热门标签