Click here to Skip to main content
15,904,877 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: pointers - not updated Pin
Mike Dimmick21-Sep-03 1:29
Mike Dimmick21-Sep-03 1:29 
GeneralRe: pointers - not updated Pin
Blake Miller22-Sep-03 11:54
Blake Miller22-Sep-03 11:54 
QuestionRemote machine Information??? Pin
maharsoft20-Sep-03 19:49
maharsoft20-Sep-03 19:49 
AnswerRe: Remote machine Information??? Pin
Blake Coverett20-Sep-03 19:59
Blake Coverett20-Sep-03 19:59 
GeneralAPI to capture Login event Pin
rohit.dhamija20-Sep-03 18:50
rohit.dhamija20-Sep-03 18:50 
GeneralRe: API to capture Login event Pin
Mike Dimmick21-Sep-03 1:39
Mike Dimmick21-Sep-03 1:39 
GeneralRe: API to capture Login event Pin
rohit.dhamija21-Sep-03 19:01
rohit.dhamija21-Sep-03 19:01 
GeneralVariant Access Pin
Sirrius20-Sep-03 18:37
Sirrius20-Sep-03 18:37 
Can somebody help me with getting my pointer declared correctly so I can access the unsigned int x in 2 byte pieces? The book I have is very vague on how I am supposed to go about. Not much for example code. But I think I am close.

Here ya go:

<pre>typedef struct
{
unsigned short int x;

} myStruct;



void main()
{
char c;
myStruct s;
s.x = 1;
((char *) &s.x)[0]; //subscript to read first byte
printf("%d\n",&s.x);

} </pre>
GeneralRe: Variant Access Pin
ZoogieZork21-Sep-03 8:00
ZoogieZork21-Sep-03 8:00 
GeneralRe: Variant Access Pin
Sirrius21-Sep-03 17:43
Sirrius21-Sep-03 17:43 
QuestionOld version of C++ 1.32...upgrade? Pin
Matthew Fuchs20-Sep-03 14:49
sussMatthew Fuchs20-Sep-03 14:49 
AnswerRe: Old version of C++ 1.32...upgrade? Pin
Ravi Bhavnani20-Sep-03 16:17
professionalRavi Bhavnani20-Sep-03 16:17 
AnswerRe: Old version of C++ 1.32...upgrade? Pin
David Crow20-Sep-03 16:51
David Crow20-Sep-03 16:51 
AnswerRe: Old version of C++ 1.32...upgrade? Pin
Michael Dunn20-Sep-03 17:23
sitebuilderMichael Dunn20-Sep-03 17:23 
GeneralC help Pin
Sirrius20-Sep-03 13:16
Sirrius20-Sep-03 13:16 
GeneralRe: C help Pin
Stefan Pedersen20-Sep-03 14:12
Stefan Pedersen20-Sep-03 14:12 
GeneralRe: C help Pin
Sirrius20-Sep-03 14:17
Sirrius20-Sep-03 14:17 
GeneralRe: C help Pin
Stefan Pedersen20-Sep-03 15:38
Stefan Pedersen20-Sep-03 15:38 
GeneralRe: C help Pin
Sirrius20-Sep-03 16:54
Sirrius20-Sep-03 16:54 
GeneralRe: C help Pin
ZoogieZork20-Sep-03 17:25
ZoogieZork20-Sep-03 17:25 
GeneralRe: C help Pin
Sirrius20-Sep-03 17:27
Sirrius20-Sep-03 17:27 
GeneralRe: C help Pin
David Crow20-Sep-03 16:57
David Crow20-Sep-03 16:57 
GeneralRe: C help Pin
Sirrius20-Sep-03 17:25
Sirrius20-Sep-03 17:25 
GeneralRe: C help Pin
Gary R. Wheeler21-Sep-03 2:30
Gary R. Wheeler21-Sep-03 2:30 
GeneralC++ Question. Pin
WREY20-Sep-03 11:57
WREY20-Sep-03 11:57 

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.