Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Code Samples & Tips > Additional Libraries
Home Register FAQ Members List 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: 1,314
Awards Showcase
Forum Contributer 
Total Awards: 1
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
Knows the basics
 
Join Date: May 2007
Location: Daarsit
Posts: 94
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 Veteran
 
Join Date: May 2007
Posts: 209
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
__________________
Avoiding lawyers

O2 XDA Artemis Touch Flo 4.02 Full Cube Rom WM6.1

http://www.taximania.net
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: 1,314
Awards Showcase
Forum Contributer 
Total Awards: 1
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: 1,314
Awards Showcase
Forum Contributer 
Total Awards: 1
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: 51
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: Combine DLLs into one. 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: 1,314
Awards Showcase
Forum Contributer 
Total Awards: 1
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! Threading library for optimising compiler
Reply With Quote
  #8 (permalink)  
Old 05-28-2008, 10:49 AM
Knows the basics
 
Join Date: Jan 2008
Posts: 51
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: 1,314
Awards Showcase
Forum Contributer 
Total Awards: 1
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: 2,780
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Two new awards were given to agraham and dzt Erel Forum Discussion 14 01-27-2008 01:08 AM
Merging forms skipper Questions & Help Needed 2 01-10-2008 12:18 PM
FTP libraries craigisaacs Questions & Help Needed 1 12-20-2007 05:14 AM
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 06:03 PM.


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