Click here to Skip to main content
15,886,578 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: terminating worker threads Pin
baw25-Feb-06 4:20
baw25-Feb-06 4:20 
GeneralRe: terminating worker threads Pin
David Crow25-Feb-06 15:22
David Crow25-Feb-06 15:22 
QuestionEnum structure variables!! Pin
Hamed Musavi24-Feb-06 4:46
Hamed Musavi24-Feb-06 4:46 
AnswerRe: Enum structure variables!! Pin
toxcct24-Feb-06 4:58
toxcct24-Feb-06 4:58 
GeneralRe: Enum structure variables!! Pin
Hamed Musavi24-Feb-06 5:05
Hamed Musavi24-Feb-06 5:05 
GeneralRe: Enum structure variables!! Pin
toxcct24-Feb-06 5:12
toxcct24-Feb-06 5:12 
GeneralRe: Enum structure variables!! Pin
Maximilien24-Feb-06 5:19
Maximilien24-Feb-06 5:19 
GeneralRe: Enum structure variables!! Pin
Hamed Musavi24-Feb-06 5:25
Hamed Musavi24-Feb-06 5:25 
Mr. Toxcct:
Thankyou very much for your attention.

But I'm not that much begginer Wink | ;)

I am writing a class, it has a function that receives a pointer to an unknown structure. The class does not know what type of a structure, with how many data elements will be received.

I was thinking that if I have a pointer to a structure in the memory, and type or size of the first element, using sizeof I'll be able to get next elements.
if for example size of the first element = 2Bytes and st is the pointer, sizeof(st+2) will give me the second element size. I'll read from st+2 as much as this size, and I have the next variable.
I then thought that C, C++ compiler will save information about every variable in memory, so I might find an easier way to it.

now, Am I still failing? please say no!! Cry | :((

Big Grin | :-D Thank you very much againRose | [Rose]

//This is not a signature
while (I'm_alive) {
   printf("I Love Programming");
}
GeneralRe: Enum structure variables!! Pin
toxcct24-Feb-06 5:31
toxcct24-Feb-06 5:31 
GeneralRe: Enum structure variables!! Pin
Hamed Musavi24-Feb-06 5:35
Hamed Musavi24-Feb-06 5:35 
AnswerRe: Enum structure variables!! Pin
Maximilien24-Feb-06 5:15
Maximilien24-Feb-06 5:15 
AnswerRe: Enum structure variables!! Pin
ThatsAlok26-Feb-06 21:13
ThatsAlok26-Feb-06 21:13 
GeneralRe: Enum structure variables!! Pin
Hamed Musavi27-Feb-06 21:19
Hamed Musavi27-Feb-06 21:19 
QuestionCListCtrl Pin
Hamid_RT24-Feb-06 2:58
Hamid_RT24-Feb-06 2:58 
AnswerRe: CListCtrl Pin
David Crow24-Feb-06 3:03
David Crow24-Feb-06 3:03 
GeneralRe: CListCtrl Pin
Hamid_RT24-Feb-06 3:09
Hamid_RT24-Feb-06 3:09 
AnswerRe: CListCtrl Pin
James R. Twine24-Feb-06 3:09
James R. Twine24-Feb-06 3:09 
QuestionIOCP - when a socket is closed ? Pin
yani dzhurov24-Feb-06 2:41
yani dzhurov24-Feb-06 2:41 
AnswerRe: IOCP - when a socket is closed ? Pin
James R. Twine24-Feb-06 3:02
James R. Twine24-Feb-06 3:02 
GeneralRe: IOCP - when a socket is closed ? Pin
yani dzhurov24-Feb-06 3:39
yani dzhurov24-Feb-06 3:39 
GeneralRe: IOCP - when a socket is closed ? Pin
James R. Twine24-Feb-06 4:47
James R. Twine24-Feb-06 4:47 
GeneralRe: IOCP - when a socket is closed ? Pin
George Nistor1-Aug-09 22:11
George Nistor1-Aug-09 22:11 
QuestionResizing windows Pin
Waldermort24-Feb-06 2:30
Waldermort24-Feb-06 2:30 
AnswerRe: Resizing windows Pin
David Crow24-Feb-06 2:54
David Crow24-Feb-06 2:54 
GeneralRe: Resizing windows Pin
Waldermort24-Feb-06 3:47
Waldermort24-Feb-06 3:47 

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.