Click here to Skip to main content
15,919,423 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Help me... Pin
Vikram Kashyap2-Dec-04 19:55
Vikram Kashyap2-Dec-04 19:55 
GeneralRe: Help me... Pin
david_gilmour2-Dec-04 21:07
david_gilmour2-Dec-04 21:07 
GeneralRe: Help me... Pin
David Crow3-Dec-04 2:20
David Crow3-Dec-04 2:20 
Generalmessagebox problem Pin
tiziacaia2-Dec-04 18:41
tiziacaia2-Dec-04 18:41 
GeneralRe: messagebox problem Pin
Nish Nishant2-Dec-04 19:27
sitebuilderNish Nishant2-Dec-04 19:27 
GeneralRe: messagebox problem Pin
tiziacaia3-Dec-04 5:45
tiziacaia3-Dec-04 5:45 
GeneralRe: messagebox problem Pin
V.2-Dec-04 23:15
professionalV.2-Dec-04 23:15 
AnswerRe: How much overhead does std::vector have? Pin
John R. Shaw2-Dec-04 18:30
John R. Shaw2-Dec-04 18:30 
Compared to your data set, practicaly none and you'll need every bit of that. In Widows x64 it will depend on the compiler you are using, if you are still using a compiler for x32 then it will add no additional overhead. If you change to a compler for x64 then all your int variable sizes will become 64 bit variables (doubles your sets memory size and should double the amount of data vector can handle).

If you don't use vector (or possibly CArray), then you will have to write your own code to handle the array and that may add more overhead than using vector.

The actual overhead in bytes depends on what functions you need to call. When a C++ compiler generates code (well VC6 anyway), I beleive it does not generate code (for templates) that does not get called (a little built in optimization).

If you where writing it in standard C, you would normaly get every function in every staticaly linked library include in your program, whether you called them or not.




INTP
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen
AnswerRe: How much overhead does std::vector have? Pin
Tim Smith3-Dec-04 4:31
Tim Smith3-Dec-04 4:31 
GeneralRe: How much overhead does std::vector have? Pin
Robert Buldoc3-Dec-04 6:55
Robert Buldoc3-Dec-04 6:55 
QuestionMaking my own OpenGL, what to do about wgl* entrypoints? Pin
maxmaven2-Dec-04 18:23
maxmaven2-Dec-04 18:23 
GeneralPlease help immediately!! Pin
angello62-Dec-04 18:03
angello62-Dec-04 18:03 
GeneralRe: Please help immediately!! Pin
John R. Shaw2-Dec-04 18:50
John R. Shaw2-Dec-04 18:50 
GeneralRe: Please help immediately!! Pin
david_gilmour2-Dec-04 21:29
david_gilmour2-Dec-04 21:29 
GeneralRe: Please help immediately!! Pin
Jon Hulatt3-Dec-04 2:22
Jon Hulatt3-Dec-04 2:22 
GeneralRe: Please help immediately!! Pin
John R. Shaw4-Dec-04 9:17
John R. Shaw4-Dec-04 9:17 
GeneralRe: Please help immediately!! Pin
Jon Hulatt3-Dec-04 2:24
Jon Hulatt3-Dec-04 2:24 
QuestionHow to compare two files quickly? Pin
Jelfy2-Dec-04 17:53
Jelfy2-Dec-04 17:53 
AnswerRe: How to compare two files quickly? Pin
Member 3076122-Dec-04 19:27
Member 3076122-Dec-04 19:27 
AnswerRe: How to compare two files quickly? Pin
Henry miller3-Dec-04 3:33
Henry miller3-Dec-04 3:33 
GeneralRe: How to compare two files quickly? Pin
Harold Bamford3-Dec-04 5:40
Harold Bamford3-Dec-04 5:40 
AnswerRe: How to compare two files quickly? Pin
Antony M Kancidrowski3-Dec-04 5:39
Antony M Kancidrowski3-Dec-04 5:39 
QuestionHow to add Check Boxes to every Column data using C++ to a List Control? Pin
pubududilena2-Dec-04 17:50
pubududilena2-Dec-04 17:50 
AnswerRe: How to add Check Boxes to every Column data using C++ to a List Control? Pin
David Crow3-Dec-04 2:25
David Crow3-Dec-04 2:25 
QuestionWindows MIDI driver(usb).....can anyone tell me functions that handle this? Pin
namaskaaram2-Dec-04 17:35
namaskaaram2-Dec-04 17:35 

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.