I have very limited experience in C++ but. . . I have to figure out what a particular part of a Visual C++ v_6's source code is doing in order to mimic it in another language.
Code:// (the 2 lines below) I know these are variable declarations but they're still a bit foreign to me? WORD *pWord; WORD *pAppVal= (WORD *)&Buffer[3]; // I understand the three lines below this comment. buf[0]= 'H'; buf[1]= 'A'; buf[2]= 'P'; // I don't know what these four lines do? pWord= (WORD *) &buf[3]; *pWord++= *pAppVal; *pWord++= 0; *pWord++= 2 + strlen( pTestStr );




Reply With Quote