Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Code Samples & Tips
Home Register FAQ Members List 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, 04:14 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,572
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, 414 views)
Reply With Quote
  #2 (permalink)  
Old 05-06-2007, 01: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, 03:22 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,572
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, 332 views)
Reply With Quote
  #4 (permalink)  
Old 05-06-2007, 03: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, 12: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, 03:01 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,572
Default

You need the professional version to create smart device projects.
Reply With Quote
  #7 (permalink)  
Old 05-13-2007, 02: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, 11:26 AM
maXim's Avatar
Senior Member
 
Join Date: May 2007
Location: Florence, Italy
Posts: 128
Send a message via MSN to maXim
Question Create a Library for Basic4ppc...

... is it possible in SharpDevelop?
(http://www.sharpdevelop.net/)
Reply With Quote
  #9 (permalink)  
Old 05-24-2007, 11:37 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,572
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, 01:55 PM
maXim's Avatar
Senior Member
 
Join Date: May 2007
Location: Florence, Italy
Posts: 128
Send a message via MSN to maXim
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create .cab file for Smartphone? RCC2k7 Questions & Help Needed 1 05-30-2008 07:02 AM
How to create a new appointment willisgt Questions & Help Needed 2 05-15-2008 08:21 PM
how to create a database ? gjoisa Questions & Help Needed 27 02-14-2008 05:38 PM
Can you help me create B4P lib? conf Questions & Help Needed 7 08-20-2007 07:41 PM
how to create spreadsheetlike function? Stellaferox Questions & Help Needed 10 06-30-2007 01:09 PM


All times are GMT. The time now is 04:16 AM.


Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0