Click here to Skip to main content
15,917,454 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralProblems with Load C++ dll from Access VBA Pin
Wei Cheng8-Sep-04 10:32
Wei Cheng8-Sep-04 10:32 
GeneralCreating Visual Studio6.0 add-in Pin
Bob Stanneveld8-Sep-04 10:06
Bob Stanneveld8-Sep-04 10:06 
GeneralBrute Force Pin
RedDragon2k8-Sep-04 9:25
RedDragon2k8-Sep-04 9:25 
GeneralRe: Brute Force Pin
Chris Losinger8-Sep-04 9:27
professionalChris Losinger8-Sep-04 9:27 
GeneralBit stuff Pin
Timothy Grabrian8-Sep-04 8:50
professionalTimothy Grabrian8-Sep-04 8:50 
GeneralRe: Bit stuff Pin
Timothy Grabrian8-Sep-04 8:56
professionalTimothy Grabrian8-Sep-04 8:56 
GeneralRe: Bit stuff Pin
Chris Losinger8-Sep-04 9:24
professionalChris Losinger8-Sep-04 9:24 
GeneralRe: Bit stuff Pin
Bob Stanneveld8-Sep-04 9:50
Bob Stanneveld8-Sep-04 9:50 
Why would you define such macros?

If you want to test for a flag wheter it is set or not, a simple & is enough.

<br />
#define FLAG1 0x0001<br />
#define FLAG2 0x0002<br />
#define FLAGn n<br />
<br />
// test DWORD flags for FLAG1<br />
if( flags & FLAG1 )<br />
{<br />
  // do something flag specific<br />
}<br />
<br />
// if some flag bits overlap<br />
if( (flags & FLAG2) == FLAG2 )<br />


This way, you'll save some CPU cycles and you can define more flags Big Grin | :-D
GeneralRe: Bit stuff Pin
Chris Losinger8-Sep-04 10:07
professionalChris Losinger8-Sep-04 10:07 
GeneralRe: Bit stuff Pin
PJ Arends8-Sep-04 16:21
professionalPJ Arends8-Sep-04 16:21 
GeneralCDialog and taskkbar Pin
?!?8-Sep-04 8:19
?!?8-Sep-04 8:19 
GeneralMFC newbie question Pin
Anonymous8-Sep-04 8:14
Anonymous8-Sep-04 8:14 
GeneralRe: MFC newbie question Pin
David Crow8-Sep-04 9:05
David Crow8-Sep-04 9:05 
Generalincoming connection with ras api Pin
mark1828-Sep-04 6:55
mark1828-Sep-04 6:55 
QuestionHourglass Animation? Pin
Joel Holdsworth8-Sep-04 6:24
Joel Holdsworth8-Sep-04 6:24 
AnswerRe: Hourglass Animation? Pin
DRHuff8-Sep-04 6:48
DRHuff8-Sep-04 6:48 
GeneralRe: Hourglass Animation? Pin
Joel Holdsworth8-Sep-04 7:07
Joel Holdsworth8-Sep-04 7:07 
GeneralRe: Hourglass Animation? Pin
David Crow8-Sep-04 8:40
David Crow8-Sep-04 8:40 
AnswerRe: Hourglass Animation? Pin
Graham Bradshaw8-Sep-04 13:00
Graham Bradshaw8-Sep-04 13:00 
GeneralI've shown the dialog, now I can't interact with it. Pin
BlackDice8-Sep-04 6:16
BlackDice8-Sep-04 6:16 
GeneralWM_HSCROLL doesn't work on custom sliders Pin
Budric B.8-Sep-04 6:05
Budric B.8-Sep-04 6:05 
GeneralRe: WM_HSCROLL doesn't work on custom sliders Pin
Anonymous8-Sep-04 6:44
Anonymous8-Sep-04 6:44 
GeneralADO, Winsock, Client/Server Pin
Kudakwashe Mafutah8-Sep-04 5:58
Kudakwashe Mafutah8-Sep-04 5:58 
QuestionHow can I show a dialog on top of a screensaver? Pin
BlackDice8-Sep-04 4:20
BlackDice8-Sep-04 4:20 
GeneralSingle thread to multi-thread conversion problem Pin
vineas8-Sep-04 4:02
vineas8-Sep-04 4:02 

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.