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.

Merging agraham libraries with the exe

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-27-2008, 04:46 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 Merging agraham libraries with the exe

As you all know version 6.3 can merge libraries into the final exe for optimised compiled apps. This is achieved by having the source code for the dll in the Basic4ppc Desktop\Libraries folder. I have been considering how to make my libraries available for merging if required.

I have decided that rather than trying to publish all the sources at once I will do it in response to specific requests. This will let me ensure, on an individual library basis, that the sources will bear correct version info and will in fact merge correctly. It will also let me post the source in the appropriate thread to maintain a single point of access to each library and its' correctly versioned source code.

Therefore please post specific requests for library source to this thread. I reserve the right to not post source if :-

a) It won't correctly merge.
or
b) I don't want or can't be bothered to
Reply With Quote
  #2 (permalink)  
Old 05-27-2008, 06:42 PM
LineCutter's Avatar
Senior Member
 
Join Date: May 2007
Location: Daarsit
Posts: 161
Awards Showcase
Beta Tester 
Total Awards: 1
Default

I'll get in first with a request for the chartsDesktop.dll It's been bugging me, just a little, that this is the only dll in one of my current projects that's not neatly merged into the exe.
(I'm targeting not very computer literate users, so the less confusion in the program directory the better)

Thanks for the offer (& the work it'll cost you).
Reply With Quote
  #3 (permalink)  
Old 05-27-2008, 06:50 PM
taximania's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Derbyshire. UK
Posts: 592
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
Originally Posted by agraham View Post
This is achieved by having the source code for the dll in the Basic4ppc Desktop\Libraries folder)
Thanks for sharing that

I take it they must be C code .cs files
I just tried a Vb.Net .vb file and it didn't work
__________________
.
.
.
Don't ask, I'm fine, honest. !!
.
.
.
Just a little crazy at times



O2 XDA, GW Evo 2.1 UC WWE Rom, WM6.1
Radio Ver 03.34.90
With Basic4ppc V6.80


http://www.taximania.co.uk
Reply With Quote
  #4 (permalink)  
Old 05-27-2008, 06:57 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 taximania View Post
I take it they must be C code .cs files
I'm afaraid so. Optimising compile invokes the C# compiler to compile both the B4PPC code translated to C# and the dll source code.

Last edited by agraham : 05-27-2008 at 06:59 PM.
Reply With Quote
  #5 (permalink)  
Old 05-28-2008, 08:36 AM
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 LineCutter View Post
I'll get in first with a request for the chartsDesktop.dll
You would ask for that one wouldn't you

I'm afraid that is one of the ones that comes under (b). As one of the more complicated libraries it consists of 34 separate source files and putting them altogether into a single source file that compiles correctly is a task that I don't want to even try.

ChartsDevice is similarly complicated and so also not a candidate for merging. Threading may or may not work for a different, technical, reason - I haven't tried merging it yet. All the others are probably OK but I will try them as and when requested.
Reply With Quote
  #6 (permalink)  
Old 05-28-2008, 09:30 AM
Knows the basics
 
Join Date: Jan 2008
Posts: 64
Default

Quote:
Originally Posted by agraham View Post
Threading may or may not work for a different, technical, reason - I haven't tried merging it yet.
Hello agraham. I've tried to merge Threading lib like it wrote here: http://www.basic4ppc.com/forum/code-...hlight=merging. It was merged, but didn't work properly (it causes an error). It was a long time ago, so i don't remember the details... But this library is the main for me, i can't imagine how to use b4ppc without it and also it is the only one library what can't be merged in my program... So what do you think about trying to merge this lib?

Last edited by Elrick : 05-28-2008 at 09:40 AM.
Reply With Quote
  #7 (permalink)  
Old 05-28-2008, 10:25 AM
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 Elrick View Post
But this library is the main for me, i can't imagine how to use b4ppc without it


Quote:
So what do you think about trying to merge this lib?
Done! http://www.basic4ppc.com/forum/addit...-compiler.html
Reply With Quote
  #8 (permalink)  
Old 05-28-2008, 10:49 AM
Knows the basics
 
Join Date: Jan 2008
Posts: 64
Default

I took a red marker and drawn a circle around this day in calendar - today is the day, when my program became fully standalone, without any additional libraries
Reply With Quote
  #9 (permalink)  
Old 05-28-2008, 02:13 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

OK. So it's been p*ss*ng down with rain all day, the road outside is a river and although we are opening our garden to the public for the village garden trail in ten days we can't get out to do any meaningful preparation

I'm bored so I have tested and posted the source for the most obvious candidates for merging. Collections, Exceptions, FilesEx, StringsEx, Threading and WebBrowser. See their respective threads.

Last edited by agraham : 05-28-2008 at 02:25 PM.
Reply With Quote
  #10 (permalink)  
Old 05-28-2008, 03:57 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,689
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Thank you agraham
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
a question for agraham Ricky D Questions (Windows Mobile) 21 10-19-2008 04:38 PM
Two new awards were given to agraham and dzt Erel Forum Discussion 14 01-27-2008 01:08 AM
Merging forms skipper Questions (Windows Mobile) 2 01-10-2008 12:18 PM
Merging Basic4ppc libraries alfcen Open Source Projects 7 12-19-2007 07:45 AM
I vote for agraham! dzt Chit Chat 7 10-26-2007 06:47 PM


All times are GMT. The time now is 10:38 PM.


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