DLL void DoSth(int *& pInt){ pInt =new int[10]; } Exe void Main(){ int * pArray=0; // invoke the DLL function DoSth(pArray); //this line will error delete[] pArray; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)