To get a pointer to your array you could do something like :-
Code:
char* ptr = &myarray[0];
Be extremely careful using that pointer though, as by accessiing your array this way, the compiler has no idea of its bounds.
Get Microsoft Visual C++ Express here or CodeBlocks here.
Get STLFilt here to radically improve error messages when using the STL.
Get these two can't live without C++ libraries, BOOST here and Loki here.
Check your code with the Comeau Compiler and FlexeLint for standards compliance and some subtle errors.
Always use [code] code tags [/code] to make code legible and preserve indentation.
Do not ask for help writing destructive software such as viruses, gamehacks, keyloggers and the suchlike.
It is not possible to declare variables of the same name twice.
You have already declared array 'myArray', if you want to declare a pointer to it, name it differently, e.g.
Code:
char *myArray_ptr = myArray;
Next time show the exact error message, line of code where the error is.
Bookmarks