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

C / C++ / MFC

 
GeneralRe: Crash ribbon when PC enter in sleep/standby mode Pin
Eugen Podsypalnikov2-Sep-10 20:55
Eugen Podsypalnikov2-Sep-10 20:55 
QuestionCan we create DSN name and set a path through Install shield Pin
raju_shiva30-Aug-10 20:48
raju_shiva30-Aug-10 20:48 
QuestionRe: Can we create DSN name and set a path through Install shield Pin
David Crow31-Aug-10 5:45
David Crow31-Aug-10 5:45 
QuestionCustomized BEGIN_TEMPLATE_MESSAGE_MAP with 2 template arguments for VS2005 Pin
funwithdolphin30-Aug-10 19:50
funwithdolphin30-Aug-10 19:50 
AnswerRe: Customized BEGIN_TEMPLATE_MESSAGE_MAP with 2 template arguments for VS2005 Pin
Code-o-mat30-Aug-10 22:29
Code-o-mat30-Aug-10 22:29 
GeneralRe: Customized BEGIN_TEMPLATE_MESSAGE_MAP with 2 template arguments for VS2005 Pin
funwithdolphin30-Aug-10 23:30
funwithdolphin30-Aug-10 23:30 
GeneralRe: Customized BEGIN_TEMPLATE_MESSAGE_MAP with 2 template arguments for VS2005 Pin
Code-o-mat31-Aug-10 0:01
Code-o-mat31-Aug-10 0:01 
QuestionCopy and Cast a List Pin
Skippums30-Aug-10 15:02
Skippums30-Aug-10 15:02 
Is there a standard vectorized way to copy a list of doubles to a list of int8 values? I would like to code the following:
typedef __uint8 unsigned __int8;
double  *const srcList = new double [ARRAY_SIZE];
__uint8 *const dstList = new __uint8[ARRAY_SIZE];
for (size_t i = 0; i < ARRAY_SIZE; ++i)
    dstList[i] = static_cast<__uint8>(max<double>(0, min<double>(255, srcList[i])));
I would like to code this more like the following:
__uint8 ToUint8(double const inVal) {
    return static_cast<__uint8>(max<double>(0, min<double>(255, srcList[i])));
}
std::???(srcList, srcList + ARRAY_SIZE, dstList, &ToUint8);
Is there some existing function that will make the above work, or do I need to just make the iterator myself? Thanks,
Sounds like somebody's got a case of the Mondays

-Jeff

AnswerRe: Copy and Cast a List Pin
Sameerkumar Namdeo30-Aug-10 18:40
Sameerkumar Namdeo30-Aug-10 18:40 
AnswerRe: Copy and Cast a List Pin
Paul Michalik30-Aug-10 21:10
Paul Michalik30-Aug-10 21:10 
QuestionDLL Hook - Get Host Process ID Pin
Joe_Dert30-Aug-10 14:13
Joe_Dert30-Aug-10 14:13 
AnswerRe: DLL Hook - Get Host Process ID PinPopular
«_Superman_»30-Aug-10 20:24
professional«_Superman_»30-Aug-10 20:24 
GeneralRe: DLL Hook - Get Host Process ID Pin
Joe_Dert31-Aug-10 0:06
Joe_Dert31-Aug-10 0:06 
QuestionSTL / Custom Linked List Pin
Fareed Rizkalla30-Aug-10 11:06
Fareed Rizkalla30-Aug-10 11:06 
AnswerRe: STL / Custom Linked List Pin
Luc Pattyn30-Aug-10 11:30
sitebuilderLuc Pattyn30-Aug-10 11:30 
GeneralRe: STL / Custom Linked List Pin
Fareed Rizkalla30-Aug-10 11:55
Fareed Rizkalla30-Aug-10 11:55 
GeneralRe: STL / Custom Linked List PinPopular
Luc Pattyn30-Aug-10 12:11
sitebuilderLuc Pattyn30-Aug-10 12:11 
GeneralRe: STL / Custom Linked List Pin
Blake Miller3-Sep-10 12:30
Blake Miller3-Sep-10 12:30 
GeneralRe: STL / Custom Linked List Pin
Luc Pattyn3-Sep-10 14:52
sitebuilderLuc Pattyn3-Sep-10 14:52 
AnswerRe: STL / Custom Linked List PinPopular
Maximilien30-Aug-10 13:43
Maximilien30-Aug-10 13:43 
AnswerRe: STL / Custom Linked List Pin
Emilio Garavaglia30-Aug-10 20:04
Emilio Garavaglia30-Aug-10 20:04 
Questionre:looking for winsock listener tcp c++ example that supports multiple potential clients Pin
Alan Kurlansky30-Aug-10 11:05
Alan Kurlansky30-Aug-10 11:05 
AnswerRe: re:looking for winsock listener tcp c++ example that supports multiple potential clients Pin
Fareed Rizkalla30-Aug-10 11:10
Fareed Rizkalla30-Aug-10 11:10 
AnswerRe: re:looking for winsock listener tcp c++ example that supports multiple potential clients Pin
Moak30-Aug-10 12:00
Moak30-Aug-10 12:00 
QuestionOnInitDialog is not getting called from DoModal in VS2005 [modified] Pin
funwithdolphin30-Aug-10 2:49
funwithdolphin30-Aug-10 2:49 

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.