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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. GetAncestor api in VC++ 6

GetAncestor api in VC++ 6

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpjson
4 Posts 2 Posters 1 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.
  • V Offline
    V Offline
    vladimir_india
    wrote on last edited by
    #1

    I'm unable to call the Win32 pai GetAncestor in a VC++ project. While other win32 API's like GetPaernt dont have any problem. The error that comes is: G:\VC++ progs\venom\venom.cpp(89) : error C2039: 'GetAncestor' : is not a member of '`global namespace'' G:\VC++ progs\venom\venom.cpp(89) : error C2065: 'GetAncestor' : undeclared identifier I call it as : GetAncestor(hwnd,1);//GA_PARENT = 1 -Vladimir India

    J 1 Reply Last reply
    0
    • V vladimir_india

      I'm unable to call the Win32 pai GetAncestor in a VC++ project. While other win32 API's like GetPaernt dont have any problem. The error that comes is: G:\VC++ progs\venom\venom.cpp(89) : error C2039: 'GetAncestor' : is not a member of '`global namespace'' G:\VC++ progs\venom\venom.cpp(89) : error C2065: 'GetAncestor' : undeclared identifier I call it as : GetAncestor(hwnd,1);//GA_PARENT = 1 -Vladimir India

      J Offline
      J Offline
      jmkhael
      wrote on last edited by
      #2

      Try to include Winuser.h Papa while (TRUE) Papa.WillLove ( Bebe ) ;

      V 1 Reply Last reply
      0
      • J jmkhael

        Try to include Winuser.h Papa while (TRUE) Papa.WillLove ( Bebe ) ;

        V Offline
        V Offline
        vladimir_india
        wrote on last edited by
        #3

        Hi! Including winuser.h has got no effect. I still am not able to compile it! I tried it on both win2000 and win98,... Can you please try calling it and see... Thanks! -Vladimir India

        V 1 Reply Last reply
        0
        • V vladimir_india

          Hi! Including winuser.h has got no effect. I still am not able to compile it! I tried it on both win2000 and win98,... Can you please try calling it and see... Thanks! -Vladimir India

          V Offline
          V Offline
          vladimir_india
          wrote on last edited by
          #4

          HI! well, it me replying me...Nooo! its for others..for i got an alternate of the problem.. I called the function right from the dll, using LoadLibrary call and then GetProcAddress . But still, The main question persists. Anybody having any clue??? -Vladimir India

          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