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. Need AfxFindResourceHandle method on Win32 API

Need AfxFindResourceHandle method on Win32 API

Scheduled Pinned Locked Moved C / C++ / MFC
c++jsontutoriallearning
5 Posts 3 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.
  • E Offline
    E Offline
    Eugene Pustovoyt
    wrote on last edited by
    #1

    Than is possible to replace MFC method AfxFindResourceHandle not resorting to MFC, for example on Win32 API. I need a method for load a resource from app and/or DLL. Best regards, Eugene Pustovoyt

    D N 2 Replies Last reply
    0
    • E Eugene Pustovoyt

      Than is possible to replace MFC method AfxFindResourceHandle not resorting to MFC, for example on Win32 API. I need a method for load a resource from app and/or DLL. Best regards, Eugene Pustovoyt

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      Have you looked at AfxFindResourceHandle() in dllinit.cpp to see what it is doing?


      "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

      E 1 Reply Last reply
      0
      • D David Crow

        Have you looked at AfxFindResourceHandle() in dllinit.cpp to see what it is doing?


        "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

        E Offline
        E Offline
        Eugene Pustovoyt
        wrote on last edited by
        #3

        Do you see this code? :) AfxFindResourceHandle() method in dllinit.cpp has a few other MFC methods. What I must rewrite all this methods? Best regards, Eugene Pustovoyt

        D 1 Reply Last reply
        0
        • E Eugene Pustovoyt

          Do you see this code? :) AfxFindResourceHandle() method in dllinit.cpp has a few other MFC methods. What I must rewrite all this methods? Best regards, Eugene Pustovoyt

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          Eugene Pustovoyt wrote: Do you see this code? Of course. That's why I suggested the exercise. What you should have noticed, however, is that AfxFindResourceHandle() is nothing more than a fancy wrapper around FindResource().


          "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

          1 Reply Last reply
          0
          • E Eugene Pustovoyt

            Than is possible to replace MFC method AfxFindResourceHandle not resorting to MFC, for example on Win32 API. I need a method for load a resource from app and/or DLL. Best regards, Eugene Pustovoyt

            N Offline
            N Offline
            Neville Franks
            wrote on last edited by
            #5

            From memory you just need to specify the hInstance of the EXE/DLL where the Resource lives. Neville Franks, Author of ED for Windows www.getsoft.com and Surfulater www.surfulater.com "Save what you Surf"

            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