   (C/C++) extern and arrays.
  Hi guys,I have a little problem. I have a global array of pointers to structs. I need this info in a window procedure located in another file. The definition is in file A:MyStruct* strAr[10];and the wndProc function in file B then has:extern MyStruct** strAr;But now I get a bunch of access violation errors, which I don't understand.However, this works:extern MyStruct* strAr[10];Why does the first extern declaration not work? Technically strAr is just a pointer to a pointer to the struct.Cheers,Brick   
Arrays are not pointers. They often decay to pointers, but there is an important distinction.   ;  Thanks! I thought that the compiler might be handling them differently. A good reference you posted in the link. Exactly what I needed.Cheers,Brick   