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

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

Code Samples & Tips Share your recent discoveries and ideas with other users.

How to create a Basic4ppc library

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-01-2007, 05:14 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default How to create a Basic4ppc library

Creating libraries is pretty easy.
It can be done using C# or VB .Net and using Visual Studio 2003 or 2005 (professional version).
You should create a .Net CF class library.
The library should include at least one public constructor (which will be converted to New1, New2...).
You could use overloading (again, Basic4ppc will add the numbers as necessary).
Basic4ppc will handle the data conversion of the following types:
- Primitive types (int16, double, byte...).
- String.
- Control.
- Stream.
- Arrays of primitive types.
- Color
Events can also be used. See the attached example for the syntax of events.
If the class implements the IDisposable interface, Basic4ppc will call the Dispose method when the application ends (making sure that all the resources are freed).

If there is no need of a special function of .Net CF 2.0, it is better to target .Net CF 1.0 (to prevent the need to install .Net CF 2.0).
Attached is the source code of the ScrollBar library.
Please feel free to ask any question regarding the libraries.
Attached Files
File Type: zip ScrollBar.zip (3.0 KB, 1024 views)
Reply With Quote
  #2 (permalink)  
Old 05-06-2007, 02:02 PM
leo leo is offline
Junior Member
 
Join Date: May 2007
Location: Argentina
Posts: 22
Default

Please,
does somebody have an example of how to create a library for P4PPC in VB?
regards
Reply With Quote
  #3 (permalink)  
Old 05-06-2007, 04:22 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Attached is the VB version of the library.
It doesn't include all the properties.
Attached Files
File Type: zip VB-ScrollBar.zip (2.9 KB, 824 views)
Reply With Quote
  #4 (permalink)  
Old 05-06-2007, 04:52 PM
leo leo is offline
Junior Member
 
Join Date: May 2007
Location: Argentina
Posts: 22
Default

You are GREAT, Erel!
Reply With Quote
  #5 (permalink)  
Old 05-12-2007, 01:54 PM
leo leo is offline
Junior Member
 
Join Date: May 2007
Location: Argentina
Posts: 22
Default

Hi,
I cannot open the project in VB .net
I have VB .Net standard 2003...
Reply With Quote
  #6 (permalink)  
Old 05-12-2007, 04:01 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

You need the professional version to create smart device projects.
Reply With Quote
  #7 (permalink)  
Old 05-13-2007, 03:31 PM
leo leo is offline
Junior Member
 
Join Date: May 2007
Location: Argentina
Posts: 22
Default

Ok, but same I cannot open it!, will the project be well created?
Reply With Quote
  #8 (permalink)  
Old 05-24-2007, 12:26 PM
maXim's Avatar
Basic4ppc Veteran
 
Join Date: May 2007
Location: Sesto Fiorentino - Florence (Italy)
Posts: 224
Send a message via MSN to maXim Send a message via Skype™ to maXim
Awards Showcase
Beta Tester 
Total Awards: 1
Question Create a Library for Basic4ppc...

... is it possible in SharpDevelop?
(http://www.sharpdevelop.net/)
Reply With Quote
  #9 (permalink)  
Old 05-24-2007, 12:37 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

I think that you can't (or that it is very complicated).
You should check if it supports .Net CF development.
Reply With Quote
  #10 (permalink)  
Old 05-24-2007, 02:55 PM
maXim's Avatar
Basic4ppc Veteran
 
Join Date: May 2007
Location: Sesto Fiorentino - Florence (Italy)
Posts: 224
Send a message via MSN to maXim Send a message via Skype™ to maXim
Awards Showcase
Beta Tester 
Total Awards: 1
Unhappy

Thanks for Your answer Mr. Erel,
Sigh...
However I will try there!
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
Can I use basic4ppc to create a Bluetooth middleware solution? Olav Questions (Windows Mobile) 1 09-22-2008 12:21 PM
How to create a new appointment willisgt Questions (Windows Mobile) 2 05-15-2008 09:21 PM
how to create a database ? gjoisa Questions (Windows Mobile) 27 02-14-2008 06:38 PM
Can you help me create B4P lib? conf Questions (Windows Mobile) 7 08-20-2007 08:41 PM
Table create with no data tvrman Questions (Windows Mobile) 4 06-25-2007 09:46 PM


All times are GMT. The time now is 02:35 AM.


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