CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8

Threaded View

  1. #1
    Join Date
    Aug 2000
    Location
    High on a hill in the Ohio valley
    Posts
    711

    Question Need Help Or Hints with _UNICODE conversion

    I am in the process of compiling in _UNICODE in order to display multi-languages in my program.

    When I first started this, I had about 500 compile errors (mostly needed _T() and put in some TCHAR for char).

    I am down to about the last 20 (pant...pant...) and this attached IMapi.cpp file is one of the problems I can't quite figure out. I use this for sending email through MAPI and it has some functions with LPCTSTR and LPTSTR params that don't work.

    Was wondering if some one could browse the attached .cpp and .h and give me some clues on fixing these errors for _UNICODE compile.

    thanks


    IMapi.cpp
    c:\projects\imapi.h(28) : error C2440: '=' : cannot convert from 'unsigned short *' to 'char *'
    Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    c:\projects\imapi.h(33) : error C2440: '=' : cannot convert from 'unsigned short *' to 'char *'
    Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    c:\projects\imapi.cpp(92) : error C2440: '=' : cannot convert from 'unsigned short *' to 'char *'
    Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    c:\projects\imapi.cpp(93) : error C2664: 'wcscpy' : cannot convert parameter 1 from 'char *' to 'unsigned short *'
    Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    c:\projects\imapi.cpp(108) : error C2440: '=' : cannot convert from 'unsigned short *' to 'char *'
    Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    c:\projects\imapi.cpp(109) : error C2664: 'wcscpy' : cannot convert parameter 1 from 'char *' to 'unsigned short *'
    Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    c:\projects\imapi.cpp(133) : error C2440: '=' : cannot convert from 'unsigned short *' to 'char *'
    Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    c:\projects\imapi.cpp(134) : error C2664: 'wcscpy' : cannot convert parameter 1 from 'char *' to 'unsigned short *'
    Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    c:\projects\imapi.cpp(138) : error C2440: '=' : cannot convert from 'unsigned short *' to 'char *'
    Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    c:\projects\imapi.cpp(139) : error C2664: 'wcscpy' : cannot convert parameter 1 from 'char *' to 'unsigned short *'
    Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    c:\projects\imapi.cpp(158) : error C2440: '=' : cannot convert from 'unsigned short *' to 'char *'
    Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    c:\projects\imapi.h(28) : error C2440: '=' : cannot convert from 'unsigned short *' to 'char *'
    Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    c:\projects\imapi.h(33) : error C2440: '=' : cannot convert from 'unsigned short *' to 'char *'
    Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured