title: MASM dll memory allocation
body: <p>I need help with my MASM dll. I'm counting elements in array then I want to allocate memory for another array, in C I'm using vector.
  I  tried to use:</p>
  
  <pre><code>invoe GetProcessHeap
  invoke HeapAlloc, eax, HEAP_NO_SERIALIZE + HEAP_ZERO_MEMORY, &lt;size&gt;
  </code></pre>
  
  <p>or</p>
  
  <pre><code>invoke GlobalAlloc, GMEM_ZEROINIT, &lt;size&gt;
  mov tab, eax
  </code></pre>
  
  <p>but I'm getting errors <code>undefined symbol : GetProcessHeap</code> <code>undefined symbol : HeapAlloc</code></p>
  
  <p>I'm using this library in C# application.
  Can you show me example how can I dynamically allocate memory?</p>