CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2005
    Posts
    64

    HWND problem not understood?

    Guys,

    What is the following problem tells?
    MAXPOT.cpp(1228) : warning C4800: 'HWND' : forcing value to bool 'true' or 'false' (performance warning)

  2. #2
    Join Date
    Sep 2005
    Posts
    10

    Exclamation Re: HWND problem not understood?


  3. #3
    Join Date
    Feb 2005
    Posts
    64

    Re: HWND problem not understood?

    oops..

    i discovered that i try to do this

    Console::WriteLine(HWND);


    how can i print out the hwnd value into console?

  4. #4
    Join Date
    Oct 2002
    Location
    Timisoara, Romania
    Posts
    14,360

    Re: HWND problem not understood?

    Code:
    HWND hWnd = ...;
    Console::WriteLine("{0}", hWnd);
    or
    Code:
    Console::WriteLine("HWND value is {0}", hWnd);
    Marius Bancila
    Home Page
    My CodeGuru articles

    I do not offer technical support via PM or e-mail. Please use vbBulletin codes.

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