![]() Preserved Topic: C++ problem (Page 1 of 1) |
|
---|---|
Maniac (V) Inmate From: Eagleshieldsbay, Sweden |
![]() This is my first program in ages. code: void __fastcall TForm1::Edit1Change(TObject *Sender) |
Bipolar (III) Inmate From: Michigan |
![]() thats an easy one |
Maniac (V) Inmate From: Eagleshieldsbay, Sweden |
![]() Thanks for the Help! |
Maniac (V) Inmate From: Eagleshieldsbay, Sweden |
![]() 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 |
![]() *updated Q* |
Maniac (V) Inmate From: Eagleshieldsbay, Sweden |
![]() Ok, error message problem again! code: void readHeader (AnsiString file)
|
Bipolar (III) Inmate From: Michigan |
![]() 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 |
Maniac (V) Inmate From: Eagleshieldsbay, Sweden |
![]() Thanks for the pointers Rahly! code: Form1->count->Text = header.count;
code: struct _AbrHeader |
Bipolar (III) Inmate From: Michigan |
![]() 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 |
![]() I fixed that and still it doesn't work??? code: //--------------------------------------------------------------------------- |
Maniac (V) Inmate From: Eagleshieldsbay, Sweden |
![]() It seems like I'm stuck! |