Preserved Topic: C++ problem (Page 1 of 1) |
|
---|---|
Maniac (V) Inmate From: Eagleshieldsbay, Sweden |
posted 12-12-2002 22:27
This is my first program in ages. code: void __fastcall TForm1::Edit1Change(TObject *Sender) |
Bipolar (III) Inmate From: Michigan |
posted 12-13-2002 00:03
thats an easy one |
Maniac (V) Inmate From: Eagleshieldsbay, Sweden |
posted 12-13-2002 15:04
Thanks for the Help! |
Maniac (V) Inmate From: Eagleshieldsbay, Sweden |
posted 12-13-2002 16:29
I have a binary file and I want to read the header using this structure. How would I do this? code: typedef struct _Header Header;
|
Maniac (V) Inmate From: Eagleshieldsbay, Sweden |
posted 12-15-2002 17:03
*updated Q* |
Maniac (V) Inmate From: Eagleshieldsbay, Sweden |
posted 12-19-2002 20:38
Ok, error message problem again! code: void readHeader (AnsiString file)
|
Bipolar (III) Inmate From: Michigan |
posted 12-21-2002 05:58
Can't you locate the line its on?.... or give more information... i don't know what AbrHeader is... try commenting out your read and see if it runs?.. i mean.. if you don't have simple debuging skills like process of elimination to find out what line exactly is causing the problem.. your not going to be an effective programmer ... comment out each line... until the error goes away... if it then you comment out ever line.. and it is still happening.. .then your bug is somewhere else .. |
Maniac (V) Inmate From: Eagleshieldsbay, Sweden |
posted 12-21-2002 19:29
Thanks for the pointers Rahly! code: Form1->count->Text = header.count;
code: struct _AbrHeader |
Bipolar (III) Inmate From: Michigan |
posted 12-21-2002 23:16
ok... now thats much better... your problem seems to be that your trying to put a "number" into a "string" variable.... there should be a function to change the number to a string. |
Maniac (V) Inmate From: Eagleshieldsbay, Sweden |
posted 12-23-2002 16:18
I fixed that and still it doesn't work??? code: //--------------------------------------------------------------------------- |
Maniac (V) Inmate From: Eagleshieldsbay, Sweden |
posted 12-28-2002 22:33
It seems like I'm stuck! |