Click here to Skip to main content
15,885,537 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to access member functions and variables in another project without .lib Pin
kamal19774-Apr-16 12:07
kamal19774-Apr-16 12:07 
GeneralRe: how to access member functions and variables in another project without .lib Pin
Richard MacCutchan4-Apr-16 21:45
mveRichard MacCutchan4-Apr-16 21:45 
GeneralRe: how to access member functions and variables in another project without .lib Pin
leon de boer5-Apr-16 2:40
leon de boer5-Apr-16 2:40 
AnswerRe: how to access member functions and variables in another project without .lib Pin
leon de boer5-Apr-16 2:50
leon de boer5-Apr-16 2:50 
QuestionC++ file stream read/write[SOLVED] Pin
Biruk Abebe3-Apr-16 6:22
Biruk Abebe3-Apr-16 6:22 
AnswerRe: C++ file stream read/write Pin
leon de boer3-Apr-16 7:12
leon de boer3-Apr-16 7:12 
GeneralRe: C++ file stream read/write Pin
Biruk Abebe3-Apr-16 7:40
Biruk Abebe3-Apr-16 7:40 
GeneralRe: C++ file stream read/write Pin
leon de boer3-Apr-16 9:22
leon de boer3-Apr-16 9:22 
First you have the input and output pointers mixed in the above
Second the put function doesn't work the way you think in the above

MSDN => The member function put (which writes a single character) is called, the character is not written directly to the physical file with which the stream is associated. Instead of that, the character is inserted in that stream's intermediate buffer.

Put in.sync() after the put

MSDN => If the streams are synchronized, a program can mix iostream operations with stdio operations, and their observable effects are guaranteed to follow the same order as used in the program.

I think you need to do some more reading on streams with the sync it will do what you expect.
In vino veritas

GeneralRe: C++ file stream read/write[SOLVED] Pin
Biruk Abebe3-Apr-16 10:26
Biruk Abebe3-Apr-16 10:26 
QuestionC, Win32 API: l need help with ReadFile function[Solved] Pin
Member 121394421-Apr-16 0:46
Member 121394421-Apr-16 0:46 
AnswerRe: C, Win32 API: l need help with ReadFile function Pin
Jochen Arndt1-Apr-16 1:30
professionalJochen Arndt1-Apr-16 1:30 
GeneralRe: C, Win32 API: l need help with ReadFile function Pin
Member 121394422-Apr-16 5:30
Member 121394422-Apr-16 5:30 
GeneralRe: C, Win32 API: l need help with ReadFile function Pin
Richard MacCutchan2-Apr-16 6:10
mveRichard MacCutchan2-Apr-16 6:10 
GeneralRe: C, Win32 API: l need help with ReadFile function Pin
Jochen Arndt2-Apr-16 21:02
professionalJochen Arndt2-Apr-16 21:02 
AnswerRe: C, Win32 API: l need help with ReadFile function Pin
David Crow1-Apr-16 2:25
David Crow1-Apr-16 2:25 
QuestionOpenCL program uses only 1 core from 192 cuda cores Pin
Javier Luis Lopez31-Mar-16 4:04
Javier Luis Lopez31-Mar-16 4:04 
QuestionRe: OpenCL program uses only 1 core from 192 cuda cores Pin
David Crow31-Mar-16 6:09
David Crow31-Mar-16 6:09 
AnswerRe: OpenCL program uses only 1 core from 192 cuda cores Pin
Javier Luis Lopez20-Apr-16 1:14
Javier Luis Lopez20-Apr-16 1:14 
QuestionHow to overwrite one angle arc over other during runtime Pin
Member 1053643030-Mar-16 1:45
Member 1053643030-Mar-16 1:45 
SuggestionRe: How to overwrite one angle arc over other during runtime Pin
Kornfeld Eliyahu Peter30-Mar-16 2:06
professionalKornfeld Eliyahu Peter30-Mar-16 2:06 
QuestionC, Win32 API: l need a help Pin
Member 1213944229-Mar-16 21:19
Member 1213944229-Mar-16 21:19 
SuggestionRe: C, Win32 API: l need a help Pin
David Crow30-Mar-16 10:09
David Crow30-Mar-16 10:09 
AnswerRe: C, Win32 API: l need a help Pin
Victor Nijegorodov31-Mar-16 1:11
Victor Nijegorodov31-Mar-16 1:11 
Questionproblem with compiler Pin
Ngoc Linh Nguyen29-Mar-16 20:52
Ngoc Linh Nguyen29-Mar-16 20:52 
AnswerRe: problem with compiler Pin
Jochen Arndt29-Mar-16 21:33
professionalJochen Arndt29-Mar-16 21:33 

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.