Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Warning in Visual Studio 2008

2009-02-21
2013-05-28
  • Todor Totev
    Todor Totev
    2009-02-21

    Hello David,
    I'm using Win32++ 6.4.1 with 64bit Visual Studio 2008 and I get these warnings:

    \win32++\wincore.h(392) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
    \user_utils\win32++\wincore.h(415) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
    /Win32++/listview.h(648) : warning C4244: 'return' : conversion from 'LRESULT' to 'BOOL', possible loss of data

    They seem easy to fix and are harmless but anyway, I like my projects to build warning-free.

    Thnaks for Win32++, it's quite a pleasure working with it.

     
    • David
      David
      2009-02-22

      Hi,

      Thanks for bringing these to my attention. As you suggest, these warning can be safely ignored, but it would be better if they weren't displayed at all.  This will be fixed in the next release of Win32++.

      Best regards,
      David

       
    • Todor Totev
      Todor Totev
      2009-02-22

      I hoped for a fix more in the lines of changing the tipe of "len" to size_of because it's given to operator new anyway.

       
    • David
      David
      2009-02-23

      I agree, size_t is a more appropriate variable type than int in this case. I'll modify the code accordingly.