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. return 2 values by method in ActiveX project

return 2 values by method in ActiveX project

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

    hi, I'm writing a ActiveX(OCX file) project in VC6 ,I want create one method in my project, this method have 2 parameters change in this method ,then when call this method in any language ( example delphi) I want see value change in these parameters , In fact I want my method return 2 strings value . I don't know type these parameters and ... thanks for any answer.

    P 1 Reply Last reply
    0
    • H hameduser

      hi, I'm writing a ActiveX(OCX file) project in VC6 ,I want create one method in my project, this method have 2 parameters change in this method ,then when call this method in any language ( example delphi) I want see value change in these parameters , In fact I want my method return 2 strings value . I don't know type these parameters and ... thanks for any answer.

      P Offline
      P Offline
      Paresh Chitte
      wrote on last edited by
      #2

      Accept these two parameters by reference / pointer (out parameter). [id(1), helpstring("XXXX")] HRESULT foo([out,retval] long* out1, [out,retval] long* out2); Regards, Paresh.

      H 1 Reply Last reply
      0
      • P Paresh Chitte

        Accept these two parameters by reference / pointer (out parameter). [id(1), helpstring("XXXX")] HRESULT foo([out,retval] long* out1, [out,retval] long* out2); Regards, Paresh.

        H Offline
        H Offline
        hameduser
        wrote on last edited by
        #3

        thanks for your help paresh, but, my project is AcriveX in Visual C++ 6 , and I create my method by classwizard, in classwizard type parameters is limited by combobox and have not this type ("[out,retval] long* out1") but I write this type manual and build my project , VC6 give error syntax error : '[' regards

        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