I need to solve it now, can't wait for 179 more days):
More info here.
In my console app I have this code:
void ProcessCDUData(PMDG_NGX_CDU_Screen *pS)
{
for (int i = 0; i < 14; i++) {
for (int j = 0; j < 24; j++) {
printf("%d ", (((pS)->Cells)[j])[i]);
}
printf("\n");
}
}
This is printing the correct text to the screen.
But, I need to change from printing to a console screen to a Window.
The problem is that the rather complex 2 dimentional structure ( see top of this thread)
make it difficult for me to find a way to store the data so I can send it to some Direct2D code
I have the correct Direct2D code. I have the correct code to get the data in the structure, but
I can't find a method to temporary store it before sending it to the Direct2D code.
I get this error
( " no suitable conversion function from "PMDG_NGX_CDU_Cell" to "unsigned char" exists)
when I change the
printf("%d ", (((pS)->Cells)[j])[i]);
}
printf("\n");
}
to
1 2 3 4 5 6 7 8 9 10
|
unsigned char cdu0[3];
void ProcessCDUData(PMDG_NGX_CDU_Screen *pS)
{
for (int i = 0; i < 14; i++) {
for (int j = 0; j < 24; j++) {
cdu0[3] = (((pS)->Cells)[j])[i]);
|
Here is a link that better visualy describe the complexity of the structures:
https://onedrive.live.com/redir?resid=C6D71753A7446334!102437&authkey=!AMwtgvFjQk16raM&v=3&ithint=photo%2cpng