Sign In
New User? Sign Up
tinycad
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
You can search the group for older messages.

Messages

  Messages Help
Advanced
TinyCad 2.60.01 Source + Visual C++ 2005   Message List  
Reply | Forward Message #591 of 1775 |
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!





Wed Nov 8, 2006 6:29 pm

floesselaal@...
Send Email Send Email

Forward
Message #591 of 1775 |
Expand Messages Author Sort by Date

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...
floesselaal
floesselaal@...
Send Email
Nov 9, 2006
8:32 am

I "fixed" these issues an now I'm down to 1 error in "void CTinyCadMultiDoc::InsertSheet(int i , CTinyCadDoc *pDoc )": the call...
b173026001
b173026001@...
Send Email
Dec 1, 2006
3:27 pm
Advanced

Copyright © 2009 Yahoo! UK. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help