Download Horizon :: Staff Members :: Save Vault :: XboxMB YouTube


Old 03-11-2012   #1 (permalink)
Regular Member
ToXiC x SnIpEr's Avatar
Join Date: Dec 2011
Posts: 711
Thanks: 137
Default FATX Error

Okay so I found some code on the internet to work with(using X360.dll by DJ Shepard), and It basically just got the names of the drives and I edited the code so it gets the name of the drives into a tree node. So now, I have 2 tree views, and treeview 2 is for the folders and files of the drive(partriton) from treeview1. So I have the code for the drives in treeview1 working, but for the folders, I get an error. Anyone have any suggestions or fixes for the error?
My Code:
Code:
Imports X360.FATX
Imports X360.IO
Imports X360
Imports X360.FATX.FATXManagement
Public Class explorer

    Private Sub ShowDrivesToolStripMenuItem_Click(sender As System.Object, e As System.EventArgs) Handles ShowDrivesToolStripMenuItem.Click
        Dim Drives As New List(Of FATXDrive)()

        Dim DeviceReturns As DeviceReturn() = X360.FATX.FATXManagement.GetFATXDrives(10)
        For Each DeviceReturn As DeviceReturn In DeviceReturns
            Drives.Add(New FATXDrive(DeviceReturn))
        Next
        For Each Drive As FATXDrive In Drives.ToArray()
            TreeView1.Nodes.Add(Drive.DriveName)
        Next
        Dim FATXDrives As FATXDrive() = Drives.ToArray()

        Dim Partitions As FATXPartition() = Drives(0).Partitions


        Dim Files As FATXFileEntry() = Partitions(0).Files
        Dim Folders As FATXFolderEntry() = Partitions(0).Folders
        For Each folder As FATXFolderEntry In Partition(TreeView1.SelectedNode)
            TreeView2.Nodes.Add(folder.Name)
        Next
    End Sub
__________________
ToXiC x SnIpEr is online now Send a message via AIM to ToXiC x SnIpEr
Reply With Quote


Old 03-11-2012   #2 (permalink)
CLK

CLK's Avatar
Join Date: Sep 2010
Location: Spokane, WA
Posts: 1,595
Thanks: 1,615
Default Re: FATX Error

What error does it throw? Also, X360's FATX classes aren't the best. They're slow and don't work for all devices. They'll get the job done, but not well.
__________________

I'm gay.
CLK is offline
Reply With Quote
The following user thanked this post: RZRClanLeader


Old 03-11-2012   #3 (permalink)
Regular Member
ToXiC x SnIpEr's Avatar
Join Date: Dec 2011
Posts: 711
Thanks: 137
Default Re: FATX Error

Ya youre right X360 fatx isnt the best but I think DJ is working on a new one. Do you have any suggestions for a good fatx class? Anyway, here is the error:

Quote:
Error 1 Value of type 'System.Windows.Forms.TreeNode' cannot be converted to 'Integer'. C:\Users\Alex\Documents\Visual Studio 2010\Projects\techMOd1\techMOd1\explorer.vb 25 58 techMOd1
And the error is in this code:
Quote:
For Each folder As FATXFolderEntry In Partition(TreeView1.SelectedNode)
__________________
ToXiC x SnIpEr is online now Send a message via AIM to ToXiC x SnIpEr
Reply With Quote




Old 03-11-2012   #4 (permalink)
CLK

CLK's Avatar
Join Date: Sep 2010
Location: Spokane, WA
Posts: 1,595
Thanks: 1,615
Default Re: FATX Error

Should be SelectedNode.Index. party-buffalo - A utility for browsing Xbox 360 storage devices - Google Project Hosting / grab the CLKsFATXLib.dll from this: http://clkxu5.com/pb_final_maybe_no_clue.zip
__________________

I'm gay.
CLK is offline
Reply With Quote


Old 03-11-2012   #5 (permalink)
Banned
 
Join Date: Oct 2010
Location: Pennsylvania
Posts: 355
Thanks: 192
Default Re: FATX Error

Quote:
Originally Posted by CLK View Post
Needs more Up.
Mocha is offline Send a message via AIM to Mocha
Reply With Quote


Old 03-12-2012   #6 (permalink)
CLK

CLK's Avatar
Join Date: Sep 2010
Location: Spokane, WA
Posts: 1,595
Thanks: 1,615
Default Re: FATX Error

Quote:
Originally Posted by Mocha View Post
Needs more Up.
I actually got it to compile on Windows now. After doing a bunch of OS X work, some of the stuff I used to get it to work on OS X was causing issues with the Windows code, but now it should work just dandy. The thing I need to work on right now is doing recursive file/folder extracting, then the reading functions will be done

I also have to sync a few more commits. Haven't committed anything since March 3rd
__________________

I'm gay.
CLK is offline
Reply With Quote
The following user thanked this post: Mocha


Old 03-13-2012   #7 (permalink)

Hetelek's Avatar
sh042067
Join Date: Sep 2010
Location: NY
Posts: 1,675
Thanks: 1,004
Default Re: FATX Error

Quote:
Originally Posted by CLK View Post
I actually got it to compile on Windows now. After doing a bunch of OS X work, some of the stuff I used to get it to work on OS X was causing issues with the Windows code, but now it should work just dandy. The thing I need to work on right now is doing recursive file/folder extracting, then the reading functions will be done

I also have to sync a few more commits. Haven't committed anything since March 3rd
You already finished injecting?

And sir, did you use the word 'Extracting' ?! :o

EDIT: o wait. Read it wrong, you said 'The reading functions will be done'.
__________________





Hetelek is offline Send a message via AIM to Hetelek
Reply With Quote

Reply

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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 09:41 PM.


 

Powered by vBulletin® Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
COPYRIGHT (c) 2010 - 2013 - XboxMB - DESIGN BY:
EDENWEBS.COM