Click here to Skip to main content
15,912,504 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to write to DataBase MS Access Pin
led mike26-Jul-06 8:41
led mike26-Jul-06 8:41 
QuestionWhy doesn't this work? Simple file I/O Pin
liuphil126-Jul-06 7:25
liuphil126-Jul-06 7:25 
AnswerRe: Why doesn't this work? Simple file I/O Pin
Zac Howland26-Jul-06 7:47
Zac Howland26-Jul-06 7:47 
GeneralRe: Why doesn't this work? Simple file I/O Pin
liuphil126-Jul-06 8:01
liuphil126-Jul-06 8:01 
GeneralRe: Why doesn't this work? Simple file I/O Pin
David Crow26-Jul-06 8:18
David Crow26-Jul-06 8:18 
GeneralRe: Why doesn't this work? Simple file I/O Pin
liuphil126-Jul-06 8:52
liuphil126-Jul-06 8:52 
GeneralRe: Why doesn't this work? Simple file I/O Pin
Zac Howland26-Jul-06 8:57
Zac Howland26-Jul-06 8:57 
GeneralRe: Why doesn't this work? Simple file I/O Pin
Zac Howland26-Jul-06 8:56
Zac Howland26-Jul-06 8:56 
You won't be able to read the file. It is in binary. If you want to look at it, open it up in a hex editor to verify its contents. Otherwise, write a method to read in the data in a similar fashion to the way it is written and then print it to the screen:

fstream fin("final.dat", ios::in | ios::binary);
while (!fin.eof())
{
	rec r;
	fin.read((char*)&r, sizeof(rec));
	cout 	<< r.name << "\t" 
		<< r.age << "\t"
		<< r.wt <<endl;
}


If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week

Zac

Questionform Displaying Pin
ningthemcha26-Jul-06 6:46
ningthemcha26-Jul-06 6:46 
AnswerRe: form Displaying Pin
Chris Losinger26-Jul-06 7:04
professionalChris Losinger26-Jul-06 7:04 
AnswerRe: form Displaying Pin
David Crow26-Jul-06 7:06
David Crow26-Jul-06 7:06 
AnswerRe: form Displaying Pin
Zac Howland26-Jul-06 7:28
Zac Howland26-Jul-06 7:28 
AnswerRe: form Displaying Pin
Hamid_RT26-Jul-06 7:29
Hamid_RT26-Jul-06 7:29 
Questiondebug assertion failed Pin
identity_8526-Jul-06 5:42
identity_8526-Jul-06 5:42 
AnswerRe: debug assertion failed Pin
Hamid_RT26-Jul-06 6:05
Hamid_RT26-Jul-06 6:05 
AnswerRe: debug assertion failed Pin
Cedric Moonen26-Jul-06 6:05
Cedric Moonen26-Jul-06 6:05 
GeneralRe: debug assertion failed Pin
identity_8526-Jul-06 6:24
identity_8526-Jul-06 6:24 
GeneralRe: debug assertion failed Pin
Zac Howland26-Jul-06 6:35
Zac Howland26-Jul-06 6:35 
GeneralRe: debug assertion failed Pin
identity_8526-Jul-06 7:59
identity_8526-Jul-06 7:59 
GeneralRe: debug assertion failed Pin
David Crow26-Jul-06 8:23
David Crow26-Jul-06 8:23 
GeneralRe: debug assertion failed Pin
Zac Howland26-Jul-06 9:02
Zac Howland26-Jul-06 9:02 
GeneralRe: debug assertion failed Pin
David Crow26-Jul-06 9:10
David Crow26-Jul-06 9:10 
GeneralRe: debug assertion failed Pin
identity_8526-Jul-06 9:39
identity_8526-Jul-06 9:39 
QuestionRe: debug assertion failed Pin
David Crow26-Jul-06 9:54
David Crow26-Jul-06 9:54 
AnswerRe: debug assertion failed Pin
Zac Howland26-Jul-06 10:26
Zac Howland26-Jul-06 10:26 

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.