Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Aug 16th, 2005, 9:23 AM   #1
qub333
Newbie
 
Join Date: Aug 2004
Posts: 13
Rep Power: 0 qub333 is on a distinguished road
C# Under Mono - Gnome Bindings

I would like to start by saying this is my first forray into C#, so I apologize for any terminology misused.

I am looking for a way to read the contents of different compressed files under C# (to be integrated into the Beagle Desktop Search, should I figure this out) and while there is plenty of solid documentation on integrating gtk#/glade with C# to make simple interfaces, the mono runtime seems to be lacking any way to compress/decompress a stream without doing it manualy.

While reading through the Mono Documentation, I found a Gnome.Vfs class that extendts one of System.IO's classes. I believe Gnome's VFS can read some compressed formats. Does anyone have any experiance with this? Moreover could someone loan some simple POC type code? I am not solid on C# syntax yet, so I might just be messing things up that way.

using System;
using Gnome.Vfs;
class MainClass
{
        private VfsStream temp; //attempt to declare a VfsStream
        public static void Main(string[] args)
        {

                temp = new VfsStream("/home/qub333/samplecomp.zip", 
                        new FileMode(open)); //attempt to create a VfsStream

                Console.WriteLine("Hello World!"); // So far, the only part that works 
        }
}

Last edited by Pizentios; Aug 16th, 2005 at 9:41 AM.
qub333 is offline   Reply With Quote
Old Aug 16th, 2005, 9:42 AM   #2
Pizentios
Programming Guru
 
Pizentios's Avatar
 
Join Date: May 2004
Location: Brandon, Manitoba, Canada
Posts: 2,023
Rep Power: 7 Pizentios is on a distinguished road
Send a message via ICQ to Pizentios Send a message via MSN to Pizentios
fixed code tags
__________________
Profanity is the one language that all programmers understand.

Check out my Blog <---updated Nov 30 2007!
Pizentios is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

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




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 8:38 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC