Click here to Skip to main content
15,911,035 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: creating dialogs in a loop Pin
K. Sushilkumar7-Dec-08 20:17
K. Sushilkumar7-Dec-08 20:17 
AnswerRe: creating dialogs in a loop Pin
Randor 7-Dec-08 20:16
professional Randor 7-Dec-08 20:16 
GeneralRe: creating dialogs in a loop Pin
K. Sushilkumar7-Dec-08 20:21
K. Sushilkumar7-Dec-08 20:21 
GeneralRe: creating dialogs in a loop Pin
KarstenK7-Dec-08 21:02
mveKarstenK7-Dec-08 21:02 
GeneralRe: creating dialogs in a loop Pin
K. Sushilkumar7-Dec-08 22:19
K. Sushilkumar7-Dec-08 22:19 
GeneralRe: creating dialogs in a loop Pin
Randor 7-Dec-08 21:28
professional Randor 7-Dec-08 21:28 
GeneralRe: creating dialogs in a loop Pin
K. Sushilkumar7-Dec-08 21:35
K. Sushilkumar7-Dec-08 21:35 
GeneralRe: creating dialogs in a loop Pin
Randor 7-Dec-08 22:38
professional Randor 7-Dec-08 22:38 
skmk1247 wrote:
But i was trying the same without using switch/if-else or any user defined function.
I feel that there may be any other means to achieve the problem.


Yes, there are other ways to accomplish the same thing. You could probably also use a complicated template scheme to accomplish the same thing but why go through all that trouble? Are you attempting this for educational purpose?

Templated code easily produces code bloat if used incorrectly. If you add a template function in the middle of that for-loop it will likely generate much larger code than directly accessing the struct member and generating conditional jump instructions which jmp directly into the class constructor.

There is nothing to gain here by using templated code to create dialogs.

Best Wishes,
-David Delaune
GeneralRe: creating dialogs in a loop Pin
K. Sushilkumar7-Dec-08 22:58
K. Sushilkumar7-Dec-08 22:58 
AnswerRe: creating dialogs in a loop Pin
Iain Clarke, Warrior Programmer8-Dec-08 0:42
Iain Clarke, Warrior Programmer8-Dec-08 0:42 
GeneralRe: creating dialogs in a loop Pin
K. Sushilkumar8-Dec-08 1:46
K. Sushilkumar8-Dec-08 1:46 
GeneralRe: creating dialogs in a loop Pin
Iain Clarke, Warrior Programmer8-Dec-08 2:11
Iain Clarke, Warrior Programmer8-Dec-08 2:11 
AnswerRe: creating dialogs in a loop Pin
David Crow8-Dec-08 3:51
David Crow8-Dec-08 3:51 
QuestionHook on a HWND Pin
Tony Pottier7-Dec-08 19:22
Tony Pottier7-Dec-08 19:22 
AnswerRe: Hook on a HWND Pin
Malli_S7-Dec-08 19:40
Malli_S7-Dec-08 19:40 
GeneralRe: Hook on a HWND Pin
Tony Pottier7-Dec-08 20:15
Tony Pottier7-Dec-08 20:15 
GeneralRe: Hook on a HWND Pin
Randor 7-Dec-08 20:34
professional Randor 7-Dec-08 20:34 
GeneralRe: Hook on a HWND Pin
Tony Pottier7-Dec-08 20:45
Tony Pottier7-Dec-08 20:45 
AnswerRe: Hook on a HWND Pin
Randor 7-Dec-08 19:49
professional Randor 7-Dec-08 19:49 
GeneralRe: Hook on a HWND Pin
Tony Pottier7-Dec-08 20:16
Tony Pottier7-Dec-08 20:16 
QuestionAccess system Folder Pin
john56327-Dec-08 18:59
john56327-Dec-08 18:59 
AnswerRe: Access system Folder Pin
enhzflep7-Dec-08 19:20
enhzflep7-Dec-08 19:20 
GeneralRe: Access system Folder Pin
john56328-Dec-08 0:09
john56328-Dec-08 0:09 
QuestionKeyboard Handlers Pin
prithaa7-Dec-08 18:19
prithaa7-Dec-08 18:19 
GeneralRe: Keyboard Handlers Pin
Malli_S7-Dec-08 20:02
Malli_S7-Dec-08 20: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.