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
  #111 (permalink)  
Old 03-21-2009, 11:06 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by moster67 View Post
Interesting...I will try and see if this works in VB.NET as well.
It will! It's the Basic4ppc library loading code that ignores classes beginning with underscores and it doesn't know, or care, what language generated the library. For some reason Erel wrote Basic4ppc to load both Public and Private classes from a library (backward compatibility maybe) but then added the "ignore underscore" code later so that stuff that you don't want to see in "Add Object" can be hidden although, and especially with VB.NET, on larger libraries you may get some classes that the compiler of the library has added showing up.
Reply With Quote
  #112 (permalink)  
Old 04-24-2010, 04:00 PM
Knows the basics
 
Join Date: Nov 2007
Posts: 60
Default

Trying to write a mine control for basic4ppc i try the scrollbar example of Erel.I open the class in visual studio 2008 and i build it without change anything.When i try to load the dll in a basic4ppc project this error message appears "An error occured.Unable to load one or more of the requested types.Retrieve the LoaderExceptions property for more information."What am i doing wrong;
Reply With Quote
  #113 (permalink)  
Old 04-24-2010, 04:22 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Can you upload the dll (zip it first)?
__________________
Basic4android documentation
Reply With Quote
  #114 (permalink)  
Old 04-24-2010, 04:30 PM
Knows the basics
 
Join Date: Nov 2007
Posts: 60
Default

Quote:
Originally Posted by Erel View Post
Can you upload the dll (zip it first)?
Here it is erel.I forgot to write that i use the vb example
Attached Files
File Type: zip ScrollBar.zip (2.3 KB, 20 views)
Reply With Quote
  #115 (permalink)  
Old 04-24-2010, 05:18 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

It works on the desktop. Does it fail on the device? Did you choose a "Smart device" project?
__________________
Basic4android documentation
Reply With Quote
  #116 (permalink)  
Old 04-24-2010, 05:31 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

It works fine on my iPAQ 214 as well.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.

Last edited by agraham : 04-24-2010 at 05:33 PM.
Reply With Quote
  #117 (permalink)  
Old 04-25-2010, 01:33 PM
Knows the basics
 
Join Date: Nov 2007
Posts: 60
Default

I restart the pc and everything is ok now (very curious indeed) Thank's Erel and Agraham
Reply With Quote
  #118 (permalink)  
Old 05-04-2010, 08:15 PM
Senior Member
 
Join Date: May 2007
Posts: 125
Default

Hi. How can I get rid of the MyProject class that keeps showing up in my Visual Basic.net project? I'm using Visual Studio 2008, and because there is already a DLL added that has a MyProject class in it Basic4ppc says that a key with myproject was added. Thanks.
Reply With Quote
  #119 (permalink)  
Old 05-04-2010, 09:13 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by Louis View Post
Hi. How can I get rid of the MyProject class
I'm afraid that you can't, that is part of the baggage that VB automatically puts in dlls and exes. The only solution is to switch to C# which usually doesn't include extra classes in the compilation.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
  #120 (permalink)  
Old 05-04-2010, 10:30 PM
Senior Member
 
Join Date: May 2007
Posts: 125
Default

Thank goodness I know C# then. Will do. Thanks.
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 03:22 AM.


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