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. invalid number of parameters in ActiveX

invalid number of parameters in ActiveX

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

    i create an activex with Visual c++6(mfc) and called its property in a vc sample. i add one new property to AxtiveX but when i run my sample get "invalid number of parameters" error message. i didnt any change in old property and just add new property with class wizard but get this error. please help me

    N P 2 Replies Last reply
    0
    • S samira forooghi

      i create an activex with Visual c++6(mfc) and called its property in a vc sample. i add one new property to AxtiveX but when i run my sample get "invalid number of parameters" error message. i didnt any change in old property and just add new property with class wizard but get this error. please help me

      N Offline
      N Offline
      Nelek
      wrote on last edited by
      #2

      Can you put a bit of code where the error is coming? I guess that if you didn't change anything but you add a new property it is maybe missing something when you call/create your control.

      Greetings. -------- M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you “The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson

      S 1 Reply Last reply
      0
      • S samira forooghi

        i create an activex with Visual c++6(mfc) and called its property in a vc sample. i add one new property to AxtiveX but when i run my sample get "invalid number of parameters" error message. i didnt any change in old property and just add new property with class wizard but get this error. please help me

        P Offline
        P Offline
        prasad_som
        wrote on last edited by
        #3

        Change version of lib. See MSDN[^] for more information.

        Prasad MS MVP -  VC++

        1 Reply Last reply
        0
        • N Nelek

          Can you put a bit of code where the error is coming? I guess that if you didn't change anything but you add a new property it is maybe missing something when you call/create your control.

          Greetings. -------- M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you “The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson

          S Offline
          S Offline
          samira forooghi
          wrote on last edited by
          #4

          Nelek wrote:

          Can you put a bit of code where the error is coming?

          DISP_PROPERTY_EX(CMyCtrl, "AutoChecking", GetAutoChecking, SetAutoChecking, VT_BOOL) //============================================= afx_msg void SetAutoChecking(BOOL bNewValue); afx_msg BOOL GetAutoChecking(); //============================================= void CMyCtrl::SetAutoChecking(BOOL bNewValue) { bAutoCheck = bNewValue; SetModifiedFlag(); } //============================================= BOOL CMyCtrl::GetAutoChecking() { // TODO: Add your property handler here return bAutoCheck; } //============================================= dispidAutoChecking = 17L,

          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