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

C / C++ / MFC

 
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 
Sirrius wrote:
Can somebody tell me what I am doing wrong what the correct syntax is for formatting your output in binary representation.
I have been using printf("%b\n",variable) like the the help files says in .NET but it just keeps outputing a b on the console.


You'll need to write a xxxToBinary() conversion routine. Then you can use printf("%s\n", ...) to output the result.

Sirrius wrote:
And does anyone know the correct syntax in C for packing your structures?

By default, structures are aligned on 8-byte boundaries. To align on some other boundary, such as 4 bytes, use:

#pragma pack(4)

before the structure/union is declared.


Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?

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 
GeneralRe: C++ Question. Pin
Neville Franks20-Sep-03 12:23
Neville Franks20-Sep-03 12:23 
GeneralRe: C++ Question. Pin
Mike Dimmick20-Sep-03 12:45
Mike Dimmick20-Sep-03 12:45 
GeneralRe: C++ Question. Pin
WREY20-Sep-03 17:51
WREY20-Sep-03 17:51 
GeneralRe: C++ Question. Pin
Neville Franks21-Sep-03 0:02
Neville Franks21-Sep-03 0:02 
GeneralRe: C++ Question. Pin
Rickard Andersson2021-Sep-03 0:49
Rickard Andersson2021-Sep-03 0:49 
GeneralRe: C++ Question. Pin
Mike Dimmick21-Sep-03 1:13
Mike Dimmick21-Sep-03 1:13 
GeneralRe: C++ Question. Pin
WREY21-Sep-03 9:55
WREY21-Sep-03 9:55 
GeneralRe: C++ Question. Pin
Anonymous21-Sep-03 1:19
Anonymous21-Sep-03 1:19 
GeneralRe: C++ Question. Pin
WREY21-Sep-03 9:23
WREY21-Sep-03 9:23 
GeneralWinsock WSANETWORKEVENTS Pin
mweiss20-Sep-03 9:26
mweiss20-Sep-03 9:26 
GeneralPop-up menu artifact Pin
Luis Mejia20-Sep-03 9:07
Luis Mejia20-Sep-03 9:07 
GeneralRegistry path from handle Pin
User 988520-Sep-03 7:55
User 988520-Sep-03 7:55 
GeneralRe: Registry path from handle Pin
David Crow20-Sep-03 17:01
David Crow20-Sep-03 17:01 
GeneralRe: Registry path from handle Pin
Jason Henderson20-Sep-03 17:54
Jason Henderson20-Sep-03 17:54 

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.