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. Mobile Development
  3. Mobile
  4. How to Create Instance variable in MFC ActiveX Control

How to Create Instance variable in MFC ActiveX Control

Scheduled Pinned Locked Moved Mobile
c++csharpcomhardwarehelp
2 Posts 1 Posters 3 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
    subramjobmail
    wrote on last edited by
    #1

    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).

    S 1 Reply Last reply
    0
    • S subramjobmail

      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).

      S Offline
      S Offline
      subramjobmail
      wrote on last edited by
      #2

      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).

      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