Fusion app basic mechnism (updating)

Source: Internet
Author: User
Tags dotnet

We are developing a app called fusion. it's a strange app,: it's a MFC App while internally MFC App is just its clothes and it makes use of C ++/CLI and mainly C # assemblies to do the real job. its startup mechanic can be summarized:

1. firstly, there is a application project in C ++ which contains the real MFC fusionapp inherited finally from cwinapp and it give birth to the final app fusion.exe. as a MFC App does, when running fusion.exe, The Global fusionapp object will be created firstly, but it actually itself does nothing: create a C # application object which actually does the app startup work.

2. about message handling, as the app is a MFC App, so every message/event happened on the app UI will firstly be a MFC message. but internally, by C ++/CLI, all need-to-handle messages will be redirected to the internal DOTNET based event manager and trigger DOTNET event instead, and trigger DOTNET Event Handlers registered to finally react to the UI messages. isn' t it cool?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.