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. Difference between Instance and Context

Difference between Instance and Context

Scheduled Pinned Locked Moved C / C++ / MFC
question
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.
  • B Offline
    B Offline
    badal_akr
    wrote on last edited by
    #1

    Hi guys i sometime get confuse in this? What is the difference between Instance and Context. And how two different instances for the same application work. What are the responsibilities of the OS two maintain the two different instance. What is the responsibility of the Application developer. Thanks in advance. Anil Kumar

    T 1 Reply Last reply
    0
    • B badal_akr

      Hi guys i sometime get confuse in this? What is the difference between Instance and Context. And how two different instances for the same application work. What are the responsibilities of the OS two maintain the two different instance. What is the responsibility of the Application developer. Thanks in advance. Anil Kumar

      T Offline
      T Offline
      toxcct
      wrote on last edited by
      #2

      an instance is a representation in memory of a particuliar type (class, struct, union, native type). when you write int i1 = 4, i2 = 5;, i1 and i2 are 2 instances of an int. the context is all that can interract with the program and affect the behavior of it (variables values, thread states...)


      TOXCCT >>> GEII power
      [toxcct][VisualCalc]

      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