title: C++ Win32 without C Runtime library dependency but with malloc, free atd
body: <p>I want to reduce size of my win32 applications programmed in MS Visual Studio C++ and I also want to have guaranteed compatibility on all Windows version (XP and upper without Visual C++ Redistributable Package). I used <code>/MT</code> and <code>/NODEFAULTLIB</code> parameter to reduce file size and get rid of C Run-Time library. But I lost access to functions like malloc, free, strcat, strstr, etc... What is the best approach to bypass this problem?</p>
  
  <p>I'm thinking about this alternatives:</p>
  
  <ol>
  <li>Use LoadLibrary("msvcrt.dll") and GetProcAddress() to dynamic load
  pointer to this functions from standard windows library</li>
  <li>Program this function by myself for example replace malloc with VirtualAlloc(),
  free with VirtualFree() etc..</li>
  </ol>
  
  <p>Or is it some other solution for my problem? Thank you</p>