lstrlenWInternal Link problems

I can't link to the lstrlenW, lstrcpyW series of functions. The application is not compiled as Unicode, it linked perfectly in VS .Net 2003.
Have the functions moved to a separate .lib

Thanks,
Flavio.

1>folder_shel.obj : error LNK2019: unresolved external symbol "int __stdcall lstrlenWInternal(wchar_t const *)" ( lstrlenWInternal@@YGHPB_W@Z) referenced in function "int __cdecl ocslen(wchar_t const *)" ( ocslen@@YAHPB_W@Z)



Answer this question

lstrlenWInternal Link problems

  • johnFromJersey

    The definition is in <wxutil.h>, included by <streams.h>, i.e. DirectShow (DirectX 9.0 SDK).
    Putting #undef lstrlenW after the include solved the problem.
    I have still many other link problems (see the post on STL and Boost) but at least one is solved.

    Thanks!

  • Daniel Chait

    The following works perfectly with VS2005B2 (either compiled as UNICODE or not):
    #include <windows.h>
    int main()
    {
      lstrlenW(L"");
      lstrlenA("");
    }

    I think you have some header which defines "lstrW to lstrWInternal!!


    Greetings
      Jochen

  • lstrlenWInternal Link problems