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. "parameter not optional"?

"parameter not optional"?

Scheduled Pinned Locked Moved COM
question
3 Posts 3 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.
  • Y Offline
    Y Offline
    Yu Zhiquan
    wrote on last edited by
    #1

    I add an interface to an OCX, when I use the OCX, it throw an exception and pop a message box "parameter not optional". Why? who can tell me reason? Thanks a lot!

    S I 2 Replies Last reply
    0
    • Y Yu Zhiquan

      I add an interface to an OCX, when I use the OCX, it throw an exception and pop a message box "parameter not optional". Why? who can tell me reason? Thanks a lot!

      S Offline
      S Offline
      Stefan Pedersen
      wrote on last edited by
      #2

      Are you passing a VT_EMPTY or a VT_NULL? Well, you shouldn't :)

      1 Reply Last reply
      0
      • Y Yu Zhiquan

        I add an interface to an OCX, when I use the OCX, it throw an exception and pop a message box "parameter not optional". Why? who can tell me reason? Thanks a lot!

        I Offline
        I Offline
        igor1960
        wrote on last edited by
        #3

        Just my 2 cents: On insertion your OCX maybe querying container for some ambient property not supported by your container. "...Ability to type is not enough to become a Programmer. Unless you type in VB. But then again you have to type really fast..." Me

        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