• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    .NET

    Reply
    Active Member
    Posts: 8
    Registered: ‎08-07-2009

    How to open Modal MFC dialog in Managed C++

    119 Views, 0 Replies
    06-12-2012 03:18 PM

    Hi,

    I have a simple mix-managed project, in which one managed and one unmanaged command is created. A simple Dialog derived from CAcUiDialog is added to the project. Both commands, create and show that dialog modelessly, and it works fine.

    But when I change the code to create the dialog using DoModal() in both commands, the dialog shows for unmanaged command, but upon running the managed command, Autocad stalls.

    How can I create a Modal unmanaged dialog in Managed command?

    With thanks in advance

     

     

    Please use plain text.