Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Managed C++/CLI
  4. MC++ control in a C# form :-(

MC++ control in a C# form :-(

Scheduled Pinned Locked Moved Managed C++/CLI
c++csharp
4 Posts 2 Posters 13 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nish Nishant
    wrote on last edited by
    #1

    I have an MC++ written control. I have added it to the C# toolbox. When I try to insert it into the form [by drag/drop] I get a message box with this *very* informative message :- Exception from HRESULT: 0x80131019 Blast!!! Nish :-(


    Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.

    R N 2 Replies Last reply
    0
    • N Nish Nishant

      I have an MC++ written control. I have added it to the C# toolbox. When I try to insert it into the form [by drag/drop] I get a message box with this *very* informative message :- Exception from HRESULT: 0x80131019 Blast!!! Nish :-(


      Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.

      R Offline
      R Offline
      Rama Krishna Vavilala
      wrote on last edited by
      #2

      I just wrote a message to you about that. What a coincidence? I did not know that you would land into this problem so soon. Ok this is interseting you can have a look at my article Developing windows forms control with MFC. Basically you have to click on the reference and set copy local to false. Rama Krishna Self professed King of Managed C++

      N 1 Reply Last reply
      0
      • N Nish Nishant

        I have an MC++ written control. I have added it to the C# toolbox. When I try to insert it into the form [by drag/drop] I get a message box with this *very* informative message :- Exception from HRESULT: 0x80131019 Blast!!! Nish :-(


        Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.

        N Offline
        N Offline
        Nish Nishant
        wrote on last edited by
        #3

        What's worse is that I caneasily add the control via code. It's just that the form designer refuses to understand the control :-( Is there any known issue where the C# form designer cannot understand a control made with MC++ ??? Nish


        Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.

        1 Reply Last reply
        0
        • R Rama Krishna Vavilala

          I just wrote a message to you about that. What a coincidence? I did not know that you would land into this problem so soon. Ok this is interseting you can have a look at my article Developing windows forms control with MFC. Basically you have to click on the reference and set copy local to false. Rama Krishna Self professed King of Managed C++

          N Offline
          N Offline
          Nish Nishant
          wrote on last edited by
          #4

          Rama Krishna wrote: Basically you have to click on the reference and set copy local to false. Cool! Also had to copy the DLL to the output directory :-) Rama Krishna wrote: Rama Krishna Self professed King of Managed C++ Maybe not kind yet, but you are the crowned prince :-) Nish


          Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups