Click here to Skip to main content
15,917,642 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralGetting The My Documents Path For Current User Pin
John Clump6-Aug-03 20:08
John Clump6-Aug-03 20:08 
GeneralRe: Getting The My Documents Path For Current User Pin
PJ Arends6-Aug-03 21:26
professionalPJ Arends6-Aug-03 21:26 
QuestionA good winsock tutorial? Pin
untwisted6-Aug-03 20:02
untwisted6-Aug-03 20:02 
AnswerRe: A good winsock tutorial? Pin
louis6-Aug-03 21:33
louis6-Aug-03 21:33 
AnswerRe: A good winsock tutorial? Pin
Nish Nishant6-Aug-03 21:40
sitebuilderNish Nishant6-Aug-03 21:40 
GeneralRe: A good winsock tutorial? Pin
untwisted7-Aug-03 19:26
untwisted7-Aug-03 19:26 
GeneralAny better replacement for these functions Pin
Anthony_Yio6-Aug-03 19:55
Anthony_Yio6-Aug-03 19:55 
GeneralRe: Any better replacement for these functions Pin
armentage7-Aug-03 5:38
armentage7-Aug-03 5:38 
Try using memmove instead of memcpy.

As for abs(), try replacing it with this inline function:

inline int myAbs(int n) {
if (n < 0)
return -n;
else
return n;
}

That would be a lot quicker than a function call. There maybe more to the abs function than that, but I don't know the details.

As for min(), I've never seen that particular version of it before. If you are doing something thats computationally heavy on prepared data, you could sort the data ahead of time and then just pull out the first element, that'd be your min.
GeneralERROR_INVALID_ADDRESS with fixed address on VirtualAlloc (Win2K) Pin
Quiddity6-Aug-03 18:59
Quiddity6-Aug-03 18:59 
GeneralRe: ERROR_INVALID_ADDRESS with fixed address on VirtualAlloc (Win2K) Pin
Vitali Halershtein6-Aug-03 21:53
Vitali Halershtein6-Aug-03 21:53 
GeneralNewbie question about code organization Pin
swollug6-Aug-03 18:53
swollug6-Aug-03 18:53 
GeneralRe: Newbie question about code organization Pin
jhwurmbach6-Aug-03 21:32
jhwurmbach6-Aug-03 21:32 
GeneralRe: Newbie question about code organization Pin
Michael P Butler6-Aug-03 23:48
Michael P Butler6-Aug-03 23:48 
GeneralRe: Newbie question about code organization Pin
Dangleberry7-Aug-03 0:02
sussDangleberry7-Aug-03 0:02 
GeneralDownloading A whole Website Pin
Anonymous6-Aug-03 18:51
Anonymous6-Aug-03 18:51 
GeneralRe: Downloading A whole Website Pin
Vitali Halershtein6-Aug-03 22:10
Vitali Halershtein6-Aug-03 22:10 
QuestionIs there Noone who can sort it out??? Pin
xxhimanshu6-Aug-03 18:50
xxhimanshu6-Aug-03 18:50 
AnswerRe: Is there Noone who can sort it out??? Pin
Anthony_Yio8-Aug-03 0:10
Anthony_Yio8-Aug-03 0:10 
GeneralIE New window!!! Pin
xxhimanshu6-Aug-03 18:49
xxhimanshu6-Aug-03 18:49 
Generalcasting - simple question Pin
devvvy6-Aug-03 18:44
devvvy6-Aug-03 18:44 
GeneralRe: casting - simple question Pin
Nish Nishant6-Aug-03 21:43
sitebuilderNish Nishant6-Aug-03 21:43 
GeneralRe: casting - simple question Pin
Alexandru Savescu6-Aug-03 23:30
Alexandru Savescu6-Aug-03 23:30 
GeneralRe: casting - simple question Pin
Ryan Binns6-Aug-03 23:49
Ryan Binns6-Aug-03 23:49 
GeneralRe: casting - simple question Pin
devvvy7-Aug-03 1:14
devvvy7-Aug-03 1:14 
Generalhelp about Artificial Intelligence and Graphics Pin
Pham Quang Hai6-Aug-03 18:18
Pham Quang Hai6-Aug-03 18: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.