This is the fisrt time ever that I post a question on the net.
The code is in C. I don't know C++.
I'm trying to pass a array of "char* pTab[NBR_LINE]" to a function, copy strings from a text file in the array "ReadListFile()". And then use the array of strings in other functions.
I have asked people, looked on the net, and looked in C in a nutshell (page.135).
I have two problems:
1) strcpy(*pTab+i,line); //access violation
2) Can't access the strings back in the main, if I do *pTab[i] = line
It might be because you are referencing a variable that belongs to main.
Try moving your definition of pTab outside of main (I.E. at the global scope).. right above main will do
Let us know if that doesn't work.
Also, next time you post (on any codeing forum, not just this one), be sure to use the code tags when posting code.