Click here to Skip to main content
15,916,318 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Sleep( ) Pin
ColinDavies8-Oct-01 17:49
ColinDavies8-Oct-01 17:49 
GeneralXP UI Registry settings Pin
Tim Smith8-Oct-01 12:26
Tim Smith8-Oct-01 12:26 
GeneralRe: XP UI Registry settings Pin
Tomasz Sowinski8-Oct-01 23:34
Tomasz Sowinski8-Oct-01 23:34 
GeneralRe: XP UI Registry settings Pin
Tim Smith9-Oct-01 2:01
Tim Smith9-Oct-01 2:01 
GeneralWMI problem, Query too slow Pin
Bill Wilson8-Oct-01 11:48
Bill Wilson8-Oct-01 11:48 
GeneralQuestion: Registering a new Document Template Pin
8-Oct-01 11:42
suss8-Oct-01 11:42 
GeneralDrawing question Pin
8-Oct-01 11:24
suss8-Oct-01 11:24 
QuestionWhat is this ':'? Pin
Sam C8-Oct-01 10:58
Sam C8-Oct-01 10:58 
Ok I know this might sound stupid but I have to find out. I have recently come across code that does this:

unsigned int len:4;


What does the semicolon signify? I have not seen this type of "shortcut" using C++. I have been scouring through all the literature I have on C++ and can't find it so in taking the chance of sounding stupid I must ask this question.

What is this signifying a value? Or is it a bit designation saying use 4 bits instead of 4 bytes to represent this value? Please help I am going crazy trying to figure this out...

btw, please refrain from answer that this is a semicolon Smile | :) I know many of you are urged to do so <g>.

Sam C
----
Systems Manager
Hospitality Marketing Associates
AnswerRe: What is this ':'? Pin
Chris Losinger8-Oct-01 11:09
professionalChris Losinger8-Oct-01 11:09 
GeneralRe: What is this ':'? Pin
Sam C8-Oct-01 12:14
Sam C8-Oct-01 12:14 
GeneralRe: What is this ':'? Pin
Chris Losinger8-Oct-01 12:32
professionalChris Losinger8-Oct-01 12:32 
GeneralRe: What is this ':'? Pin
Sam C8-Oct-01 13:09
Sam C8-Oct-01 13:09 
GeneralRe: What is this ':'? Pin
Chris Losinger8-Oct-01 15:29
professionalChris Losinger8-Oct-01 15:29 
GeneralRe: What is this ':'? Pin
Sam C8-Oct-01 16:23
Sam C8-Oct-01 16:23 
GeneralRe: What is this ':'? Pin
Chris Losinger9-Oct-01 1:31
professionalChris Losinger9-Oct-01 1:31 
GeneralRe: What is this ':'? Pin
Sam C9-Oct-01 3:51
Sam C9-Oct-01 3:51 
GeneralOLE drag and drop using MFC Pin
vgandhi8-Oct-01 10:45
vgandhi8-Oct-01 10:45 
GeneralSuperClass CListViewCtrl Pin
8-Oct-01 8:43
suss8-Oct-01 8:43 
GeneralRe: SuperClass CListViewCtrl Pin
Tomasz Sowinski8-Oct-01 8:53
Tomasz Sowinski8-Oct-01 8:53 
GeneralRe: SuperClass CListViewCtrl Pin
8-Oct-01 9:07
suss8-Oct-01 9:07 
GeneralRe: SuperClass CListViewCtrl Pin
Tomasz Sowinski8-Oct-01 9:17
Tomasz Sowinski8-Oct-01 9:17 
GeneralRe: SuperClass CListViewCtrl Pin
8-Oct-01 9:45
suss8-Oct-01 9:45 
GeneralADO question ... Pin
Hadi Rezaee8-Oct-01 8:31
Hadi Rezaee8-Oct-01 8:31 
GeneralRe: ADO question ... Pin
Brendan Tregear8-Oct-01 16:48
Brendan Tregear8-Oct-01 16:48 
GeneralROP Code Pin
8-Oct-01 8:24
suss8-Oct-01 8:24 

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.