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. COM
  4. regenerate wrappers for ocx library

regenerate wrappers for ocx library

Scheduled Pinned Locked Moved COM
questioncsharpvisual-studiocom
6 Posts 4 Posters 0 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.
  • E Offline
    E Offline
    eusto
    wrote on last edited by
    #1

    How can i get Visual Studio to regenerate wrapper classes for an activex control? The control has updated but removing it from my project and adding it back does not generate the wrapper classes.

    C _ 2 Replies Last reply
    0
    • E eusto

      How can i get Visual Studio to regenerate wrapper classes for an activex control? The control has updated but removing it from my project and adding it back does not generate the wrapper classes.

      C Offline
      C Offline
      Cool_Dev
      wrote on last edited by
      #2

      Remove existing wrapper class from your project and add new one either by adding a member variable for your control or by 'Add MFC class from ActiveX control' wizard.

      1 Reply Last reply
      0
      • E eusto

        How can i get Visual Studio to regenerate wrapper classes for an activex control? The control has updated but removing it from my project and adding it back does not generate the wrapper classes.

        _ Offline
        _ Offline
        _Superman_
        wrote on last edited by
        #3

        Since removing and adding does not work for you, you could add the activex control into a new project and then take the generated files from there and replace your original files with the new ones.

        «_Superman_»
        I love work. It gives me something to do between weekends.

        Microsoft MVP (Visual C++)

        Polymorphism in C

        S E 2 Replies Last reply
        0
        • _ _Superman_

          Since removing and adding does not work for you, you could add the activex control into a new project and then take the generated files from there and replace your original files with the new ones.

          «_Superman_»
          I love work. It gives me something to do between weekends.

          Microsoft MVP (Visual C++)

          Polymorphism in C

          S Offline
          S Offline
          Stephen Hewitt
          wrote on last edited by
          #4

          Sounds like a reasonable suggestion.

          Steve

          1 Reply Last reply
          0
          • _ _Superman_

            Since removing and adding does not work for you, you could add the activex control into a new project and then take the generated files from there and replace your original files with the new ones.

            «_Superman_»
            I love work. It gives me something to do between weekends.

            Microsoft MVP (Visual C++)

            Polymorphism in C

            E Offline
            E Offline
            eusto
            wrote on last edited by
            #5

            Thanks for the suggestion. Do you guys have any idea why removing does not work? Do you know where visual studio keeps this info? Thanks, Eugen

            S 1 Reply Last reply
            0
            • E eusto

              Thanks for the suggestion. Do you guys have any idea why removing does not work? Do you know where visual studio keeps this info? Thanks, Eugen

              S Offline
              S Offline
              Stephen Hewitt
              wrote on last edited by
              #6

              I've ran into the same problem in the past. One of my co-workers told my a magic incantation that got the wrappers regenerated, but I can't remember what it was.

              Steve

              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