AMC File structure

New scripts, templates and translation files that allows to use Ant Movie Catalog to manage other things than movies
Post Reply
Kenji84
Posts: 8
Joined: 2010-06-17 09:50:18

AMC File structure

Post by Kenji84 »

I try to Open the amc file with Vb.net.

It works fine with the First Information of the file Header .
(strFileHeader35 = ' AMC_3.5 Ant Movie Catalog 3.5.x www.buypin.com www.antp.be ';
OwnerName: string;
OwnerSite: string;
OwnerMail: string;
OwnerDescription: string;
)

If i read the Help file correct then they must come the Movie Information.
On first Step the Nummber of the 1. movie but I cant get it work.
Can annyone help me ?

In the following my Code snippet

Using br As New BinaryReader(fs)
strFileHeader35 = br.ReadChars(65)
OwnerName = br.ReadChars(br.ReadUInt32)
OwnerSite = br.ReadChars(br.ReadUInt32)
OwnerMail = br.ReadChars(br.ReadUInt32)
OwnerDescription = br.ReadChars(br.ReadUInt32)
Movie1Nummber = br.ReadChars(br.ReadUInt32)
antp
Site Admin
Posts: 9651
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

After having read each of the uint32 for the string, you have to read the string itself if the uint32 read previously is non zero. Also it should rather be int32 (I guess): these are signed integer.
Kenji84
Posts: 8
Joined: 2010-06-17 09:50:18

Post by Kenji84 »

Thanks antp it was the uint32 that was false int32 works well.
Post Reply