Click here to Skip to main content
15,899,124 members
Home / Discussions / C#
   

C#

 
GeneralRe: Accessing variables from the code behind page Pin
jaimecavazos9-Dec-03 6:24
jaimecavazos9-Dec-03 6:24 
GeneralCustom Tree View Painting Pin
vektuz8-Dec-03 14:14
vektuz8-Dec-03 14:14 
GeneralRe: Custom Tree View Painting Pin
Heath Stewart8-Dec-03 18:19
protectorHeath Stewart8-Dec-03 18:19 
GeneralRe: Custom Tree View Painting Pin
vektuz8-Dec-03 20:25
vektuz8-Dec-03 20:25 
GeneralRe: Custom Tree View Painting Pin
J. Dunlap8-Dec-03 20:42
J. Dunlap8-Dec-03 20:42 
GeneralRe: Custom Tree View Painting Pin
Heath Stewart9-Dec-03 2:41
protectorHeath Stewart9-Dec-03 2:41 
GeneralProblem with MSDN Pin
Redbehelit8-Dec-03 14:00
Redbehelit8-Dec-03 14:00 
GeneralRe: Problem with MSDN Pin
Heath Stewart8-Dec-03 18:12
protectorHeath Stewart8-Dec-03 18:12 
Generalconvert to c# Pin
Rob Tomson8-Dec-03 13:16
Rob Tomson8-Dec-03 13:16 
GeneralRe: convert to c# Pin
Christian Graus8-Dec-03 16:07
protectorChristian Graus8-Dec-03 16:07 
GeneralRe: convert to c# Pin
Christian Graus8-Dec-03 16:40
protectorChristian Graus8-Dec-03 16:40 
GeneralRe: convert to c# Pin
Rob Tomson8-Dec-03 17:58
Rob Tomson8-Dec-03 17:58 
GeneralRe: convert to c# Pin
Heath Stewart8-Dec-03 18:10
protectorHeath Stewart8-Dec-03 18:10 
GeneralList View Scroll Pin
compubaby8-Dec-03 12:25
compubaby8-Dec-03 12:25 
GeneralRe: List View Scroll Pin
Heath Stewart8-Dec-03 18:05
protectorHeath Stewart8-Dec-03 18:05 
Generalsome general questions about sounds Pin
blakeb_18-Dec-03 8:52
blakeb_18-Dec-03 8:52 
GeneralRe: some general questions about sounds Pin
Heath Stewart8-Dec-03 9:54
protectorHeath Stewart8-Dec-03 9:54 
GeneralRe: some general questions about sounds Pin
blakeb_18-Dec-03 9:57
blakeb_18-Dec-03 9:57 
GeneralRe: some general questions about sounds Pin
Heath Stewart8-Dec-03 10:02
protectorHeath Stewart8-Dec-03 10:02 
GeneralRe: some general questions about sounds Pin
leppie8-Dec-03 10:33
leppie8-Dec-03 10:33 
GeneralRe: some general questions about sounds Pin
leppie8-Dec-03 10:38
leppie8-Dec-03 10:38 
GeneralRe: some general questions about sounds Pin
blakeb_18-Dec-03 10:55
blakeb_18-Dec-03 10:55 
GeneralRe: some general questions about sounds Pin
Heath Stewart8-Dec-03 11:43
protectorHeath Stewart8-Dec-03 11:43 
GeneralRe: some general questions about sounds Pin
blakeb_18-Dec-03 11:49
blakeb_18-Dec-03 11:49 
GeneralRe: some general questions about sounds Pin
Heath Stewart8-Dec-03 11:56
protectorHeath Stewart8-Dec-03 11:56 
As leppie was saying, it's just a file with offsets - your typical archive type file. You could have a structure as the first blob in the file like so:
public struct Header
{
  public int count;
  public FileHeader[] headers;
}
public struct FileHeader
{
  public string Filename;
  public long Offset;
  public long Length;
}
You fill the Header structure with information, such as how many files are in the archive and an array that represents each file. You can provide a filename (might as well) and a byte offset to where that file is found. You can get a lot more advanced than this, and even this basic example wouldn't work as well as many others out there.

Basically, though, you take that offset (either from the beginning of the file (offset 0) or from the end of the Header (offset == size of Header, including the array of FileHeaders), and start reading a byte array from that Offset until Length bytes has been read.

There is no standard way of doing this, but I do remember seeing a couple of articles about archives here on CP. You could try googling for keywords such as archive, header, and other stuff I've used here. leppie might have some other suggestions.

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.