>
>So far, so good. But you want to make sure that noone will ever change the
>value of "Alan Pinstein", right? And you'd like the compiler to enforce
>this. In this case, you want:
>
>void GetAlansConstName (void const** dataP)
>{
> (*dataP) = (void const *) "Alan Pinstein";
>}
>
>The declaration I mentioned (void * const *) was an example of what you did
>not want. Sorry it was not clear. I believe this declaration should work
>- let me know.
It does not work. It compiles, and allows this:
dbErrType DBGetCellData(DBOpenDBInfoType* gdb, UInt col, ULong row,
ULong* dataSize, void const ** dataP); //prototype
Byte* dataP; // access data read-only!
dbErr = DBGetCellData(gdb, col, row, &dataSize, (void**) &dataP);
Sorry..
alan