Click here to Skip to main content
15,881,559 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: list view / how do i force the vertical scrollbar? Pin
Waldermort24-Feb-06 8:47
Waldermort24-Feb-06 8:47 
GeneralRe: list view / how do i force the vertical scrollbar? Pin
Sebastian Pipping24-Feb-06 9:56
Sebastian Pipping24-Feb-06 9:56 
AnswerRe: list view / how do i force the vertical scrollbar? Pin
Sebastian Pipping13-Aug-06 3:12
Sebastian Pipping13-Aug-06 3:12 
Questionterminating worker threads Pin
baw24-Feb-06 6:51
baw24-Feb-06 6:51 
AnswerRe: terminating worker threads Pin
David Crow24-Feb-06 7:06
David Crow24-Feb-06 7:06 
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 
Hi,Smile | :)
In a class I receive a pointer to a structure, I want to find out how many variables, has this structure and also what are their types or sizes!

Somehow silly, I know. just curious to know if it is possible.OMG | :OMG: WTF | :WTF:

I receive the pointer as (void*), and need to place it's data in to 'a part of memory'with the same size as the structure!! then use each data separately!!Confused | :confused: ;P

example:
struct x {
     int a;
     int b;
}
<code>
struct x aVar;
read (&aVar);
...
...
</code>
void read(void* st)                  // a Function
{
  int nVal_cnt  =  ? ;            // How many variable does this struct have?
  int val1_size =  ? ;            // What is the size of the first variable
} 


//This is not a signature
while (I'm_alive) {
   printf("I Love Programming");
}

-- modified at 6:15 Saturday 25th February, 2006
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 
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 

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.