Click here to Skip to main content
14,928,185 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to open Internet Explorer on click of a menu item in a dialog based mfc app Pin
Dhiraj kumar Saini16-Sep-07 21:13
MemberDhiraj kumar Saini16-Sep-07 21:13 
AnswerRe: how to open Internet Explorer on click of a menu item in a dialog based mfc app Pin
GauranG Shah16-Sep-07 21:24
MemberGauranG Shah16-Sep-07 21:24 
GeneralRe: how to open Internet Explorer on click of a menu item in a dialog based mfc app Pin
Iain Clarke, Warrior Programmer17-Sep-07 2:55
MemberIain Clarke, Warrior Programmer17-Sep-07 2:55 
Questionstruct definition Pin
Waldermort16-Sep-07 20:03
MemberWaldermort16-Sep-07 20:03 
AnswerRe: struct definition Pin
Michael Dunn16-Sep-07 20:20
sitebuilderMichael Dunn16-Sep-07 20:20 
GeneralRe: struct definition Pin
Waldermort17-Sep-07 2:03
MemberWaldermort17-Sep-07 2:03 
GeneralRe: struct definition Pin
Iain Clarke, Warrior Programmer17-Sep-07 4:20
MemberIain Clarke, Warrior Programmer17-Sep-07 4:20 
AnswerRe: struct definition Pin
Randor 16-Sep-07 21:58
professional Randor 16-Sep-07 21:58 
I am having trouble understanding what it is your trying to accomplish, however I believe you want to manipulate the bits in these bytes indirectly without accessing struct members, although I can't imagine why you would want to do this. Perhaps you have a high performance application and are attempting to shave off a few operations in a critical function.

If speed is your goal, then you should work with the fastest datatype on a 32 bit operating system, sizeof(int). On a modern Intel Core 2 Duo the following function is the fastest, you should define bit masks in your application. The function does not generate any branching op codes, quite fast.

unsigned int bitset(unsigned int bits,unsigned int mask,bool flag)
{
	bits = (bits & ~mask) | (-flag & mask);
}


Best Wishes,
-Randor (David Delaune)
Questionhelp Pin
john563216-Sep-07 19:50
Memberjohn563216-Sep-07 19:50 
AnswerRe: help Pin
Hamid_RT16-Sep-07 21:56
MemberHamid_RT16-Sep-07 21:56 
QuestionStartService in vista Pin
samira forooghi16-Sep-07 19:39
Membersamira forooghi16-Sep-07 19:39 
AnswerRe: StartService in vista Pin
Hamid_RT16-Sep-07 21:59
MemberHamid_RT16-Sep-07 21:59 
AnswerRe: StartService in vista Pin
sudarshan12416-Sep-07 22:21
Membersudarshan12416-Sep-07 22:21 
AnswerRe: StartService in vista Pin
samira forooghi16-Sep-07 23:21
Membersamira forooghi16-Sep-07 23:21 
Question\\\\.\\ Pin
samira forooghi16-Sep-07 19:31
Membersamira forooghi16-Sep-07 19:31 
AnswerRe: \\\\.\\ Pin
Michael Dunn16-Sep-07 19:34
sitebuilderMichael Dunn16-Sep-07 19:34 
GeneralRe: \\\\.\\ Pin
samira forooghi16-Sep-07 19:46
Membersamira forooghi16-Sep-07 19:46 
AnswerRe: \\\\.\\ Pin
Hamid_RT16-Sep-07 22:24
MemberHamid_RT16-Sep-07 22:24 
QuestionProblem with RegEnumValue() Pin
GauranG Shah16-Sep-07 19:20
MemberGauranG Shah16-Sep-07 19:20 
AnswerRe: Problem with RegEnumValue() Pin
Roger Broomfield16-Sep-07 19:48
MemberRoger Broomfield16-Sep-07 19:48 
GeneralRe: Problem with RegEnumValue() Pin
GauranG Shah16-Sep-07 19:57
MemberGauranG Shah16-Sep-07 19:57 
QuestionIs there any way to let a process write some bytes to itself's PE file? Pin
samfromcn16-Sep-07 19:08
Membersamfromcn16-Sep-07 19:08 
AnswerRe: Is there any way to let a process write some bytes to itself's PE file? Pin
Waldermort16-Sep-07 20:11
MemberWaldermort16-Sep-07 20:11 
GeneralRe: Is there any way to let a process write some bytes to itself's PE file? Pin
samfromcn16-Sep-07 22:45
Membersamfromcn16-Sep-07 22:45 
GeneralRe: Is there any way to let a process write some bytes to itself's PE file? Pin
Waldermort17-Sep-07 4:06
MemberWaldermort17-Sep-07 4:06 

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.