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
2 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.
  • S Offline
    S Offline
    samira forooghi
    wrote on last edited by
    #1

    icreate 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 and call my old properties , i 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 my new property : 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,

    P 1 Reply Last reply
    0
    • S samira forooghi

      icreate 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 and call my old properties , i 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 my new property : 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,

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

      Have you read about version[^] in MIDL , as suggested in reply to your previous post ?

      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