Hi,
I use TinyCad for a while (great thing! does what I need) and thought
I'd grap the 2.60.01 source and VC++ 2005 and try to fix one bug I
encountered. So here I am now...
VC++ moaned about following issues (not the real error texts, if you
wonder):
for( int i=0; ...... ) { ..... };
for(i=0; ..... ) { .... };
=> The 2nd "i" is not defined. Some C++-compilers may allow that but
it is no "real" C++ (afaik).
CRegistry::Set( CString sKey, WORD nVal ) { Set( nVal, sKey ); }
=> No appropriate overloaded Set() found that could be called.
I replaced it with: "SetValueEx( sKey, REG_DWORD, &nVal, sizeof( nVal
) );"
TCHAR* ext = _tcsrchr(filename,'.');
=> Non-const Pointer into a const array ("filename") is not allowed.
Adding a "const" made it compile.
const WM_WINMGR = RegisterWindowMessage(_T("WM_WINMGR"));
=> No implicit types in C++. Here I used "const UINT WM_WINMGR".
I "fixed" these issues an now I'm down to 1 error in
"void CTinyCadMultiDoc::InsertSheet(int i , CTinyCadDoc *pDoc )":
the call "m_sheets.insert(&m_sheets[i+1], pDoc );" is not accepted by
VC++. It refuses to convert "CTinyCadDoc **" (what &m_sheets[i+1] is)
into "std::_Vector_iterator<_Ty,_Alloc>".
Any ideas why and how to make it compile?
Anyway thanks for your time and TinyCad!