Internal inconsistency disabling succesful compiling ?

  • Arthur AGAPOFF

    Arthur AGAPOFF - 2013-07-22

    Please apologize, I'm new to a lot of things except writing programs in general.
    I wrote lots of C, very few CPP a very long time ago (more than 20 yrs).
    I just downloaded Dev-C++, looks great :)
    I tried to compile an existing Dev-C++ project, but I thought makefiles and so on were backwards compatible.
    Here is the error message I get, I think it's because of internal Dev-C++ files.
    But, if this is not related to Dev-C++ header files, which path should I follow to correct it?
    Thanks a lot for your support.

    invalid conversion from 'BOOL ()(HWND, UINT, WPARAM, LPARAM) {aka int ()(HWND, unsigned int, long long unsigned int, long long int)}' to 'DLGPROC {aka long long int ()(HWND*, unsigned int, long long unsigned int, long long int)}' [-fpermissive]
    In file included from d:\program files\dev-cpp\mingw64\bin../lib/gcc/x86_64-w64-mingw32/4.7.1/../../../../x86_64-w64-mingw32/include/windows.h:72:0,

  • Arthur AGAPOFF

    Arthur AGAPOFF - 2013-07-24

    Hi to all who read my silly question.
    The answer to my problem is that I thought every new version of a compiler should compile older projects like a charm.
    I just learnt that this not true.
    The problem was not in the compiler itself but merely in the new declaration format for the DlcProc callback function that Microsoft now wants to return an INT_PTR instead of the earlier BOOL value.
    MSDN is rather "consistent" on this point stating it should thnough return a true or a false. Yes, I'm laughing, Microsoft logic.

    Anyway the old project (2005) I was trying to compile needs a lot of other adjustments and is still not compiling under DEV-C++.
    I don't care much, for another forum member uploaded patches to make it compile under VC++ 2008.
    Yes, this is not the best solution for our free world, but I was just focusing on this project.
    I think I start newer ones with Orwell's one :)
    Thank you for reading.
    And sorry for the finally off topic question.


Log in to post a comment.