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