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. how to pass the VARIANT argument in this functioin?

how to pass the VARIANT argument in this functioin?

Scheduled Pinned Locked Moved C / C++ / MFC
c++jsonarchitecturehelptutorial
4 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.
  • E Offline
    E Offline
    ewighell
    wrote on last edited by
    #1

    I am programming with the API of Autodesk Inventor(a CAD software). and there is a function which is described in its documentation below:

    Profiles.AddForSolid Method:
    Method that creates a profile containing multiple paths for creating solid features.
    AddForSolid(Combine As Boolean = True,Curves As Variant,reserved As Variant)As Profile

    Combine Optional input Boolean that specifies ......(the following info doesn't help, so I leave it out)
    Curves Optional input ObjectCollection that contains sketch curves. The method will create a profile consisting of only those paths that are comprised of the exact set of sketch curves specified in the ObjectCollection. If not specified, all the possible profile paths are included. This argument is ignored if the Combine argument is specified to be True.
    reserved Optional input Variant reserved for future use. This argument is currently ignored.

    while the corresponding wrapper class in the rxInventor.tli is declared as:

    HRESULT Profiles::AddForSolid ( VARIANT_BOOL Combine, const VARIANT & Curves, const VARIANT & reserved, struct Profile * * _presult )

    I have no idea how to pass the paramter const VARIANT & Curves, could anybody help me ? Thank you very much!!! ------------------- I am learning C++ and English

    E 1 Reply Last reply
    0
    • E ewighell

      I am programming with the API of Autodesk Inventor(a CAD software). and there is a function which is described in its documentation below:

      Profiles.AddForSolid Method:
      Method that creates a profile containing multiple paths for creating solid features.
      AddForSolid(Combine As Boolean = True,Curves As Variant,reserved As Variant)As Profile

      Combine Optional input Boolean that specifies ......(the following info doesn't help, so I leave it out)
      Curves Optional input ObjectCollection that contains sketch curves. The method will create a profile consisting of only those paths that are comprised of the exact set of sketch curves specified in the ObjectCollection. If not specified, all the possible profile paths are included. This argument is ignored if the Combine argument is specified to be True.
      reserved Optional input Variant reserved for future use. This argument is currently ignored.

      while the corresponding wrapper class in the rxInventor.tli is declared as:

      HRESULT Profiles::AddForSolid ( VARIANT_BOOL Combine, const VARIANT & Curves, const VARIANT & reserved, struct Profile * * _presult )

      I have no idea how to pass the paramter const VARIANT & Curves, could anybody help me ? Thank you very much!!! ------------------- I am learning C++ and English

      E Offline
      E Offline
      ewighell
      wrote on last edited by
      #2

      I made it ------------------- I am learning C++ and English

      R 1 Reply Last reply
      0
      • E ewighell

        I made it ------------------- I am learning C++ and English

        R Offline
        R Offline
        Rage
        wrote on last edited by
        #3

        Thanks for the reply (you are one further than many posters that find the answer themsleves), but to make it wonderful, next time, explain also HOW you made it (for other users that may be interested by the answer) ;) ~RaGE();

        E 1 Reply Last reply
        0
        • R Rage

          Thanks for the reply (you are one further than many posters that find the answer themsleves), but to make it wonderful, next time, explain also HOW you made it (for other users that may be interested by the answer) ;) ~RaGE();

          E Offline
          E Offline
          ewighell
          wrote on last edited by
          #4

          I found that it was one of my mistakes that made the easy problem much more complicated. if anybody runs into the same problem, just feel free to email me, I will be happy to help you as soon as possible! my email: ewighell@hotmail.com I must addmit ,I have got a lot of helps from codeproject and feel so grateful that I will try my best to help others. ------------------- I am learning C++ and English

          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