Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


Creating additional libraries


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-06-2007, 02: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, 02:34 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,199
Default

See this thread for more information about Basic4ppc libraries:
How to create a Basic4ppc library

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, 03:52 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,770
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
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, 05: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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
creating chm files Ricky D Questions & Help Needed 2 10-15-2008 11:03 AM
Creating process-real!!! Byak@ Code Samples & Tips 6 10-06-2008 02:59 PM
Creating SIP spectra9 Questions & Help Needed 2 05-21-2008 03:32 PM
Creating code faster pmu5757 Basic4ppc Wishlist 0 04-13-2008 12:33 PM
Help Creating a dll Cableguy Questions & Help Needed 23 08-15-2007 05:30 PM


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


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