M
MyCatAlex
Guest
I am butting my head against it. I defined a few memory blocks in one .cpp file specially for that created. There is also some code in that file that do one time filling the memory with various coefficients. Then I need to reference at least two of the blocks from another .cpp file. It creates numerous problems, either IntelliSense suggestions or a few compile errors. I wrapped the memory blocks into a structure like this.
struct commons{
float* ptr20[76800]; // will contain theta angles for all points (pixels) of the screen projection on the sphere.
float* ptr21[76800]; // will contain phi angles for all points (pixels) of the screen projection on the sphere.
float* ptr22[76800]; // will contain moderating coefficient, close to 1.0 at NP and diminishing to the periphery.
float* ptr23[76800]; // will contain amplitude of the light intensity in the pixels of the webcam (device.cpp)
} pcom;
If the explanation is clear, please show how this block should be referenced like for instance COMMON in FORTRAN.
Thanks, - MyCatAlex
Continue reading...
struct commons{
float* ptr20[76800]; // will contain theta angles for all points (pixels) of the screen projection on the sphere.
float* ptr21[76800]; // will contain phi angles for all points (pixels) of the screen projection on the sphere.
float* ptr22[76800]; // will contain moderating coefficient, close to 1.0 at NP and diminishing to the periphery.
float* ptr23[76800]; // will contain amplitude of the light intensity in the pixels of the webcam (device.cpp)
} pcom;
If the explanation is clear, please show how this block should be referenced like for instance COMMON in FORTRAN.
Thanks, - MyCatAlex
Continue reading...