GIDForums  

Go Back   GIDForums > Computer Programming Forums > C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 04-Jan-2009, 20:24
jaosming jaosming is offline
New Member
 
Join Date: Jan 2009
Posts: 1
jaosming is on a distinguished road
Question

What can I do with this?


Hi,


Recently someone who was working on a program that could decompress and import/export textures from a container file stopped working on it and posted this.

CPP / C++ / C Code:

typedef struct {
IFF_HEADER iffHeader; 
IFF_MAINDATA iffHadesData[dwDataFileCount];
} IFF_FILE;

typedef struct {
DWORD dwMagic; 
DWORD dwSize; 
DWORD dwFileLen;
DWORD dwReserve;
DWORD dwDataFileCount;
DWORD dwUnknow1;
DWORD dwSubFileCount;
DWORD dwUnknow2; 
IFF_HEADER_DATA ihdData[dwDataFileCount];
DWORD dwSubFile[dwSubFileCount];
IFF_HEADER_SUB ihdSub[dwSubFileCount];
} IFF_HEADER;

typedef struct {
DWORD dwName; 
DWORD dwType; 
DWORD dwUnknow1;
DWORD dwUnCompressLen;
DWORD dwUnknow2; 
DWORD dwStartOffset;
DWORD dwCompressLen; 
DWORD dwReserve; 
} IFF_HEADER_DATA;

typedef struct {
DWORD dwName; 
DWORD dwType; 
DWORD dwSubCount;
DWORD dwOffset[dwSubCount]; 
} IFF_HEADER_SUB;

typedef struct {
DWORD dwFlag; 
DWORD dwUnCompressLen; //reverse
DWORD dwCompressLen; //reverse
DWORD dwUnknow1;
DWORD dwHades; 
BYTE btData[dwCompressLen-20];//compressed
} IFF_MAINDATA;

My friend who did some C++ in the past recognized some of this but didnt remember enough to create a program.

My question is if there is enough information for me to learn some basic C++ skills to create a program for these files?
Last edited by LuciWiz : 04-Jan-2009 at 21:12. Reason: Please insert your C++ code between [cpp] & [/cpp] tags
 
 

Recent GIDBlogOnce again, no time for hobbies by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 01:03.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.