Hi all,

I want to allocate memory in DLL and free this allocation in another 
application. Is it valid or not???? i.e.


DLL:

void GetText (char * & text)
{
       text = new char[1000];
      .......
}

EXE:

void main()
{
  char * txt = NULL;
  pGetText(txt);
  if(txt)
     delete [] txt;
    
}



      

[Non-text portions of this message have been removed]

Reply via email to