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. Why cann't I call GetWindowModuleFileName in my raw api App?

Why cann't I call GetWindowModuleFileName in my raw api App?

Scheduled Pinned Locked Moved C / C++ / MFC
jsonhelpquestion
5 Posts 4 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
    Aaron K B Huang
    wrote on last edited by
    #1

    I included windows.h file. When I compiled my program, I just got the message -- "error C2065: 'GetWindowModuleFileName' : undeclared identifier"!!!:confused: :confused: :confused: I read msdn over and over and have yet gotten confused. X|

    A N T 3 Replies Last reply
    0
    • A Aaron K B Huang

      I included windows.h file. When I compiled my program, I just got the message -- "error C2065: 'GetWindowModuleFileName' : undeclared identifier"!!!:confused: :confused: :confused: I read msdn over and over and have yet gotten confused. X|

      A Offline
      A Offline
      alex barylski
      wrote on last edited by
      #2

      Ignore that last message...tis not the answer your looking for... :-O "An expert is someone who has made all the mistakes in his or her field" - Niels Bohr

      1 Reply Last reply
      0
      • A Aaron K B Huang

        I included windows.h file. When I compiled my program, I just got the message -- "error C2065: 'GetWindowModuleFileName' : undeclared identifier"!!!:confused: :confused: :confused: I read msdn over and over and have yet gotten confused. X|

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

        It's declared in winuser.h But winuser.h is declared in windows.h I think. So open your winuser.h and search for GetWindowModuleFileName Nish

        My miniputt high is now 29 I do not think I can improve on that My temperament won't hold www.busterboy.org

        1 Reply Last reply
        0
        • A Aaron K B Huang

          I included windows.h file. When I compiled my program, I just got the message -- "error C2065: 'GetWindowModuleFileName' : undeclared identifier"!!!:confused: :confused: :confused: I read msdn over and over and have yet gotten confused. X|

          T Offline
          T Offline
          Tomasz Sowinski
          wrote on last edited by
          #4

          Try #including winable.h Tomasz Sowinski -- http://www.shooltz.com

          A 1 Reply Last reply
          0
          • T Tomasz Sowinski

            Try #including winable.h Tomasz Sowinski -- http://www.shooltz.com

            A Offline
            A Offline
            Aaron K B Huang
            wrote on last edited by
            #5

            To All: Thanks a lot! I solved it. :) To Tomasz Sowinski: You are right! Thanks anyway! :rose:

            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