Click here to Skip to main content
15,898,020 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Transparent Brush Pin
prasad_som29-Mar-07 3:15
prasad_som29-Mar-07 3:15 
GeneralUsing MFC dialogs in a dll [VS2005] Pin
benjymous28-Mar-07 23:26
benjymous28-Mar-07 23:26 
GeneralRe: Using MFC dialogs in a dll [VS2005] Pin
KarstenK29-Mar-07 1:10
mveKarstenK29-Mar-07 1:10 
GeneralRe: Using MFC dialogs in a dll [VS2005] Pin
benjymous29-Mar-07 2:58
benjymous29-Mar-07 2:58 
GeneralRe: Using MFC dialogs in a dll [VS2005] Pin
KarstenK29-Mar-07 3:11
mveKarstenK29-Mar-07 3:11 
GeneralRe: Using MFC dialogs in a dll [VS2005] Pin
benjymous29-Mar-07 3:25
benjymous29-Mar-07 3:25 
QuestionWhy? Pin
_808628-Mar-07 23:16
_808628-Mar-07 23:16 
AnswerRe: Why? Pin
Rohde28-Mar-07 23:26
Rohde28-Mar-07 23:26 
I've never seen such code before and don't know if it even compiles.

But it uses the conditional operator ( ?: ) in the return statement and continues to call the main method until i has been decremented below 0, and since the main method prints the value of i and the decrements it, the effect is to print 321.

Very bizarre code.







"When you have made evil the means of survival, do not expect men to remain good. Do not expect them to stay moral and lose their lives for the purpose of becoming the fodder of the immoral. Do not expect them to produce, when production is punished and looting rewarded. Do not ask, `Who is destroying the world?' You are."

-Atlas Shrugged, Ayn Rand

AnswerRe: Why? Pin
benjymous28-Mar-07 23:28
benjymous28-Mar-07 23:28 
GeneralRe: Why? Pin
_808629-Mar-07 0:51
_808629-Mar-07 0:51 
AnswerRe: Why? Pin
prasad_som28-Mar-07 23:29
prasad_som28-Mar-07 23:29 
AnswerRe: Why? Pin
toxcct28-Mar-07 23:30
toxcct28-Mar-07 23:30 
GeneralRe: Why? Pin
Eytukan29-Mar-07 1:34
Eytukan29-Mar-07 1:34 
GeneralRe: Why? Pin
toxcct29-Mar-07 2:13
toxcct29-Mar-07 2:13 
AnswerBecause... Pin
CPallini29-Mar-07 0:16
mveCPallini29-Mar-07 0:16 
Questionconnectivity of c++ with sql only Pin
p_28-Mar-07 22:29
p_28-Mar-07 22:29 
AnswerRe: connectivity of c++ with sql only Pin
prasad_som28-Mar-07 23:25
prasad_som28-Mar-07 23:25 
AnswerRe: connectivity of c++ with sql only Pin
Mark Salsbery29-Mar-07 7:05
Mark Salsbery29-Mar-07 7:05 
Questionget LAN speed using VC++/MFC Pin
sanjaylk28-Mar-07 22:25
sanjaylk28-Mar-07 22:25 
QuestionHow to Customize the IDE of Visual C++ Pin
poda28-Mar-07 22:16
poda28-Mar-07 22:16 
AnswerRe: How to Customize the IDE of Visual C++ Pin
prasad_som28-Mar-07 22:57
prasad_som28-Mar-07 22:57 
QuestionUpgrade VC++ Application to VC++.NET Pin
deepasaral28-Mar-07 22:13
deepasaral28-Mar-07 22:13 
AnswerRe: Upgrade VC++ Application to VC++.NET [modified] Pin
prasad_som28-Mar-07 22:50
prasad_som28-Mar-07 22:50 
GeneralRe: Upgrade VC++ Application to VC++.NET Pin
toxcct28-Mar-07 22:54
toxcct28-Mar-07 22:54 
GeneralRe: Upgrade VC++ Application to VC++.NET Pin
prasad_som28-Mar-07 22:56
prasad_som28-Mar-07 22:56 

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.