Click here to Skip to main content
15,899,679 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Socket connection Pin
prasad_som25-Dec-06 21:28
prasad_som25-Dec-06 21:28 
GeneralRe: Socket connection Pin
Syamlal S Nair26-Dec-06 0:44
Syamlal S Nair26-Dec-06 0:44 
AnswerRe: Socket connection Pin
prasad_som26-Dec-06 1:59
prasad_som26-Dec-06 1:59 
AnswerRe: Socket connection Pin
kasturi_haribabu25-Dec-06 22:34
kasturi_haribabu25-Dec-06 22:34 
AnswerRe: Socket connection Pin
Mark Salsbery26-Dec-06 6:33
Mark Salsbery26-Dec-06 6:33 
QuestionOpenFileMapping Fails Pin
Gupta Suraj25-Dec-06 18:10
Gupta Suraj25-Dec-06 18:10 
AnswerRe: OpenFileMapping Fails Pin
prasad_som25-Dec-06 19:03
prasad_som25-Dec-06 19:03 
GeneralRe: OpenFileMapping Fails Pin
Gupta Suraj25-Dec-06 21:29
Gupta Suraj25-Dec-06 21:29 
AnswerRe: OpenFileMapping Fails Pin
prasad_som25-Dec-06 21:33
prasad_som25-Dec-06 21:33 
Questionuser input in win32 application Pin
ooolz25-Dec-06 17:29
ooolz25-Dec-06 17:29 
QuestionRe: user input in win32 application Pin
prasad_som25-Dec-06 18:40
prasad_som25-Dec-06 18:40 
AnswerRe: user input in win32 application Pin
ooolz25-Dec-06 18:46
ooolz25-Dec-06 18:46 
QuestionRe: user input in win32 application Pin
prasad_som25-Dec-06 18:56
prasad_som25-Dec-06 18:56 
Questionlittle dictionary Pin
rockfanskid25-Dec-06 16:44
rockfanskid25-Dec-06 16:44 
AnswerRe: little dictionary Pin
Hamid_RT26-Dec-06 7:06
Hamid_RT26-Dec-06 7:06 
QuestionMFC v.s. valarray Pin
ytod25-Dec-06 15:37
ytod25-Dec-06 15:37 
AnswerRe: MFC v.s. valarray Pin
prasad_som25-Dec-06 18:38
prasad_som25-Dec-06 18:38 
QuestionTemplates Pin
Astricks25-Dec-06 6:24
Astricks25-Dec-06 6:24 
I'm finding templates a bit hard to understand. I do understand some simple ones, but not everything. I looked at a sample program that finds max of two numbers and returns the bigger number. People say templates are generic but why not it take std::string into the function that finds of Max of two types(now it takes only numbers) We know that it's not sane to try "<" between strings but how does the compiler find the passed values are strings and reject it? and btw, how an STL container gets in anything we push? may it be numbers or strings, for example a vector. Can someone make a simple template program that just "holds" Object of any type, I just want to break the template barrier.
<br />
Box <int> box_int; box_int.hold(1);<br />
Box <std::string> box_str; box_str.hold("Astricks");<br />
Box <myClass> box_obj; box_obj.hold(myObj);<br />

Any help? Plz note: It's not a homework or assignement.
AnswerRe: Templates Pin
markkuk25-Dec-06 10:12
markkuk25-Dec-06 10:12 
AnswerRe: Templates Pin
peterchen25-Dec-06 10:25
peterchen25-Dec-06 10:25 
GeneralRe: Templates Pin
Astricks25-Dec-06 19:04
Astricks25-Dec-06 19:04 
GeneralRe: Thanks, But another question, Pin
Astricks26-Dec-06 2:27
Astricks26-Dec-06 2:27 
GeneralRe: Thanks, But another question, Pin
peterchen26-Dec-06 2:38
peterchen26-Dec-06 2:38 
GeneralRe: Thanks, But another question, Pin
Astricks26-Dec-06 2:46
Astricks26-Dec-06 2:46 
GeneralRe: Thanks, But another question, Pin
peterchen26-Dec-06 3:15
peterchen26-Dec-06 3:15 

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.