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. HINSTANCE inst = AfxGetInstanceHandle();

HINSTANCE inst = AfxGetInstanceHandle();

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

    執行這一行 HINSTANCE inst = AfxGetInstanceHandle(); 會停在 MFC\Include\AFXWIN1.INL _AFXWIN_INLINE HINSTANCE AFXAPI AfxGetInstanceHandle() { ASSERT(afxCurrentInstanceHandle != NULL); return afxCurrentInstanceHandle; } 好像afxCurrentInstanceHandle是NULL的關係 這是因為什麼原因? 是我少Call什麼Function嗎?(win32 application project)

    I 1 Reply Last reply
    0
    • A akirachen

      執行這一行 HINSTANCE inst = AfxGetInstanceHandle(); 會停在 MFC\Include\AFXWIN1.INL _AFXWIN_INLINE HINSTANCE AFXAPI AfxGetInstanceHandle() { ASSERT(afxCurrentInstanceHandle != NULL); return afxCurrentInstanceHandle; } 好像afxCurrentInstanceHandle是NULL的關係 這是因為什麼原因? 是我少Call什麼Function嗎?(win32 application project)

      I Offline
      I Offline
      Iain Clarke Warrior Programmer
      wrote on last edited by
      #2

      You are more likely to get an answer if you ask the question in English. Lots of people here can read bad english. Not as many people can read chinese. Try again! Iain.

      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