CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2011
    Posts
    1

    LockSetForegroundWindow undeclared

    I'm using LockSetForegroundWindow so that I can use SetForegroundWindow in my program.

    When I make the call to LockSetForegroundWindow(LSFW_UNLOCK) in WinMain after creating my window, the compiler tells me C:\ (...) error: `LSFW_UNLOCK' undeclared (first use this function)| and C:\ (...) error: `LockSetForegroundWindow' undeclared (first use this function). I included windows.h at the top of the program.

    This happens in Dev-C++ and Code::Blocks. I already tried reinstalling MinGW.


    Suggestions?

  2. #2
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured