Click here to Skip to main content
15,889,216 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How do I handle ... Pin
Stlan12-Jun-03 1:53
Stlan12-Jun-03 1:53 
GeneralRe: How do I handle ... Pin
Rage12-Jun-03 2:30
professionalRage12-Jun-03 2:30 
GeneralStrange Behavior of MessageLoop Pin
Muhammad Ahmed12-Jun-03 0:36
Muhammad Ahmed12-Jun-03 0:36 
GeneralSome tips on building a workspace please! Pin
tom7612-Jun-03 0:24
tom7612-Jun-03 0:24 
GeneralRe: Some tips on building a workspace please! Pin
David Crow12-Jun-03 2:55
David Crow12-Jun-03 2:55 
Generalround to next power of two Pin
peterchen11-Jun-03 23:23
peterchen11-Jun-03 23:23 
GeneralRe: round to next power of two Pin
Stlan11-Jun-03 23:53
Stlan11-Jun-03 23:53 
GeneralRe: round to next power of two Pin
cmk12-Jun-03 0:19
cmk12-Jun-03 0:19 
Try :

unsigned long RoundUpPow2( unsigned long x )
{
x = x - 1;
x = x | (x >> 1);
x = x | (x >> 2);
x = x | (x >> 4);
x = x | (x >> 8);
x = x | (x >>16);
return( x + 1 );
}

for x >= 2


...cmk
GeneralReal data type Pin
Jamshed Kumar Jivani11-Jun-03 22:28
sussJamshed Kumar Jivani11-Jun-03 22:28 
GeneralRe: Real data type Pin
BhaskarBora11-Jun-03 23:28
BhaskarBora11-Jun-03 23:28 
GeneralRe: Real data type Pin
RChin12-Jun-03 1:50
RChin12-Jun-03 1:50 
GeneralRe: Real data type Pin
David Crow12-Jun-03 2:48
David Crow12-Jun-03 2:48 
GeneralUrgent help needed Pin
vcseeker11-Jun-03 22:11
vcseeker11-Jun-03 22:11 
GeneralRe: Urgent help needed Pin
David Crow12-Jun-03 2:50
David Crow12-Jun-03 2:50 
GeneralRe: Urgent help needed Pin
basementman12-Jun-03 6:20
basementman12-Jun-03 6:20 
Generalerror C2065: 'GET_X_LPARAM' : undeclared identifier Pin
untwisted11-Jun-03 21:37
untwisted11-Jun-03 21:37 
GeneralRe: error C2065: 'GET_X_LPARAM' : undeclared identifier Pin
kochhar11-Jun-03 21:50
kochhar11-Jun-03 21:50 
GeneralRe: error C2065: 'GET_X_LPARAM' : undeclared identifier Pin
untwisted11-Jun-03 22:03
untwisted11-Jun-03 22:03 
GeneralRe: error C2065: 'GET_X_LPARAM' : undeclared identifier Pin
peterchen11-Jun-03 23:27
peterchen11-Jun-03 23:27 
GeneralRe: error C2065: 'GET_X_LPARAM' : undeclared identifier Pin
Rage12-Jun-03 0:59
professionalRage12-Jun-03 0:59 
GeneralRe: error C2065: 'GET_X_LPARAM' : undeclared identifier Pin
peterchen12-Jun-03 1:34
peterchen12-Jun-03 1:34 
GeneralAbout HDN_DIVIDERDBLCLICK Pin
anffernee11-Jun-03 19:58
anffernee11-Jun-03 19:58 
GeneralRe: About HDN_DIVIDERDBLCLICK Pin
basementman12-Jun-03 6:23
basementman12-Jun-03 6:23 
Generalxp look problems Pin
Tibor Blazko11-Jun-03 19:41
Tibor Blazko11-Jun-03 19:41 
Questioncontainers and inheritance??? Pin
Somaa11-Jun-03 19:14
Somaa11-Jun-03 19:14 

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.