Re: Error in CString

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



On Sep 25, 4:00 pm, "AliR \(VC++ MVP\)" <A...@xxxxxxxxxxxxx> wrote:
Quick fix would be to remove the Unicode flag from the project setting. The
real fix (if you want to keep unicode) is to change your char * to TCHAR *.

AliR.

"DBC User" <dbcu...@xxxxxxxxx> wrote in message

news:1190750841.097892.62410@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx



Hi,

I have a VS2003 C++ project that I converted into VS2005 (automatic)
and I got bunch of error during linking (no errors in compling) with
lib files, as I traced the linked libraries I found out that, some of
that are linked in VC 2.0 and those libs are no longer in use, so I
decided to refactor the project.
So I started the main project (MDC DLL) and started adding the
required C++ and h files in to the project. When I build my basic
project with only main modules I got almost 170 errors with following
description

error C2440: 'type cast' : cannot convert from 'CString' to 'const
char *'

When I compiled my automatic conversion project I didn't get any of
these errors. Could someone tell me am I missing any headers or
anything, if you need more information please let me know.

Thanks.- Hide quoted text -

- Show quoted text -

Thanks a bunch, yes that resolved it.

.



Relevant Pages

  • Re: Char Styles
    ... I've tried this one - doesn't do anything (maybe because it's not linking to ... Char Char, MWbody Char Char, etc. etc. ... That macro locks up my document and I end up ... Doug Robbins - Word MVP, ...
    (microsoft.public.word.vba.general)
  • Re: Address of function from shared library
    ... linking. ... char buf; ... Placing AESEncrypt inside libcrypto, ...
    (comp.unix.programmer)
  • Re: char* pname = "Harry"
    ... p = (char*) malloc; ... methods for linking C code written without regard to C++ arcane requirements, so there is never a reason to pervert the normal C idiom to "be usable with both C and C++." ... I thought we lost the trolls that kept beating this horse. ...
    (comp.lang.c)