Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Beta Versions
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Beta Versions This forum is the place to discuss issues regarding Basic4ppc beta versions.

Storage of module

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-31-2008, 08:55 AM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 4,463
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default Storage of module

I have begun to work with the modules, big improvement.

I find that it would be intersting that we could store the modules in a certain folder and the program knows where they are, without copying them to the program's folder. Because if we use the same module in 5 different programs it would be stored 5 times. If we make an improvement we must update all the modules in the other folders. If we had the modules in one dedicated folder we won't have to care about versions. The same for image files used in the module's forms.

The same principle could be applied for the libraries, the IDE knows where they are and especially now where most of them are embedded in the exe file.

Best regards.
__________________
Klaus
Switzerland

Beginner's Guide / User's Guide
Reply With Quote
  #2 (permalink)  
Old 08-31-2008, 11:33 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,700
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

The advantages you described are clear. However there are some disadvantages:
- A user can add an existing module and change it without considering the consequences it will have on several other projects. He can easily "break" an older project.
- Copying a project from one computer to another (or sharing in the forum) will be difficult.

While there are situations that the current implementation is more cumbersome it is for sure clear and simple to understand which modules are used by a project.

The libraries mechanism was improved in this version. If a library is missing, the IDE will try to copy it from the libraries folder to the source code folder.
I see one advantage in copying the libraries to the source code folder. If you are working inside an Activesync synchronized folder then the libraries will be in the right place on both the device and the desktop.
Maybe in a future version this concept will be changed.
Reply With Quote
  #3 (permalink)  
Old 08-31-2008, 11:43 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by Erel View Post
A user can add an existing module and change it without considering the consequences it will have on several other projects. He can easily "break" an older project.
Yes, I've done this to myself in Visual Studio where you have the choice to copy or just "reference" another source file when you add it to a project. I always copy now. It's a bit more cumbersome if you want to make a global change but its safer.
Reply With Quote
  #4 (permalink)  
Old 08-31-2008, 12:10 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 4,463
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Hi both,

I understand your points of view, I had used it in Visual Basic, found it convenient and was always happy with it.

I was not aware that the libraries are not in the B4PPC program folder on the device but only on the desktop. So I understand the advantage for copying the libraies to the program's folder.

Has the library mechanism already been improved in the beta version, or will it be in the final release ?
I imported an existing module that needs the FormLib which was not in the Main module's folder. I get the message that the module is copied to the program's folder, but for the library I get the message below.

Best regards.
__________________
Klaus
Switzerland

Beginner's Guide / User's Guide
Reply With Quote
  #5 (permalink)  
Old 08-31-2008, 12:23 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,700
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Quote:
Has the library mechanism already been improved in the beta version, or will it be in the final release ?
I imported an existing module that needs the FormLib which was not in the Main module's folder. I get the message that the module is copied to the program's folder, but for the library I get the message below.
It was already implemented but it deals with a different scenario.
The list of referenced libraries is only stored in the main file (sbp).
If you open an sbp and a library is missing then it will be automatically copied from the libraries folder.

Maybe it will be changed so modules will also store the list of used libraries.
Reply With Quote
  #6 (permalink)  
Old 08-31-2008, 01:13 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,344
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Quote:
Originally Posted by Erel View Post
The list of referenced libraries is only stored in the main file (sbp).
This is not so good for modules with DLLs...

Quote:
If you open an sbp and a library is missing then it will be automatically copied from the libraries folder
Very nice feature, saves a lot of the forum's server disk space...

Quote:
Maybe it will be changed so modules will also store the list of used libraries.
YES please!!!
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)

My Posts helped you? Consider Buying me a Porto Glass!
Reply With Quote
  #7 (permalink)  
Old 08-31-2008, 02:36 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 4,463
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

I fully agree with Cableguy,

It would be very convenient if, when importing a module, the libraries would automatically be loaded if not yet in the Main program's folder.

The same feature would of course also be very convenient for the image files. I am mainly using ImageButtons rather than menus and therefore have several image files belonging to the module.

Best regards.
__________________
Klaus
Switzerland

Beginner's Guide / User's Guide
Reply With Quote
Reply


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Properties module - useful module for working with properties / ini files Erel Code Samples & Tips 2 10-13-2011 09:02 PM
Accessing file on device or storage card tsteward Questions (Windows Mobile) 2 11-01-2008 11:32 PM
passing a module name as a variable Cableguy Questions (Windows Mobile) 4 10-24-2008 09:47 AM
Fragen: Kamera und C-Module navi55 German Forum 2 09-26-2008 10:07 AM
storage of libraries in WM moster67 Questions (Windows Mobile) 2 08-10-2008 09:09 AM


All times are GMT. The time now is 02:47 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0