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. CopyLocal Mystery in Man C++

CopyLocal Mystery in Man C++

Scheduled Pinned Locked Moved Managed C++/CLI
csharpc++questionhelp
3 Posts 3 Posters 2 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.
  • F Offline
    F Offline
    Firoz
    wrote on last edited by
    #1

    Hi, I had posted this earlier here, but got no response. I am trying my luck again (by changing the Subject Line...;)) I have a User Control (created using Man C++) When I try to place this Control on a form, the Form Designer throws an Exception( 0x80131019). And I am not allowed to place the control on the form. This happens when the CopyLocal Property of the Reference is True. But if I change the CopyLocal property to False, the Designer wholeheartedly accepts the Conrtrol. The Form Designer doesnt behave this way with controls made using C# or VB.Net. Can someone please tell me what difference does CopyLocal property make to the Form Designer ? Why does this happen only with Controls created in Managed Cpp? My control does nothing extraordinary, but just some Drawings in the OnPaint(). Please, somebody Help me..... Thanks, Firoz

    N N 2 Replies Last reply
    0
    • F Firoz

      Hi, I had posted this earlier here, but got no response. I am trying my luck again (by changing the Subject Line...;)) I have a User Control (created using Man C++) When I try to place this Control on a form, the Form Designer throws an Exception( 0x80131019). And I am not allowed to place the control on the form. This happens when the CopyLocal Property of the Reference is True. But if I change the CopyLocal property to False, the Designer wholeheartedly accepts the Conrtrol. The Form Designer doesnt behave this way with controls made using C# or VB.Net. Can someone please tell me what difference does CopyLocal property make to the Form Designer ? Why does this happen only with Controls created in Managed Cpp? My control does nothing extraordinary, but just some Drawings in the OnPaint(). Please, somebody Help me..... Thanks, Firoz

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

      This is a known problem and will hopefull be corrected in 7.1 Regards, Nish


      Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]

      1 Reply Last reply
      0
      • F Firoz

        Hi, I had posted this earlier here, but got no response. I am trying my luck again (by changing the Subject Line...;)) I have a User Control (created using Man C++) When I try to place this Control on a form, the Form Designer throws an Exception( 0x80131019). And I am not allowed to place the control on the form. This happens when the CopyLocal Property of the Reference is True. But if I change the CopyLocal property to False, the Designer wholeheartedly accepts the Conrtrol. The Form Designer doesnt behave this way with controls made using C# or VB.Net. Can someone please tell me what difference does CopyLocal property make to the Form Designer ? Why does this happen only with Controls created in Managed Cpp? My control does nothing extraordinary, but just some Drawings in the OnPaint(). Please, somebody Help me..... Thanks, Firoz

        N Offline
        N Offline
        Nick Hodapp
        wrote on last edited by
        #3

        Your assembly needs to be registered in the GAC. To do this it first needs a "strong name", sort of like a GUID. Use SN.exe to generate a strong-name key file. In your AssemblyInfo.cpp file, specify the key file as a parameter to the AssemblyKeyFileAttribute() attribute. Rebuild your assembly. Now use Gacutil.exe to register the assembly in the GAC. This step can be done in a custom-build-step if desired. This posting is provided “AS IS” with no warranties, and confers no rights. You assume all risk for your use. © 2001 Microsoft Corporation. All rights reserved.

        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