I'm still having problems loading libraries, and yes I have read the tutorial. I'm using version 6.8. I'm trying to use FilesEx but not having any success.
I downloaded the zip, unzipped it to Basic4ppc Desktop/Libraries, where Windows Explorer now shows FilesEx.dll, FilesEx.cs and FilesEx.chm. The chm file shows as the last item on the list in the program help.
This is the entire text of the simple test program:
I saved it in Basic4ppc Desktop/Projects.
Tools/Components leads me to the DLL dialog. I click "Add DLL". It leads me straight to /Libraries where I select FilesEx.dll for both device and desktop. I now have "FilesEx.dll" in both columns of the dialog. I click "OK". Immediately I get an error: "Could not load file or assembly 'file:///C:\Program Files\Anywhere Software\Basic4ppc Desktop\Projects\FilesEx.dll' or one of its dependencies. The system cannot find the file specified.".
The tutorial says "When you add a library to your project, Basic4ppc will copy the the libraries file to your project folder. This is the reason why you should save your project prior to adding a library (otherwise there is no project folder). From this moment on, Basic4ppc uses the copy held under the project's folder. (Versions prior to 6.8: a message will appear indicating success or failure to copy the files.)"
I have looked in the /Projects folder and FilesEx.dll is quite clearly present and correct along with the program, "CopyFiles.sbp". So why am I being told that the system cannot find it? And just as with the device when I reported a problem a few days ago, the "Add Object" menu item is greyed out.
If I try adding "AddObject("FilesEx1", "FilesEx")" in my App_Start sub I get exactly the same message. The system cannot find a file which I can see is present - I can even read it with a hex viewer.
I have followed the tutorial to the letter, have I not? Oh my aching head... :BangHead:
Thanks in advance for a solution.
Caravelle
I downloaded the zip, unzipped it to Basic4ppc Desktop/Libraries, where Windows Explorer now shows FilesEx.dll, FilesEx.cs and FilesEx.chm. The chm file shows as the last item on the list in the program help.
This is the entire text of the simple test program:
B4X:
Sub Globals
End Sub
Sub App_Start
FilesEx1.New1
Form1.Show
End Sub
' Copy entire card without renaming files
Sub Button1_Click
FilesEx1.DirectoryCopy("F:\DCIM\100CANON", "H:\Documents\Card1")
End Sub
I saved it in Basic4ppc Desktop/Projects.
Tools/Components leads me to the DLL dialog. I click "Add DLL". It leads me straight to /Libraries where I select FilesEx.dll for both device and desktop. I now have "FilesEx.dll" in both columns of the dialog. I click "OK". Immediately I get an error: "Could not load file or assembly 'file:///C:\Program Files\Anywhere Software\Basic4ppc Desktop\Projects\FilesEx.dll' or one of its dependencies. The system cannot find the file specified.".
The tutorial says "When you add a library to your project, Basic4ppc will copy the the libraries file to your project folder. This is the reason why you should save your project prior to adding a library (otherwise there is no project folder). From this moment on, Basic4ppc uses the copy held under the project's folder. (Versions prior to 6.8: a message will appear indicating success or failure to copy the files.)"
I have looked in the /Projects folder and FilesEx.dll is quite clearly present and correct along with the program, "CopyFiles.sbp". So why am I being told that the system cannot find it? And just as with the device when I reported a problem a few days ago, the "Add Object" menu item is greyed out.
If I try adding "AddObject("FilesEx1", "FilesEx")" in my App_Start sub I get exactly the same message. The system cannot find a file which I can see is present - I can even read it with a hex viewer.
I have followed the tutorial to the letter, have I not? Oh my aching head... :BangHead:
Thanks in advance for a solution.
Caravelle