From: Jack on
Since I've moved one of my projects from VS2002 to VS2005, some of it could
no longer be compiled.

Here comes some snippets
PSTR p = buf;

ID id = m_TypeManager->getType(p);

where FirstType has one argument known as PSTR&
and buf is buf[30]; Even I change p to PSTR&, it still doesn't work

cannot convert parameter 1 from 'PSTR' to 'PCSTR &'

In VS2002, there was no problem, only in VS2005
I can't remember what I've learnt before, so can anyone refresh my
memory....
Thanks
Jack


From: Jack on

"Jack" <jl(a)knight.com> ���g��l��s�D:u2b6JuAuIHA.4560(a)TK2MSFTNGP03.phx.gbl...
> Since I've moved one of my projects from VS2002 to VS2005, some of it
> could no longer be compiled.
>
> Here comes some snippets
> PSTR p = buf;
>
> ID id = m_TypeManager->getType(p);
>
> where FirstType has one argument known as PSTR&

Sorry getType has one argument....

> and buf is buf[30]; Even I change p to PSTR&, it still doesn't work
>
> cannot convert parameter 1 from 'PSTR' to 'PCSTR &'
>
> In VS2002, there was no problem, only in VS2005
> I can't remember what I've learnt before, so can anyone refresh my
> memory....
> Thanks
> Jack
>


From: Jack on
OK, nothing. pls ignore
Thanks
Jack


 | 
Pages: 1
Prev: Multiple .c files and headers
Next: long double