Click here to Skip to main content
15,902,939 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to change the property of a modem connection in WINXP?(Problem with RAS) Pin
hizfp22-Nov-07 16:15
hizfp22-Nov-07 16:15 
QuestionPrint Edit control!!! Pin
Gofur Halmurat21-Nov-07 8:53
Gofur Halmurat21-Nov-07 8:53 
AnswerRe: Print Edit control!!! Pin
bob1697221-Nov-07 9:19
bob1697221-Nov-07 9:19 
AnswerRe: Print Edit control!!! Pin
Hamid_RT21-Nov-07 19:05
Hamid_RT21-Nov-07 19:05 
QuestionWhy do my Controls flicker ? (src incl.) Pin
abiemann21-Nov-07 7:44
abiemann21-Nov-07 7:44 
AnswerRe: Why do my Controls flicker ? (src incl.) Pin
Mark Salsbery21-Nov-07 9:49
Mark Salsbery21-Nov-07 9:49 
QuestionProject cache file of 42meg - deleting/denying Pin
syscwl21-Nov-07 4:41
syscwl21-Nov-07 4:41 
Generaltypedef tweak Pin
LiYS21-Nov-07 4:28
LiYS21-Nov-07 4:28 
typedef struct { 
   DWORD dwValue;
   BYTE  bDummy[1020]; 
} CELL, *PCELL;


typedef CELL SPREADSHEET[g_nNumRows][g_nNumCols];
typedef SPREADSHEET *PSPREADSHEET;


CELL* m_pArray = (CELL*) VirtualAlloc(NULL, g_nNumRows * g_nNumCols, 
      MEM_RESERVE | MEM_TOP_DOWN, PAGE_READWRITE);

SPREADSHEET& g_ss = * (PSPREADSHEET) m_pArray ;


The above code snippet avoid to explicitly allocate for "g_nNumRows" * "g_nNumCols" cells, right? But reading it makes my head spinning, I think most of it origin from "typedef CELL SPREADSHEET[g_nNumRows][g_nNumCols];". Some statements just don't make sense to me grammatically: Why the reference '&' is needed here? What exactly happened when "* (PSPREADSHEET) m_pArray" was executed.(I'm always wondering what happens when something is casted to a build in and user defined data type, I've seen casting from PVOID to PBYTE for pointer manipulations)


Thank,




GeneralRe: typedef tweak Pin
led mike21-Nov-07 4:40
led mike21-Nov-07 4:40 
GeneralRe: typedef tweak Pin
jhwurmbach21-Nov-07 6:15
jhwurmbach21-Nov-07 6:15 
GeneralRe: typedef tweak Pin
led mike21-Nov-07 6:33
led mike21-Nov-07 6:33 
GeneralRe: typedef tweak Pin
jhwurmbach21-Nov-07 6:37
jhwurmbach21-Nov-07 6:37 
GeneralRe: typedef tweak Pin
Mark Salsbery21-Nov-07 7:00
Mark Salsbery21-Nov-07 7:00 
GeneralRe: typedef tweak Pin
led mike21-Nov-07 9:01
led mike21-Nov-07 9:01 
GeneralRe: typedef tweak Pin
Mark Salsbery21-Nov-07 6:57
Mark Salsbery21-Nov-07 6:57 
AnswerRe: typedef tweak Pin
Nathan Holt at EMOM21-Nov-07 10:49
Nathan Holt at EMOM21-Nov-07 10:49 
GeneralRe: typedef tweak Pin
LiYS21-Nov-07 17:41
LiYS21-Nov-07 17:41 
QuestionDoes it take much time to do such a user interface? Pin
followait21-Nov-07 4:24
followait21-Nov-07 4:24 
AnswerRe: Does it take much time to do such a user interface? Pin
led mike21-Nov-07 4:35
led mike21-Nov-07 4:35 
GeneralRe: Does it take much time to do such a user interface? Pin
followait21-Nov-07 4:38
followait21-Nov-07 4:38 
GeneralRe: Does it take much time to do such a user interface? Pin
toxcct21-Nov-07 4:45
toxcct21-Nov-07 4:45 
JokeRe: Does it take much time to do such a user interface? Pin
Cedric Moonen21-Nov-07 4:47
Cedric Moonen21-Nov-07 4:47 
GeneralRe: Does it take much time to do such a user interface? Pin
followait21-Nov-07 15:40
followait21-Nov-07 15:40 
GeneralRe: Does it take much time to do such a user interface? Pin
toxcct21-Nov-07 21:15
toxcct21-Nov-07 21:15 
GeneralRe: Does it take much time to do such a user interface? Pin
Cedric Moonen21-Nov-07 4:45
Cedric Moonen21-Nov-07 4:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.