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