Atm i write all the code of my test projects in just one cpp (the main cpp) file, which really suxx. I would like to have the main.cpp (creating windows/GUI and handling messages)... and have seperate .cpp files for all the FilterEffects, another .cpp for all the AdjustmentFunctions and so on.
How to use a buffer (storing image datas as 1D array) and access this buffer from FilterEffects.cpp and from AdjustFunctions.cpp?
I know this may be some very basic stuff but i would be really glad to get some teaching / help, how to realize this.

Atm i am using this way...
static long bufferColors[360 * 256];