Click here to Skip to main content
15,940,550 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: newbie api pointers question Pin
Randor 3-Nov-09 12:12
professional Randor 3-Nov-09 12:12 
QuestionAbout autorun of any exe file in Windows and autorun of file in Linux Pin
WindowsVsLinux3-Nov-09 7:46
WindowsVsLinux3-Nov-09 7:46 
Questionwifstream operator >> Pin
transoft3-Nov-09 5:35
transoft3-Nov-09 5:35 
AnswerRe: wifstream operator >> Pin
David Crow3-Nov-09 5:58
David Crow3-Nov-09 5:58 
GeneralRe: wifstream operator >> [modified] Pin
transoft3-Nov-09 7:49
transoft3-Nov-09 7:49 
QuestionRe: wifstream operator >> Pin
David Crow3-Nov-09 8:05
David Crow3-Nov-09 8:05 
AnswerRe: wifstream operator >> Pin
transoft3-Nov-09 8:18
transoft3-Nov-09 8:18 
GeneralRe: wifstream operator >> Pin
David Crow3-Nov-09 8:30
David Crow3-Nov-09 8:30 
transoft wrote:
But "Write" function can only write string to the file.


It writes whatever is at the address provided to it, at least the ofstream method does.

ofstream out("c:\\data.dat", ios::trunc | ios::binary);        
int y = 1234;
out.write((const char *) &y, sizeof(y));
out.close();        


"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons


GeneralRe: wifstream operator >> Pin
transoft3-Nov-09 8:46
transoft3-Nov-09 8:46 
QuestionRe: wifstream operator >> Pin
David Crow3-Nov-09 8:51
David Crow3-Nov-09 8:51 
AnswerRe: wifstream operator >> [modified] Pin
transoft3-Nov-09 9:01
transoft3-Nov-09 9:01 
QuestionRe: wifstream operator >> Pin
David Crow3-Nov-09 9:05
David Crow3-Nov-09 9:05 
QuestionHow to change IP address, DNS and Gateways Pin
RickyJiao3-Nov-09 3:39
RickyJiao3-Nov-09 3:39 
AnswerRe: How to change IP address, DNS and Gateways Pin
wangningyu3-Nov-09 3:47
wangningyu3-Nov-09 3:47 
GeneralRe: How to change IP address, DNS and Gateways Pin
RickyJiao3-Nov-09 3:50
RickyJiao3-Nov-09 3:50 
QuestionRe: How to change IP address, DNS and Gateways Pin
David Crow3-Nov-09 3:51
David Crow3-Nov-09 3:51 
AnswerRe: How to change IP address, DNS and Gateways Pin
RickyJiao3-Nov-09 3:58
RickyJiao3-Nov-09 3:58 
GeneralRe: How to change IP address, DNS and Gateways Pin
David Crow3-Nov-09 4:06
David Crow3-Nov-09 4:06 
GeneralRe: How to change IP address, DNS and Gateways Pin
RickyJiao3-Nov-09 4:15
RickyJiao3-Nov-09 4:15 
AnswerRe: How to change IP address, DNS and Gateways Pin
Randor 3-Nov-09 4:57
professional Randor 3-Nov-09 4:57 
Question[Message Deleted] Pin
davidcrow693-Nov-09 2:58
davidcrow693-Nov-09 2:58 
AnswerRe: Need help constructing B+ tree Pin
Stuart Dootson3-Nov-09 3:20
professionalStuart Dootson3-Nov-09 3:20 
QuestionRe: Need help constructing B+ tree Pin
David Crow3-Nov-09 3:22
David Crow3-Nov-09 3:22 
Answer[Message Deleted] Pin
davidcrow693-Nov-09 3:33
davidcrow693-Nov-09 3:33 
QuestionRe: Need help constructing B+ tree Pin
David Crow3-Nov-09 3:36
David Crow3-Nov-09 3:36 

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.