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. I have an Activex created with VC++ , receive an error in C++Builder

I have an Activex created with VC++ , receive an error in C++Builder

Scheduled Pinned Locked Moved C / C++ / MFC
comc++delphihelp
1 Posts 1 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.
  • H Offline
    H Offline
    hameduser
    wrote on last edited by
    #1

    Hi, I have an activeX created with VC++ ,i use it in my C++Builder 6 project and use OLE object to open Excel application in my project. I receive an error when uncheck "build with runtime packages" in project->options->packages.Otherwise if i check it or don't use ActiveX the application is working properly. Following is my code to opening excel application. ----------------------------------------------- Variant Excel=CreateOleObject("Excel.Application"); Excel.OlePropertySet("Visible", true); Variant Workbook=Excel.OlePropertyGet("Workbooks"); Workbook.OleProcedure("Add"); Variant sheet = Workbook.OlePropertyGet("Item", 1).OlePropertyGet("Worksheets") ; sheet = sheet.OlePropertyGet("Item",1); sheet.OlePropertySet("Name", WideString("TEST")); ---------------------------------------------- I test this ActiveX in Delphi at same conditions but it has no errors.Also i test other ActiveXs created in VC++ in my project and i receive similar errors.

    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