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. Win32 - Use COM object help

Win32 - Use COM object help

Scheduled Pinned Locked Moved COM
helpdelphivisual-studiocomtools
3 Posts 3 Posters 14 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.
  • B Offline
    B Offline
    Bret Stern
    wrote on last edited by
    #1

    Been programming for too long, but always wanted to understand how to call a COM object from within a win32 c application. So I'm starting here hoping for some guidance. Although I have VS 2008, I would like to do this in Codeblocks. The COM object I want to use is for Sage 100. I currently load the COM object using Lazarus (DELPHI) like so: unit header_boi.pas const boi_so_err = 1; boi_data_path = '\\MM-2012-MAS-DEV\Sage\Sage 100 Advanced ERP\MAS90'; boi_script = 'ProvideX.Script'; boi_session = 'ProvideX.PvxDispatch'; unit boi_api.pas hboi_script := CreateOleObject(boi_script); In C, it is my understanding, I need to use CoCreateInstance?? Is this correct? Problem is, I just don't know. I have lots of books, but would love some guidance. Best in 2021, Good karma promised. Bret

    L 1 Reply Last reply
    0
    • B Bret Stern

      Been programming for too long, but always wanted to understand how to call a COM object from within a win32 c application. So I'm starting here hoping for some guidance. Although I have VS 2008, I would like to do this in Codeblocks. The COM object I want to use is for Sage 100. I currently load the COM object using Lazarus (DELPHI) like so: unit header_boi.pas const boi_so_err = 1; boi_data_path = '\\MM-2012-MAS-DEV\Sage\Sage 100 Advanced ERP\MAS90'; boi_script = 'ProvideX.Script'; boi_session = 'ProvideX.PvxDispatch'; unit boi_api.pas hboi_script := CreateOleObject(boi_script); In C, it is my understanding, I need to use CoCreateInstance?? Is this correct? Problem is, I just don't know. I have lots of books, but would love some guidance. Best in 2021, Good karma promised. Bret

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Take a look at this excellent article: COM in plain C[^].

      B 1 Reply Last reply
      0
      • L Lost User

        Take a look at this excellent article: COM in plain C[^].

        B Offline
        B Offline
        bakri goni
        wrote on last edited by
        #3

        my self Jason Clark from USA and I'm web developer visit my site for free software.

        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