Click here to Skip to main content
15,909,030 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionUsing wxWidgets.... Pin
anna mathew20-Nov-08 23:40
anna mathew20-Nov-08 23:40 
AnswerRe: Using wxWidgets.... Pin
Cedric Moonen21-Nov-08 0:11
Cedric Moonen21-Nov-08 0:11 
GeneralRe: Using wxWidgets.... Pin
JudyL_MD21-Nov-08 3:48
JudyL_MD21-Nov-08 3:48 
QuestionEasy questions about C++ [modified] Pin
akirilov20-Nov-08 23:34
akirilov20-Nov-08 23:34 
AnswerRe: Easy questions about C++ Pin
Cedric Moonen20-Nov-08 23:58
Cedric Moonen20-Nov-08 23:58 
GeneralRe: Easy questions about C++ Pin
akirilov21-Nov-08 0:16
akirilov21-Nov-08 0:16 
GeneralRe: Easy questions about C++ Pin
Maximilien21-Nov-08 0:43
Maximilien21-Nov-08 0:43 
GeneralRe: Easy questions about C++ Pin
Cedric Moonen21-Nov-08 1:04
Cedric Moonen21-Nov-08 1:04 
akirilov wrote:
Invoking methods is slow.


As a famous guy already said: "Premature optimization is the root of all evil". What it means here is that you try to have only optimization in mind even when it makes your code less readable or maintainable. Unless your function has to be called very often and is in a time critical part of your code, I think you can forget about the performances (and you can also rely on your compiler for a bit of optimizations).
If I take your way of thinking to the extreme, you can end up with one gigantic main function because you never wanted to make function calls...


akirilov wrote:
Anyway could you share a code fragment that will do the trick (with pointers) (if possible with int)?


I think you should learn that because it provides type safety which is not the case when working with ints containing an address. What kind of data are you manipulating ? An array of ints ?

Cédric Moonen
Software developer

Charting control [v1.5]
OpenGL game tutorial in C++

AnswerRe: Easy questions about C++ Pin
Code-o-mat21-Nov-08 0:06
Code-o-mat21-Nov-08 0:06 
GeneralRe: Easy questions about C++ Pin
akirilov21-Nov-08 0:22
akirilov21-Nov-08 0:22 
GeneralRe: Easy questions about C++ [modified] Pin
Code-o-mat21-Nov-08 0:29
Code-o-mat21-Nov-08 0:29 
GeneralRe: Easy questions about C++ Pin
akirilov21-Nov-08 4:17
akirilov21-Nov-08 4:17 
GeneralRe: Easy questions about C++ Pin
Code-o-mat21-Nov-08 6:23
Code-o-mat21-Nov-08 6:23 
GeneralRe: Easy questions about C++ Pin
bulg21-Nov-08 12:59
bulg21-Nov-08 12:59 
GeneralConfusions related to Dll. Pin
Nilesh Hamane20-Nov-08 23:34
Nilesh Hamane20-Nov-08 23:34 
GeneralRe: Confusions related to Dll. Pin
SandipG 20-Nov-08 23:50
SandipG 20-Nov-08 23:50 
GeneralRe: Confusions related to Dll. Pin
tasumisra21-Nov-08 1:14
tasumisra21-Nov-08 1:14 
GeneralRe: Confusions related to Dll. Pin
22491721-Nov-08 15:41
22491721-Nov-08 15:41 
QuestionDelete Shortcut file Pin
MsmVc20-Nov-08 22:11
MsmVc20-Nov-08 22:11 
AnswerRe: Delete Shortcut file Pin
Chandrasekharan P20-Nov-08 22:19
Chandrasekharan P20-Nov-08 22:19 
GeneralRe: Delete Shortcut file Pin
MsmVc20-Nov-08 22:29
MsmVc20-Nov-08 22:29 
AnswerRe: Delete Shortcut file Pin
Iain Clarke, Warrior Programmer20-Nov-08 22:39
Iain Clarke, Warrior Programmer20-Nov-08 22:39 
GeneralRe: Delete Shortcut file Pin
MsmVc20-Nov-08 22:53
MsmVc20-Nov-08 22:53 
GeneralRe: Delete Shortcut file Pin
Iain Clarke, Warrior Programmer20-Nov-08 23:03
Iain Clarke, Warrior Programmer20-Nov-08 23:03 
QuestionColored cursor became Black cursor in Vista Pin
Rahul Vaishnav20-Nov-08 22:00
Rahul Vaishnav20-Nov-08 22:00 

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.