Click here to Skip to main content
16,004,887 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CXX0017: Error: symbol "buf_balance" not found Pin
Indivara11-Jul-05 14:28
professionalIndivara11-Jul-05 14:28 
GeneralRe: CXX0017: Error: symbol "buf_balance" not found Pin
Indivara11-Jul-05 18:19
professionalIndivara11-Jul-05 18:19 
GeneralRe: CXX0017: Error: symbol "buf_balance" not found Pin
Bob Stanneveld11-Jul-05 20:40
Bob Stanneveld11-Jul-05 20:40 
Generalpointer increment Pin
Indivara11-Jul-05 13:07
professionalIndivara11-Jul-05 13:07 
GeneralRe: pointer increment Pin
Jose Lamas Rios11-Jul-05 15:58
Jose Lamas Rios11-Jul-05 15:58 
GeneralRe: pointer increment Pin
Indivara11-Jul-05 18:07
professionalIndivara11-Jul-05 18:07 
GeneralRe: pointer increment Pin
Bob Stanneveld11-Jul-05 20:53
Bob Stanneveld11-Jul-05 20:53 
GeneralRe: pointer increment Pin
Indivara11-Jul-05 21:11
professionalIndivara11-Jul-05 21:11 
Bob Stanneveld wrote:
If you use bitmaps, you never know how large your data will be. One should make his / her code as robust as possible. There is one golden rule that programmers should honer always: user data is malicious until proven otherwise! So extreme caution should be taken when using pointers and data from outside the program.

you are right about that, I've had countless problems due to assumptions about user data.. Unsure | :~

... however in this case, I doubt the programmer had that in mind when writing this code. if this were to overflow, the bitmap would be so large that the system would run out of memory long before...
there must be some other reason for the loop


Bob Stanneveld wrote:
But indeed, maybe for performance reasons he used the if's.

probably so. I was wondering whether the loop was there for the same reason, but can't figure out why it would be faster...



- Indivara

"...This city desert makes you feel so cold.
It's got so many people but it's got no soul..."

- Gerry Rafferty, Baker Street

GeneralRe: pointer increment Pin
Bob Stanneveld11-Jul-05 21:31
Bob Stanneveld11-Jul-05 21:31 
GeneralRe: pointer increment Pin
Indivara11-Jul-05 22:02
professionalIndivara11-Jul-05 22:02 
GeneralRe: pointer increment Pin
Bob Stanneveld11-Jul-05 22:06
Bob Stanneveld11-Jul-05 22:06 
Questionhow to scroll a dialog window Pin
g0ju11-Jul-05 11:31
g0ju11-Jul-05 11:31 
AnswerRe: how to scroll a dialog window Pin
Jose Lamas Rios11-Jul-05 16:19
Jose Lamas Rios11-Jul-05 16:19 
GeneralColored text in static text box Pin
Member 206903511-Jul-05 11:18
Member 206903511-Jul-05 11:18 
GeneralRe: Colored text in static text box Pin
PJ Arends11-Jul-05 11:27
professionalPJ Arends11-Jul-05 11:27 
QuestionHas anyone used the SpareLib++ code? Pin
adonisv11-Jul-05 9:17
adonisv11-Jul-05 9:17 
General!running 2 instances of app concurrently Pin
Member 206903511-Jul-05 8:29
Member 206903511-Jul-05 8:29 
GeneralRe: !running 2 instances of app concurrently Pin
Geert van Horrik11-Jul-05 8:33
Geert van Horrik11-Jul-05 8:33 
GeneralRe: !running 2 instances of app concurrently Pin
David Crow11-Jul-05 8:51
David Crow11-Jul-05 8:51 
Generalauto_ptr Pin
act_x11-Jul-05 7:45
act_x11-Jul-05 7:45 
GeneralRe: auto_ptr Pin
lemleyd11-Jul-05 8:30
lemleyd11-Jul-05 8:30 
GeneralRe: auto_ptr Pin
act_x11-Jul-05 8:51
act_x11-Jul-05 8:51 
GeneralRe: auto_ptr Pin
Jack Puppy11-Jul-05 10:40
Jack Puppy11-Jul-05 10:40 
GeneralListView with LVS_ICON style... Pin
Ian Bowler11-Jul-05 7:17
Ian Bowler11-Jul-05 7:17 
GeneralRe: ListView with LVS_ICON style... Pin
Neelesh K J Jain11-Jul-05 20:18
Neelesh K J Jain11-Jul-05 20:18 

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.