Click here to Skip to main content
15,890,282 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Access Violation CwinThread::CreateThread Pin
Erudite_Eric5-Aug-13 22:46
Erudite_Eric5-Aug-13 22:46 
GeneralRe: Access Violation CwinThread::CreateThread Pin
ForNow6-Aug-13 1:21
ForNow6-Aug-13 1:21 
GeneralRe: Access Violation CwinThread::CreateThread Pin
Joe Woodbury9-Aug-13 11:12
professionalJoe Woodbury9-Aug-13 11:12 
GeneralRe: Access Violation CwinThread::CreateThread Pin
Erudite_Eric16-Aug-13 23:04
Erudite_Eric16-Aug-13 23:04 
AnswerRe: Access Violation CwinThread::CreateThread Pin
Stephen Hewitt7-Aug-13 20:55
Stephen Hewitt7-Aug-13 20:55 
AnswerRe: Access Violation CwinThread::CreateThread Pin
pasztorpisti17-Aug-13 4:47
pasztorpisti17-Aug-13 4:47 
QuestionUsing stream_traits for file io serialization question Pin
EQ Learner3-Aug-13 12:03
EQ Learner3-Aug-13 12:03 
AnswerRe: Using stream_traits for file io serialization question Pin
«_Superman_»4-Aug-13 20:22
professional«_Superman_»4-Aug-13 20:22 
basic_ofstream is inherited from basic_ostream and is used for output.
read is for getting input and so is not implemented in basic_ostream.

On the other hand basic_ifstream which is inherited from basic_istream implements read and not write.

In your case, since the function template uses both read and write, you could use basic_fstream which inherits from basic_iostream which in turn inherits from both basic_istream and basic_ostream.

Or you would need to write 2 separate function templates, one for read and one for write.
«_Superman 
I love work. It gives me something to do between weekends.


Microsoft MVP (Visual C++) (October 2009 - September 2013)

Polymorphism in C

QuestionHow to find the shortest path between two nodes in a undigraph and it should via several given nodes? Pin
ahuzhangbo2-Aug-13 18:53
ahuzhangbo2-Aug-13 18:53 
AnswerRe: How to find the shortest path between two nodes in a undigraph and it should via several given nodes? Pin
Richard MacCutchan2-Aug-13 21:51
mveRichard MacCutchan2-Aug-13 21:51 
AnswerRe: How to find the shortest path between two nodes in a undigraph and it should via several given nodes? Pin
Erudite_Eric3-Aug-13 3:23
Erudite_Eric3-Aug-13 3:23 
QuestionMFC FeaturePack application is not running in client PC. Pin
Anu_Bala1-Aug-13 20:19
Anu_Bala1-Aug-13 20:19 
AnswerRe: MFC FeaturePack application is not running in client PC. Pin
Richard MacCutchan1-Aug-13 20:24
mveRichard MacCutchan1-Aug-13 20:24 
GeneralRe: MFC FeaturePack application is not running in client PC. Pin
Anu_Bala1-Aug-13 21:28
Anu_Bala1-Aug-13 21:28 
GeneralRe: MFC FeaturePack application is not running in client PC. Pin
Richard MacCutchan1-Aug-13 21:57
mveRichard MacCutchan1-Aug-13 21:57 
GeneralRe: MFC FeaturePack application is not running in client PC. Pin
Anu_Bala1-Aug-13 22:08
Anu_Bala1-Aug-13 22:08 
QuestionRe: MFC FeaturePack application is not running in client PC. Pin
Richard MacCutchan1-Aug-13 22:02
mveRichard MacCutchan1-Aug-13 22:02 
AnswerRe: MFC FeaturePack application is not running in client PC. Pin
Argonia2-Aug-13 3:25
professionalArgonia2-Aug-13 3:25 
AnswerRe: MFC FeaturePack application is not running in client PC. Pin
«_Superman_»4-Aug-13 20:13
professional«_Superman_»4-Aug-13 20:13 
QuestionHow to store and retrieve data from database via internet using VC++2008 Pin
shanmugarajaa1-Aug-13 18:46
shanmugarajaa1-Aug-13 18:46 
AnswerRe: How to store and retrieve data from database via internet using VC++2008 Pin
Richard MacCutchan1-Aug-13 20:23
mveRichard MacCutchan1-Aug-13 20:23 
GeneralRe: How to store and retrieve data from database via internet using VC++2008 Pin
shanmugarajaa1-Aug-13 20:29
shanmugarajaa1-Aug-13 20:29 
GeneralRe: How to store and retrieve data from database via internet using VC++2008 Pin
Richard MacCutchan1-Aug-13 21:11
mveRichard MacCutchan1-Aug-13 21:11 
GeneralRe: How to store and retrieve data from database via internet using VC++2008 Pin
shanmugarajaa1-Aug-13 22:12
shanmugarajaa1-Aug-13 22:12 
GeneralRe: How to store and retrieve data from database via internet using VC++2008 Pin
Richard MacCutchan1-Aug-13 22:27
mveRichard MacCutchan1-Aug-13 22:27 

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.