Click here to Skip to main content
15,921,028 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Loading Problem Pin
Joaquín M López Muñoz7-Feb-02 9:09
Joaquín M López Muñoz7-Feb-02 9:09 
GeneralRe: Loading Problem Pin
Sonu Kapoor7-Feb-02 9:14
Sonu Kapoor7-Feb-02 9:14 
GeneralSams book on visual C++ Pin
Rajveer7-Feb-02 5:31
Rajveer7-Feb-02 5:31 
GeneralRe: Sams book on visual C++ Pin
Jon Hulatt7-Feb-02 6:18
Jon Hulatt7-Feb-02 6:18 
GeneralRe: C2664 Pin
7-Feb-02 4:52
suss7-Feb-02 4:52 
GeneralRe: C2664 Pin
Jon Hulatt7-Feb-02 5:04
Jon Hulatt7-Feb-02 5:04 
GeneralRe: C2664 Pin
Giles7-Feb-02 9:40
Giles7-Feb-02 9:40 
GeneralRe: C2664 Pin
Christian Graus7-Feb-02 9:51
protectorChristian Graus7-Feb-02 9:51 
I'll just add my voice to the people saying you should take a closer look yourself before posting, and at the least show you've done that by only posting the offending code instead of half your project, and describe your problem a bit.

However,

return -(first +1); //failed to find

why are you returning a range of numbers to indicate failure ? Usual practice is to return -1. what if a client of this function accidentally sends a range that starts at -3 ? You're not doing any range validation ( i.e. checking for valid values to be passed in ), which makes all of this code very fragile.


Christian

I have come to clean zee pooollll. - Michael Martin Dec 30, 2001

Picture the daffodil. And while you do that, I'll be over here going through your stuff.

GeneraleVC Image Zoom Problem Pin
7-Feb-02 4:36
suss7-Feb-02 4:36 
GeneraliCListView and CTreeView Pin
7-Feb-02 3:07
suss7-Feb-02 3:07 
GeneralRe: iCListView and CTreeView Pin
Jon Hulatt7-Feb-02 4:42
Jon Hulatt7-Feb-02 4:42 
Questionhow to compile win32 program in bcb 5.0 Pin
Johndotcom7-Feb-02 3:03
Johndotcom7-Feb-02 3:03 
AnswerRe: how to compile win32 program in bcb 5.0 Pin
Carlos Antollini7-Feb-02 3:12
Carlos Antollini7-Feb-02 3:12 
GeneralRe: how to compile win32 program in bcb 5.0 Pin
Johndotcom7-Feb-02 16:21
Johndotcom7-Feb-02 16:21 
GeneralRe: how to compile win32 program in bcb 5.0 Pin
Carlos Antollini8-Feb-02 2:35
Carlos Antollini8-Feb-02 2:35 
GeneralRe: how to compile win32 program in bcb 5.0 Pin
Johndotcom8-Feb-02 18:28
Johndotcom8-Feb-02 18:28 
GeneralCan't find the clrscr() program Pin
Fredrik N7-Feb-02 2:47
Fredrik N7-Feb-02 2:47 
GeneralRe: Can't find the clrscr() program Pin
Carlos Antollini7-Feb-02 3:06
Carlos Antollini7-Feb-02 3:06 
GeneralRe: Can't find the clrscr() program Pin
Atul Dharne7-Feb-02 3:26
Atul Dharne7-Feb-02 3:26 
GeneralA simple query on VC++ Pin
7-Feb-02 2:12
suss7-Feb-02 2:12 
GeneralRe: A simple query on VC++ Pin
Jon Hulatt7-Feb-02 2:41
Jon Hulatt7-Feb-02 2:41 
GeneralRe: A simple query on VC++ Pin
7-Feb-02 3:02
suss7-Feb-02 3:02 
GeneralRe: A simple query on VC++ Pin
Jon Hulatt7-Feb-02 3:27
Jon Hulatt7-Feb-02 3:27 
GeneralRe: A simple query on VC++ Pin
7-Feb-02 4:21
suss7-Feb-02 4:21 
GeneralRe: A simple query on VC++ Pin
Jon Hulatt7-Feb-02 4:34
Jon Hulatt7-Feb-02 4:34 

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.