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. C / C++ / MFC
  4. import VB ocx to VC++?

import VB ocx to VC++?

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++
3 Posts 3 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.
  • M Offline
    M Offline
    Michael Flood
    wrote on last edited by
    #1

    I would like to import an OCX to VC++. How do i make vc create all of the properties and events that VB sees immediatly when I drop it on the form? i tried to drop it on a vc form and use class wizard but it shows nothing? i would rather use vc than vb to make my app.

    Mircea PuiuM 1 Reply Last reply
    0
    • M Michael Flood

      I would like to import an OCX to VC++. How do i make vc create all of the properties and events that VB sees immediatly when I drop it on the form? i tried to drop it on a vc form and use class wizard but it shows nothing? i would rather use vc than vb to make my app.

      Mircea PuiuM Offline
      Mircea PuiuM Offline
      Mircea Puiu
      wrote on last edited by
      #2

      Just "dropping" a the ocx on your form does not create a wrapper class for it. Try to map a variable to it, and VC will automatically start for the process of creating a wrapper class. Then you'll have acces to what you need. SkyWalker

      A 1 Reply Last reply
      0
      • Mircea PuiuM Mircea Puiu

        Just "dropping" a the ocx on your form does not create a wrapper class for it. Try to map a variable to it, and VC will automatically start for the process of creating a wrapper class. Then you'll have acces to what you need. SkyWalker

        A Offline
        A Offline
        Anonymous
        wrote on last edited by
        #3

        sorry for being so lame. I am new to activex programming. i have tried to get the idl file which gave me a veiw of all of hte functions. but it does not work. could you send me an example vc prj of doing this? :confused:

        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