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

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

Questions (Windows Mobile) Post any question regarding Basic4ppc.

Creating additional libraries

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-06-2007, 01:13 PM
Junior Member
 
Join Date: Nov 2007
Posts: 23
Default Creating additional libraries

Hi all, just wondering what the correct procedure is for creating a new dll library.

So far I've created my own test dll in VB.Net, added the dll to my Basic4PPC project, and created an instance of that object in the basic4ppc app start event. No error there.

However, when trying to get a result from a function in the library, I cannot see the function name in the popup options in the Basic4PPC IDE. Here's my function:

Public Function getV() As String
Return Me.v
End Function

I've also tried creating a class property, like this:

Public Readonly Property _V() As String
Get
Return Me.v
End Get
End Property

Am I on the right track? How do I return a value from the library?

Thanks!
Andrew.
Reply With Quote
  #2 (permalink)  
Old 11-06-2007, 01:34 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,726
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

See this thread for more information about Basic4ppc libraries:
http://www.basic4ppc.com/forum/code-samples-tips/35-how-create-basic4ppc-library.html

Functions that start with get or set (lower case letters) will not appear as they are usually helper methods of properties.
Your second property should work.
Reply With Quote
  #3 (permalink)  
Old 11-06-2007, 02:52 PM
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 Nycran View Post
How do I return a value from the library?
Either as the return value from a function or as a public property of the class.
Reply With Quote
  #4 (permalink)  
Old 11-07-2007, 04:51 AM
Junior Member
 
Join Date: Nov 2007
Posts: 23
Default

Bingo - got it working! Thanks guys.
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
creating chm files Ricky D Questions (Windows Mobile) 2 10-15-2008 10:03 AM
Creating process-real!!! Byak@ Code Samples & Tips 6 10-06-2008 01:59 PM
Creating SIP spectra9 Questions (Windows Mobile) 2 05-21-2008 02:32 PM
Creating code faster pmu5757 Basic4ppc Wishlist 0 04-13-2008 11:33 AM
Help Creating a dll Cableguy Questions (Windows Mobile) 23 08-15-2007 04:30 PM


All times are GMT. The time now is 05:44 AM.


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