Page 1 of 1

Missing strtok_s from MSVCRT.dll on Xp

Posted: 09 Aug 2016 22:45
by tom.abcd
I am working on a app that uses the libvlc.dlls and have a problem on XP. ( works fine on Win7)
In my code when I run this function:
// create new vlc instance
vlcInstance := libvlc_new(0, nil);
I get two different errors. (If I say ok to the errors and go on the video does show.)

1. The procedure entry point strtok_s could not be located in the dynamic link library msvcrt.dll

2. The procedure entry point InitOnceExecuteOnce could not be located in the dynamic link library kernel32.dll

I can however run the VLC app on the XP PC with no errors. My app uses the same libvlc dlls as the VLC app.
So am I missing some option for the libvlc_new call for it to work on XP without errors?

Thanks
Tom

Re: Missing strtok_s from MSVCRT.dll on Xp

Posted: 10 Aug 2016 13:01
by RĂ©mi Denis-Courmont
Best guess, you did not read the official libvlc_new() documentation, or did not follow the instructions there.

It's an not accident that the Libvlc Doxygen is the first link on this very forum... http://www.videolan.org/developers/vlc/ ... _core.html

Re: Missing strtok_s from MSVCRT.dll on Xp

Posted: 10 Aug 2016 15:58
by tom.abcd
I did look through the documentation but missed the fact that I had to do the
SetErrorMode(SEM_FAILCRITICALERRORS) for XP since the doc just mentioned Vista/2008. (Sorry)

Thanks
Tom