UINT32 / UINT16 Parsing

Randomblink

The Irreverent Reverend
Local time
Today, 01:27
Joined
Jul 23, 2001
Messages
279
Question...
I am working on a data-app for a game I play.
Alot of the Files use UINT32 formatting for structures of data.

What I would like is to create a Form in Access that will open up a file, parse through, drop data from the file into Fields in Various Tables, and then I can work with the data on a user-friendly level... However, I am unsure of what code I need to:

a) Import the Data from the Files

b) Convert the UINT32/UINT16 data to ANSI characters or at least readable characters.

ANY HELP would be appreciated...
Oh, and the Game Company gives out File Formats on their files, so I can parse correctly once I understand how to convert?
 
I have no idea about the unit file formats,

1)Are they text or binary?

2)Do you have all the info as to the structure of the file?

if the file is binary then unless you have the file format you are going to have a lot of fun decifering the file.


The best way i can think of to accumplist this, is to open the file in vba, then use insert query's to add the data to the tables.
 
UINT32 / UINT16 Still Can't Parse

Here is a link to the PDF Document Concerning the File Structure

So yes, I do have the struct.
However, since I have never imported files and stripped them... I am unsure of what to do with UINT32 or 16 style of data types... I just don't know how to convert them...

I ASSUME that I need to create a Public Type? Or Struct? Altho I have never worked with structs in VB? It's just frustrating.

Any help will be MUCH appreciated...
Thanks...
 
This looks like your going to have a lot of fun getting this all working.


A struct is a type in vb

eg

Code:
 Public Type TypeName
       someVal as string
       Somotherval as long
end type

To use the type you need to decare a var

ie

Code:
dim someVar as TypeName

somevar.someval = "BLAR BLAR BLAR"
Somevar.somotherval = 0



Your other option you have is to use classes, (but these are harder to explain)
 
Donkey Shins

Shadez,

I meant to say Thanks...
I really appreciate the help on this one...
Well, I suppose I will have to wait to get my little bro's VB.NET package to check it out... I am NOT finding ANYTHING on the UINT32 that is NOT linked to .NET crap... If you go to Microsofts Developer Site and search for UINT32 you get ALOT of crap... ugh!

Ah well...
I plan on hitting this hard...
I am really hoping to figure this one out...
Since the only school I can afford is the 'Hardknocks' version, I fear my teachers end up being random tips from people like yourself... so... thanks!
 
Strange i cant see anything on the MSDN site, Did a search ad nothin?????

You could try

www.vbforums.com , not a bad coding resouce.


Well im off home for the weekend, Sorry i couldnt of been more help.




PS (if im board then i might have a go at your problem, file type conversion is one of my specialties);)


Good luck


:cool:ShadeZ:cool:
 

Users who are viewing this thread

Back
Top Bottom