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. ActiveX control in MFC

ActiveX control in MFC

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++com
2 Posts 2 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    Hello, I have 3rd party Control(.OCX) which is running in VB without any problem. Now i m using it in MFC. Class Wizard creates wrapper classes for it automatically. Now Problem is when i call a method object.Add(BSTR *,VARIANT*); i use CComBSTR and CComVariant classes for sending the parameters to this Method. When I run the "Application 0xC0000005: Access Violation" a very bad ERROR message get flashed.for the sake of info that OCX is mcbarmenuv102.ocx i got from MCUNHA's ActiveX 's. Please Help Me.

    B 1 Reply Last reply
    0
    • L Lost User

      Hello, I have 3rd party Control(.OCX) which is running in VB without any problem. Now i m using it in MFC. Class Wizard creates wrapper classes for it automatically. Now Problem is when i call a method object.Add(BSTR *,VARIANT*); i use CComBSTR and CComVariant classes for sending the parameters to this Method. When I run the "Application 0xC0000005: Access Violation" a very bad ERROR message get flashed.for the sake of info that OCX is mcbarmenuv102.ocx i got from MCUNHA's ActiveX 's. Please Help Me.

      B Offline
      B Offline
      BAIJUMAX
      wrote on last edited by
      #2

      Hi, There's No Problem With ActiveX.I believe U call The method With wrong data Type. Try This BSTR bstrYourstring VARIANT vYourVariant object.Add(&bstrYourstring,&vYourVariant) by baijumax

      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