Missing strtok_s from MSVCRT.dll on Xp

This forum is about all development around libVLC.
tom.abcd
New Cone
New Cone
Posts: 7
Joined: 09 Aug 2016 22:18
Operating System: Windows

Missing strtok_s from MSVCRT.dll on Xp

Postby tom.abcd » 09 Aug 2016 22:45

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

Rémi Denis-Courmont
Developer
Developer
Posts: 15268
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Missing strtok_s from MSVCRT.dll on Xp

Postby Rémi Denis-Courmont » 10 Aug 2016 13:01

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
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

tom.abcd
New Cone
New Cone
Posts: 7
Joined: 09 Aug 2016 22:18
Operating System: Windows

Re: Missing strtok_s from MSVCRT.dll on Xp

Postby tom.abcd » 10 Aug 2016 15:58

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


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 24 guests