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

    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.


  2. #2
    Arjay's Avatar
    Arjay is offline Moderator / MS MVP Power Poster
    Join Date
    Aug 2004

Posting Permissions

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

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.