View Single Post
  #1 (permalink)  
Old September 21st, 2006, 05:56 PM
appleseed appleseed is offline
Registered User
 
Join Date: Sep 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default What's wrong with this code?

char* PutDataInMemory (const CString &rkcstrData)

{



int nDataSize = rkcstrData.GetLength();



char buffer[2000];

char *pdata = buffer;



for (int nCounter=0; nCounter < nDataSize; nCounter++)

{

pdata[nCounter] = rkcstrData.GetAt(nCounter);

}



return pdata;



}



Reply With Quote