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 > Additional Libraries
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Additional Libraries Users contributed libraries.
This sub-forum is only available to licensed users.

ImageLibEx library

Reply
 
LinkBack Thread Tools Display Modes
  #51 (permalink)  
Old 12-13-2008, 10:31 AM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 3,827
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Hi Andrew,
I have a strange problem. In my CAD program I am using the ImageLibEx library and get the error below when I compile for the device, compiling for the desktop is OK, compiling for the device non optimized is OK.

Then I tried a test program I already had, added the objects I use in the CAD program and get the same error. Then I removed the objects one after the other and get the same error as long as the ImageLibEx is in the Components.
Then I began a new porgram in a new folder, just a Form with nothing in it. Added the ImageLibEx libraries and get the same error. Tried with older versions of the librariers, still the same.
Then I tested the Weather program that also uses the ImageLibEx library. When I compile this program for the device it's OK !?
Then I removed and added the libraries in the IDE, still OK.
Then I began a new program in the same folder, just one Form and nothing in, added the ImageLibEx libraries in the Components, and nothing else, when compiling for the device I get the error.
It seems that the problem is with the cs file because renaming it in the B4PPC libraries folder, the compilation is OK.
I attached the whole Weather folder and images of the error message and the content of the B4PPC Libraries folder.

The example code in the ImageLibEx1.3 gives the same error.

I am somewhat confused with this behaviour and don't understand what I am missing.

Best regards and thank you in advance for your help.
Attached Images
File Type: jpg Error.jpg (18.4 KB, 10 views)
__________________
Klaus
Switzerland
Reply With Quote
  #52 (permalink)  
Old 12-13-2008, 10:51 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

I am afraid you haven't read the first post properly
Quote:
EDIT :- Version 1.1 posted with new method BitmapEx.Rotate which rotates a bitmap an arbitrary number of degrees. Note that if you want to merge the source for a device app you need to put a SIP(False) statement in your App_Start if you do not already use SIP elsewhere. This forces the Basic4ppc to reference a .NET assembly that it would not otherwise do and that is required for merging. This need will be removed with the next version of Basic4ppc.
This has been needed for source merging since version 1.1, I am surprised you haven't come across it before
Reply With Quote
  #53 (permalink)  
Old 12-13-2008, 11:06 AM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 3,827
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Thank's Andrew,
I probably read it but didn't remember nor notice it.
Is there another keyword that forces Basic4ppc to reference the .NET assembly, because in the Weather program SIP is never used ?

Best regards and thank's again.
__________________
Klaus
Switzerland
Reply With Quote
  #54 (permalink)  
Old 12-13-2008, 11:27 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 klaus View Post
Is there another keyword that forces Basic4ppc to reference the .NET assembly, because in the Weather program SIP is never used ?
No but "SIP(False)" as the first statement in App_Start is benign and causes no problems, it just forces the optimising compiler to include a reference to the Microsoft.WindowsCE.Forms assembly.
Reply With Quote
  #55 (permalink)  
Old 12-13-2008, 12:02 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 3,827
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Sorry for insisting, but what I don't understand is that it works with the Weather program even though there is no SIP elsewhere in this program.

Best regards.
__________________
Klaus
Switzerland
Reply With Quote
  #56 (permalink)  
Old 12-13-2008, 01:05 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 klaus View Post
what I don't understand is that it works with the Weather program even though there is no SIP elsewhere in this program.
Sorry, I didn't understand what you meant, I thought that for some reason you didn't want to use a SIP statement - I didn't realise that you meant that Weather compiled OK without. The answer is I don't know.
Reply With Quote
  #57 (permalink)  
Old 12-13-2008, 02:05 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 3,827
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Thank's, so we are at least two not knowing why .

Best regards.
__________________
Klaus
Switzerland
Reply With Quote
  #58 (permalink)  
Old 12-13-2008, 02:21 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 should have been obvious It's having the HardwareDesktop library in the project that forces it because of the entry in LibrariesExceptions.txt. The next release of Basic4ppc will include ImageLibEx in this file to force the reference when that is used.

Code:
'1 - Namespace changes
'
2 - Device additional references
'
3 - Desktop additional references
1:dzHWdesktop.dll:dzHWdesktop->dzHW
2<b><font color="red">:HardwareDesktop.dll:Microsoft.WindowsCE.Forms.dll</font></b>
2:ControlsExDeviceDummy.dll:Microsoft.WindowsCE.Forms.dll
Reply With Quote
  #59 (permalink)  
Old 12-14-2008, 03:02 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 3,827
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Thank's for the explanation.

Best regards.
__________________
Klaus
Switzerland
Reply With Quote
  #60 (permalink)  
Old 12-27-2008, 07:01 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 3,827
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Hi Andrew,

I have a question about the NormalFont Object in the ImageLibEx library.
I use a DrawerEx Object to draw strings with a NormalFont object attached to this drawer.
Each time I change the Font.Size I must redefine the Font to the drawer with Drawer.Font=Font1.Value.
I would have expected that once a font is attached to a drawer it remains to it even when changing the font parameter.
Attached a small test code.

Thank you in advance and Best regards.
Attached Files
File Type: sbp FontTest.sbp (983 Bytes, 16 views)
__________________
Klaus
Switzerland
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
Door library (Beta) - Special library Erel Official Updates 60 01-13-2011 12:23 PM
Merging Outlook library and Phone library Erel Official Updates 11 09-15-2010 10:22 AM
PhoneticAlgorithms Library (ex-StringComparison Library) moster67 Additional Libraries 10 11-11-2008 08:46 PM
ImageLibEx? agraham Basic4ppc Wishlist 2 11-05-2007 02:15 PM
ImageLibeX Error XerVision Questions (Windows Mobile) 8 08-27-2007 07:14 PM


All times are GMT. The time now is 01:52 AM.


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