MichalStrehovsky / SeeSharpSnake

Self-contained C# game in 8 kB
616 stars 63 forks source link

cant run on windows server 2008 r2 x64 #4

Closed sgf closed 4 years ago

sgf commented 4 years ago

cant run on windows server 2008 r2 x64

MichalStrehovsky commented 4 years ago

Is there a stack trace/error message?

sgf commented 4 years ago

nothing,just give me a error box. The application was unable to start correctly (0xc0000013), click ok to close the application. TIM图片20200117100914

TIM图片20200117101045

sgf commented 4 years ago

maybe because can't find api-ms-win-crt-string-l1-1-0.dll

TIM图片20200117101724

sgf commented 4 years ago

but im copy a dll from win10,even doesn't work. TIM图片20200117101959

cant find the entryPoint

MichalStrehovsky commented 4 years ago

Windows 10 comes with this preinstalled, but on old systems you need to get ucrt from Windows Update: get the DLL from the official place: https://support.microsoft.com/en-us/help/2999226/update-for-universal-c-runtime-in-windows

The other option is to link against msvcrt.dll, but import libraries for that were last distributed around Visual C++ 6.0. Try searching for msvcrt.lib on the internet and pass that to link.exe instead of ucrt.lib. msvcrt.dll has been inbox with Windows since forever.

sgf commented 4 years ago

ok,thank you