How to Create Instance variable in MFC ActiveX Control
-
Dear Friends, Do anybody know how to create instance variable in ActiveX Control. Suppose my activeX control is called multiple times in the same web page then i need to store different value for each instnace in the same variable. If i declare one global variable then the last value is getting updated. Can anybody help me how to solve this. And I am using MFC ActiveX Control developed in Embedded VC++ 4.0 and target machine is Windows CE .NET. Thanks and Best Regards, Subbu, 2003/06/06 (14:24 JST).
-
Dear Friends, Do anybody know how to create instance variable in ActiveX Control. Suppose my activeX control is called multiple times in the same web page then i need to store different value for each instnace in the same variable. If i declare one global variable then the last value is getting updated. Can anybody help me how to solve this. And I am using MFC ActiveX Control developed in Embedded VC++ 4.0 and target machine is Windows CE .NET. Thanks and Best Regards, Subbu, 2003/06/06 (14:24 JST).
Dear Friends, Sorry for troubling you. I have got the answer. What i have done is declared the variable in the protected section of the ActiveX Control. That is inside ActiveX Controls header file(Some thing like **Ctl.h file). This solved my problem. Once again sorry for troubling you. Thanks and Best Regards, Subbu, 2003/06/06 (16:48 JST).