LockSetForegroundWindow undeclared
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: LockSetForegroundWindow undeclared

  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 / MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    11,197

Posting Permissions

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


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center