Compiler error C2065 and _mbstowcsz
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: Compiler error C2065 and _mbstowcsz

Hybrid View

  1. #1
    Join Date
    May 2002
    Posts
    8

    Compiler error C2065 and _mbstowcsz

    Hi,

    When I convert a Visual C++ 6.0 project to Visual C++ .NET by opening the project using .NET environment, and accepting all VC 7.0 conversion defaults, the new project would not compile, and gives this error:

    Compiler error C2065: '_mbstowcsz': undeclared identifier.

    This functions compiles ok on VC++ 6.0.

    Since VC++6.0 and VC++.NET put this function in different locations, I did change the included path, and make it use Dynamic ATL since in VC++.NET this function is in atlmfc/include. But nothing works.

    Please help.

    Thanks.

  2. #2
    Join Date
    May 2000
    Location
    Toronto, ON, Canada
    Posts
    3,573
    Regards,

    Emanuel Vaduva

  3. #3
    Join Date
    May 2002
    Posts
    8
    Thanks, I tried to follow the instruction regarding wchar_t, but still doesn't work.

    The function has these parameters:
    in VC6.0++:
    int _mbstowcsz(wchar_t*, const char*, size_t) ;

    in VC++.NET:
    int _mbstowcsz(wchar_t*, const char*, ULONG) ;

    Could anyone please help...

  4. #4
    Join Date
    Aug 2001
    Location
    Israel
    Posts
    60

    Angry "_mbstowcsz".NET - Dazzed & Confused

    I have exactely the same problem
    the function "_mbstowcsz" is in cstringt.h(91)
    never compiled in .NET even when I include the
    h file. Why?

  5. #5
    Join Date
    Dec 2001
    Location
    Canada/Montreal
    Posts
    983
    Could somebody find the function VC7 ?

    Sonu
    Sonu [MVP, MCAD.NET]
    Website: http://DotNetSlackers.com

Posting Permissions

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


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center