Group: Moderators
Posts: 732
Member No.: 773
Joined: 10-November 04
in fact there are just 1 (2 similar) error and 2 warnings (6 similar).
1. 1st Warning: warning C4244: 'return' : conversion from 'const time_t' to 'LONG_PTR', possible loss of data
That's why I dislike C++ in asm there is just DWORD and in C there are many types, but in fact they are also DWORDS in memory you can use reinterpret_cast or such
Group: Moderators
Posts: 725
Member No.: 11
Joined: 16-May 04
Thanks for the response Jupiter.
I wasn't worried about the warnings, and probably shouldn't have posted them.
The errors however keep me from compiling and I am so ignorant of C that I don't see how to fix them. I inserted "int" in a few places in the offending lines but that only made the errors worse. How do I fix the line-
{ return ((HMENU) menu) == m_hMenu; }
to solve the error
C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\mfc\afxwin1.inl(1034) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int ?
It says right in the error statement that "C++ does not support default-int".
Group: Moderators
Posts: 725
Member No.: 11
Joined: 16-May 04
Never mind everyone. I finally figured out how to solve those two errors, and in the next build I got about 20 pages of errors. Clearly C++ express is not the thing to use. I'm deleting everything and giving up.