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. Managed C++/CLI
  4. exception becouse of AfxGetInstanceHandle()

exception becouse of AfxGetInstanceHandle()

Scheduled Pinned Locked Moved Managed C++/CLI
comhelptutorial
3 Posts 3 Posters 5 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.
  • I Offline
    I Offline
    imran_rafique
    wrote on last edited by
    #1

    when i use that function (AfxGetInstanceHandle())in managed class i got an exception i do not know how to handle it plz help me. r00d0034@yahoo.com

    N 1 Reply Last reply
    0
    • I imran_rafique

      when i use that function (AfxGetInstanceHandle())in managed class i got an exception i do not know how to handle it plz help me. r00d0034@yahoo.com

      N Offline
      N Offline
      Nish Nishant
      wrote on last edited by
      #2

      Uhmmmm, what does it return? And since you seem to be using MFC from an MC++ app, have you initialized MFC? And are you actually sure that it does crash at exactly that point? Nish


      Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]

      A 1 Reply Last reply
      0
      • N Nish Nishant

        Uhmmmm, what does it return? And since you seem to be using MFC from an MC++ app, have you initialized MFC? And are you actually sure that it does crash at exactly that point? Nish


        Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]

        A Offline
        A Offline
        Anonymous
        wrote on last edited by
        #3

        first of let me tell u what i am tring to do . i am trying to convert a vc++ app into dot net.that program is related to mouse and keyboard hooks. it return HINSTANCE.i know what i do mostly. i did not initialize MFC from an MC++ app.plzz tell how to do it? yes it crash at exacetly that point.plzz help. may i use MFC DLL in managed code if yes then how? can u provide example related to that?

        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