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 of console application

HINSTANCE of console application

Scheduled Pinned Locked Moved C / C++ / MFC
4 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.
  • N Offline
    N Offline
    Nick Blumhardt
    wrote on last edited by
    #1

    Hi all, The service I'm writing (i.e., a console app) needs to load resources from its exe file- is this possible? How do I get the HINSTANCE of the module? Cheers, NickB

    L 2 Replies Last reply
    0
    • N Nick Blumhardt

      Hi all, The service I'm writing (i.e., a console app) needs to load resources from its exe file- is this possible? How do I get the HINSTANCE of the module? Cheers, NickB

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Use the line: HINSTANCE hInstance = ::GetModuleHandle(NULL);

      1 Reply Last reply
      0
      • N Nick Blumhardt

        Hi all, The service I'm writing (i.e., a console app) needs to load resources from its exe file- is this possible? How do I get the HINSTANCE of the module? Cheers, NickB

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Use the line: HINSTANCE hInstance = ::GetModuleHandle(NULL);

        N 1 Reply Last reply
        0
        • L Lost User

          Use the line: HINSTANCE hInstance = ::GetModuleHandle(NULL);

          N Offline
          N Offline
          Nick Blumhardt
          wrote on last edited by
          #4

          thanks, looks like I should have found that one :-O nb

          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