Click here to Skip to main content
15,911,531 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to call a Dll Pin
nyeboy7-Jan-09 21:16
nyeboy7-Jan-09 21:16 
Questionstruct definition with : Pin
KASR16-Jan-09 18:20
KASR16-Jan-09 18:20 
AnswerRe: struct definition with : Pin
«_Superman_»6-Jan-09 18:48
professional«_Superman_»6-Jan-09 18:48 
GeneralRe: struct definition with : Pin
KASR16-Jan-09 19:09
KASR16-Jan-09 19:09 
AnswerRe: struct definition with : [modified] Pin
«_Superman_»6-Jan-09 19:15
professional«_Superman_»6-Jan-09 19:15 
GeneralRe: struct definition with : Pin
Stuart Dootson7-Jan-09 1:42
professionalStuart Dootson7-Jan-09 1:42 
AnswerRe: struct definition with : Pin
Randor 6-Jan-09 19:26
professional Randor 6-Jan-09 19:26 
AnswerRe: struct definition with : Pin
John R. Shaw7-Jan-09 6:32
John R. Shaw7-Jan-09 6:32 
KASR1 wrote:
what does the declaration (:8, :3, :1, etc.,) mean in the folowing struct?


They are the number of bits assigned to each field. The author wanted to store the data in 2 bytes (unsigned short) and specify names for each set of bits within those bytes. This is normally considered non-portable (but legal) C-Code. There are other more portatable ways of doing the same thing, but they require a little more work by the programmer.

Note that they defined exactly 16-bits; if they had specified just one more bit, it would changed the memory block size to 32-bits (unsigned int = 4 bytes on 32-bit compilers) unless some compiler specific flag was set to compact it to single by boundries.

INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra

QuestionHow to read unicode text files Pin
PS@Codeproj6-Jan-09 17:39
PS@Codeproj6-Jan-09 17:39 
AnswerRe: How to read unicode text files Pin
«_Superman_»6-Jan-09 17:51
professional«_Superman_»6-Jan-09 17:51 
AnswerRe: How to read unicode text files Pin
John R. Shaw7-Jan-09 6:59
John R. Shaw7-Jan-09 6:59 
QuestionCAtlRegEx Unhandled Exception Pin
dehseth6-Jan-09 4:45
dehseth6-Jan-09 4:45 
AnswerRe: CAtlRegEx Unhandled Exception Pin
JaydeepB6-Jan-09 8:47
JaydeepB6-Jan-09 8:47 
QuestionMFC Dialog application Pin
bhanu_85096-Jan-09 3:55
bhanu_85096-Jan-09 3:55 
AnswerRe: MFC Dialog application Pin
CPallini6-Jan-09 4:07
mveCPallini6-Jan-09 4:07 
GeneralRe: MFC Dialog application Pin
bhanu_85096-Jan-09 23:14
bhanu_85096-Jan-09 23:14 
GeneralRe: MFC Dialog application Pin
CPallini6-Jan-09 23:51
mveCPallini6-Jan-09 23:51 
AnswerRe: MFC Dialog application Pin
Rajesh R Subramanian6-Jan-09 4:40
professionalRajesh R Subramanian6-Jan-09 4:40 
JokeRe: MFC Dialog application Pin
CPallini6-Jan-09 5:19
mveCPallini6-Jan-09 5:19 
GeneralRe: MFC Dialog application Pin
Rajesh R Subramanian7-Jan-09 4:16
professionalRajesh R Subramanian7-Jan-09 4:16 
GeneralRe: MFC Dialog application Pin
CPallini7-Jan-09 6:05
mveCPallini7-Jan-09 6:05 
AnswerRe: MFC Dialog application Pin
led mike6-Jan-09 4:56
led mike6-Jan-09 4:56 
GeneralRe: MFC Dialog application Pin
Nemanja Trifunovic6-Jan-09 6:15
Nemanja Trifunovic6-Jan-09 6:15 
GeneralRe: MFC Dialog application Pin
CPallini6-Jan-09 6:23
mveCPallini6-Jan-09 6:23 
Questionhow to detect the number key in MFC? Pin
Kingis6-Jan-09 2:46
Kingis6-Jan-09 2:46 

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.