Yes but in C++ we use new and delete instead of malloc, calloc, and free.
So this:
Should be:Code:char* csource = reinterpret_cast<char*>(malloc(MAX_PATH));
And to clean upCode:char* csource = new char[MAX_PATH];
Code:delete [] csource;
Yes but in C++ we use new and delete instead of malloc, calloc, and free.
So this:
Should be:Code:char* csource = reinterpret_cast<char*>(malloc(MAX_PATH));
And to clean upCode:char* csource = new char[MAX_PATH];
Code:delete [] csource;
Woop?