Click here to Skip to main content
15,888,461 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Popup menu pops up in wrong place Pin
Daniel132419-Jan-04 0:51
Daniel132419-Jan-04 0:51 
GeneralRe: Popup menu pops up in wrong place Pin
фил21-Jan-04 4:50
фил21-Jan-04 4:50 
GeneralSetWaitableTimer Pin
Mikey_E18-Jan-04 10:23
professionalMikey_E18-Jan-04 10:23 
GeneralRe: SetWaitableTimer Pin
Mike Dimmick18-Jan-04 23:39
Mike Dimmick18-Jan-04 23:39 
GeneralRe: SetWaitableTimer Pin
Mikey_E19-Jan-04 10:17
professionalMikey_E19-Jan-04 10:17 
GeneralRe: CSleeperThread Pin
Clem8628-Mar-08 2:45
Clem8628-Mar-08 2:45 
QuestionCan My Window Receive Messages Pin
bitpusher18-Jan-04 9:40
bitpusher18-Jan-04 9:40 
Generalstructs Pin
[Anders]18-Jan-04 8:53
[Anders]18-Jan-04 8:53 
say i have a struct like this:
<br />
<br />
typedef struct {<br />
 char* text1;<br />
 char* text2;<br />
 ...<br />
 char* text25;<br />
}MYS,*PMYS;<br />

how can i access the struct like this?
<br />
PMYS pS=SomehowGetPtrToStruct();<br />
for (int i=0; i < MYS_TEXTCOUNT; i++)<br />
{<br />
char* text=pS[i];<br />
dosomething(text);<br />
}<br />


i dont want to get the items like this:
char* text=pS->text2;<br />


i also tried to do stuff like: char* text=pS+(sizeof(char*)*i); but i cant get it to workConfused | :confused:
GeneralRe: structs Pin
markkuk18-Jan-04 10:18
markkuk18-Jan-04 10:18 
GeneralRe: structs Pin
[Anders]18-Jan-04 11:23
[Anders]18-Jan-04 11:23 
GeneralRe: structs Pin
Ian Darling18-Jan-04 11:30
Ian Darling18-Jan-04 11:30 
GeneralMessage Closed Pin
18-Jan-04 11:37
[Anders]18-Jan-04 11:37 
GeneralRe: structs Pin
Ian Darling18-Jan-04 12:43
Ian Darling18-Jan-04 12:43 
GeneralRe: structs Pin
Jörgen Sigvardsson18-Jan-04 11:20
Jörgen Sigvardsson18-Jan-04 11:20 
GeneralRe: structs Pin
[Anders]18-Jan-04 12:37
[Anders]18-Jan-04 12:37 
GeneralRe: structs Pin
Rickard Andersson2018-Jan-04 12:18
Rickard Andersson2018-Jan-04 12:18 
GeneralRe: structs Pin
David Crow19-Jan-04 3:01
David Crow19-Jan-04 3:01 
GeneralMaths libraries Pin
Alexander M.,18-Jan-04 8:28
Alexander M.,18-Jan-04 8:28 
GeneralVC++ / ODBC / CSV files : how to perform UDDATE and DELETE statements Pin
Qadddd18-Jan-04 6:43
Qadddd18-Jan-04 6:43 
GeneralRe: VC++ / ODBC / CSV files : how to perform UDDATE and DELETE statements Pin
David Crow19-Jan-04 3:04
David Crow19-Jan-04 3:04 
GeneralRe: VC++ / ODBC / CSV files : how to perform UDDATE and DELETE statements Pin
Qadddd19-Jan-04 3:37
Qadddd19-Jan-04 3:37 
GeneralRe: VC++ / ODBC / CSV files : how to perform UDDATE and DELETE statements Pin
David Crow19-Jan-04 4:26
David Crow19-Jan-04 4:26 
GeneralA Fix for CHtmlView's flicker problem in VC7 Pin
John C. Davies18-Jan-04 6:17
John C. Davies18-Jan-04 6:17 
QuestionWhere to get the sound card drivers for Windows 2000 ? Pin
zhaopzhi18-Jan-04 1:57
zhaopzhi18-Jan-04 1:57 
AnswerRe: Where to get the sound card drivers for Windows 2000 ? Pin
Prakash Nadar18-Jan-04 3:52
Prakash Nadar18-Jan-04 3:52 

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.