I am having problems while allocating memory in the below part of code when i am debugging and checking the value for szlines it is not having any value it is showing 0 the same piece of code works fine in visual studio c++ 6.0 but it is giving problems in visual stdio .net 2005 .I replaced the code with new operator but it is giving run time error as source code not available .Thanks.
char **szLines = NULL; // String
szLines = (char**) malloc (sizeof (char*));
szLines = (char*)malloc ((strlen (szToken) + 1) * sizeof (char));
szLines = '\0';