![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
Hi RandomCoder,
The only way I found is using the FileDialogChanger. Please see this Thread for details: Source Code Folders On The Device specci48 |
|
||||
|
Sorry Specci48 but you've mis-interpreted my question.
I would like to select a folder using the OpenDialogueEx control from the desktop only library. The folder being selected may not have any files within it but I need to get its path. I can use a treeview and the folderchooser example but thats a little long winded compared to the OpenDialogueEx control. Regards, RandomCoder
__________________
Desktop: Pentium D 920 (2.8GHz, 4MB L2 Cache, 800MHz FSB), 1024MB, 256MB Radeon X600, 250GB HD. Device : Axim X51v XScale 624MHz, 3.7" VGA, 64MB SDRAM, 256MB Flash ROM + 1Gb SD. "Defeat never comes to any man until he admits it."Josephus Daniels |
|
||||
|
You can sort of do it with the Door library by stopping the Dialog checking if a file exists and pre-setting a filename. odx is an OpenDialogEx and obj1 is a Door Object.
Code:
Sub App_Start
odx.New1
obj1.New1(false)
obj1.FromLibrary("odx","ofd",B4PObject(2))
obj1.SetProperty("CheckFileExists", false)
obj1.SetProperty("FileName", "_") ' inconspicuous filename
odx.Show
f = odx.File
For i = StrLength(f) - 1 To 0 Step -1
If StrIndexOf(f, "\",i) > 0 Then
Exit
End If
Next
f = SubString(f,0,i)
Msgbox(f)
End Sub
|
|
||||
|
Thanks to both of you for your input.
Using the door library is my prefered solution as I already use this library to catch when a USB device has been attached. The in-built windows file open dialogue is much nicer, plus more familar, than having to use the folder chooser example which uses the tree view library and would cause my program to become quite lengthy. Cheers ![]() RandomCoder
__________________
Desktop: Pentium D 920 (2.8GHz, 4MB L2 Cache, 800MHz FSB), 1024MB, 256MB Radeon X600, 250GB HD. Device : Axim X51v XScale 624MHz, 3.7" VGA, 64MB SDRAM, 256MB Flash ROM + 1Gb SD. "Defeat never comes to any man until he admits it."Josephus Daniels |
|
||||
|
Quote:
And is it possible to rec/tran data with an attached device. I'm trying to get a microcontroller connected via a usb cabel, but not succeeding ![]()
__________________
Endemol ![]() Waste of space ![]() O2 XDA Artemis Touch Flo 4.02 Full Cube Rom WM6.1 http://www.taximania.net |
|
||||
|
It's what I posted here Drive Detection but it won't help for what you want.
Quote:
|
|
||||
|
@agraham
The chip is a microchip pic18F2455. Microchip supply HID software for the chips. pid etc are all taken care of, apparently. All I need are the ppc hid files, and work out how to control the other pins of the chip from within basic4ppc. Famous last words . . .
__________________
Endemol ![]() Waste of space ![]() O2 XDA Artemis Touch Flo 4.02 Full Cube Rom WM6.1 http://www.taximania.net |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Using rapi from desktop to copy file from device to desktop | sunnyboyj | Questions & Help Needed | 9 | 02-08-2008 12:40 PM |