in the current package linking to any of CRTDLL.DLL MSVCRT.DLL, or LSCRTL.DLL results in runtime shutdown code not being executed, for example the following code which generates a file in a standalone program won't actually flush the file contents when linking with a DLL:
int main()
{
FILE *out = fopen("aa","w");
fprintf(out, "hello there\n");
return 0
}
in the current package linking to any of CRTDLL.DLL MSVCRT.DLL, or LSCRTL.DLL results in runtime shutdown code not being executed, for example the following code which generates a file in a standalone program won't actually flush the file contents when linking with a DLL: