Click here to Skip to main content
16,007,885 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Creating a GUI in CVIEW Pin
18-Sep-01 6:46
suss18-Sep-01 6:46 
GeneralCMenu *pBitmap Pin
Braulio Dez18-Sep-01 4:06
Braulio Dez18-Sep-01 4:06 
GeneralRe: CMenu *pBitmap Pin
Tomasz Sowinski18-Sep-01 4:44
Tomasz Sowinski18-Sep-01 4:44 
GeneralToolbars Pin
SnapRick18-Sep-01 3:57
SnapRick18-Sep-01 3:57 
GeneralRe: Toolbars Pin
Tomasz Sowinski18-Sep-01 4:13
Tomasz Sowinski18-Sep-01 4:13 
General[Message Deleted] Pin
VladTheImpaler18-Sep-01 3:51
VladTheImpaler18-Sep-01 3:51 
GeneralRe: Two possiblities, which one is better Pin
Tomasz Sowinski18-Sep-01 4:04
Tomasz Sowinski18-Sep-01 4:04 
GeneralRe: Two possiblities, which one is better Pin
Joaquín M López Muñoz18-Sep-01 5:05
Joaquín M López Muñoz18-Sep-01 5:05 
Chances are it makes no difference which version you use, as probably the compiler redirects all returns inside a function to the same code stub. Anyway, you can always try to run a profile batch against your program to know (your VC++ comes with a profiler tool).
From the point of view of readability, my opinion is (in accordance with what others have said) that the first version is better: When you finally got to the main part of code all secondary scenarios are ruled out, and that makes it easier to concentrate on a smaller mental model of your problem. That's how my brain works at least. I guess this could make for an interesting discussion subject at the lounge.

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
General[Message Deleted] Pin
VladTheImpaler18-Sep-01 5:23
VladTheImpaler18-Sep-01 5:23 
GeneralRe: Two possiblities, which one is better Pin
Tomasz Sowinski18-Sep-01 9:56
Tomasz Sowinski18-Sep-01 9:56 
General[Message Deleted] Pin
VladTheImpaler19-Sep-01 13:24
VladTheImpaler19-Sep-01 13:24 
GeneralRe: Two possiblities, which one is better Pin
Tomasz Sowinski19-Sep-01 22:35
Tomasz Sowinski19-Sep-01 22:35 
General[Message Deleted] Pin
VladTheImpaler20-Sep-01 9:01
VladTheImpaler20-Sep-01 9:01 
GeneralRe: Two possiblities, which one is better Pin
Tomasz Sowinski20-Sep-01 9:06
Tomasz Sowinski20-Sep-01 9:06 
GeneralProblem with SendMessage called from DLL Pin
Naveed Anis18-Sep-01 3:08
Naveed Anis18-Sep-01 3:08 
Generalstarting help Pin
18-Sep-01 3:01
suss18-Sep-01 3:01 
GeneralRe: starting help Pin
Anders Molin18-Sep-01 6:33
professionalAnders Molin18-Sep-01 6:33 
Questionhow to get the method's address in the class? Pin
ac952_z_cn18-Sep-01 2:59
ac952_z_cn18-Sep-01 2:59 
AnswerRe: how to get the method's address in the class? Pin
Tomasz Sowinski18-Sep-01 3:15
Tomasz Sowinski18-Sep-01 3:15 
GeneralRe: how to get the method's address in the class? Pin
ac952_z_cn18-Sep-01 16:39
ac952_z_cn18-Sep-01 16:39 
AnswerRe: how to get the method's address in the class? Pin
Michael Dunn18-Sep-01 7:56
sitebuilderMichael Dunn18-Sep-01 7:56 
GeneralRe: how to get the method's address in the class? Pin
Tomasz Sowinski18-Sep-01 10:04
Tomasz Sowinski18-Sep-01 10:04 
GeneralResizing Controls Pin
AJ12318-Sep-01 2:08
AJ12318-Sep-01 2:08 
GeneralRe: Resizing Controls Pin
Tomasz Sowinski18-Sep-01 2:28
Tomasz Sowinski18-Sep-01 2:28 
GeneralRe: Resizing Controls Pin
Paul A. Howes18-Sep-01 3:02
Paul A. Howes18-Sep-01 3: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.