Basic4ppc - Windows Mobile Development  

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

Code Samples & Tips Share your recent discoveries and ideas with other users.


Combine DLLs into one


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-24-2007, 11:40 AM
dzt's Avatar
dzt dzt is offline
Basic4ppc Veteran
 
Join Date: May 2007
Location: Greece
Posts: 353
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default Combine DLLs into one

Hi,

Yes, you can combine various b4ppc libraries (official or not) into one.
How? Read below.

Download from here MSDN Code Gallery illink.zip and extract it to a folder, lets say c:\illink

Download also .NET 1.1 or NET 2.0 (for ilasm.exe) and .NET 1.1 SDK or NET 2.0 SDK (for ildasm.exe) from Microsoft. Install them.

Add to your path the folder of ilasm.exe and the folder of ildasm.exe.

Now you are ready!

Lets say, you have three DLLs. dll1.dll, dll2.dll and dll3.dll and you want to combine them all to MyDLL.DLL. Run the following from the command prompt.

c:\illink\illink.exe dll1.dll dll2.dll dll3.dll /out=MyDLL.DLL

MyDLL.DLL now includes all the functionality of the three DLLs.

Edit:
illink.zip attached because GotDotNet site has been shut down.
Attached Files
File Type: zip illink.zip (17.3 KB, 70 views)
__________________
Dimitris Zacharakis
http://www.terracom.gr

Last edited by dzt : 05-20-2008 at 08:18 AM.
Reply With Quote
  #2 (permalink)  
Old 11-24-2007, 01:14 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,185
Default

Great tip
Notice that it will not work with the SQL library (because it contains native code).
Reply With Quote
  #3 (permalink)  
Old 11-24-2007, 02:38 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,752
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Excellent find dzt! Thank you.
Reply With Quote
  #4 (permalink)  
Old 11-25-2007, 08:29 AM
alfcen's Avatar
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu
Posts: 424
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hi Dimitris,
I am speechless... always wanted to minimize the number of files underneath my application directories.
Thanks so much for sharing this valuable information.
Cheers
Robert
Reply With Quote
  #5 (permalink)  
Old 11-25-2007, 11:25 AM
alfcen's Avatar
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu
Posts: 424
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hi Dimitris
illink.exe claims it can't find msvcr70d.dll.
Before I download hundreds of megabytes of SDK's I thought it was a better idea to ask
No hurry
Cheers
Robert
Reply With Quote
  #6 (permalink)  
Old 11-25-2007, 11:44 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,185
Default

ilasm.exe - IL Assembler is part of .Net Framework
ildasm.exe - IL Disassembler is part of .Net Framework SDK.
You must install the SDK first: http://www.microsoft.com/downloads/d...displaylang=en
Reply With Quote
  #7 (permalink)  
Old 11-25-2007, 11:48 AM
alfcen's Avatar
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu
Posts: 424
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Thank you, Erel,
I downloaded .NET 1.1 SDK. I will now try with the
.NET Framework 2.0 Software Development Kit (SDK) (x86)
Reply With Quote
  #8 (permalink)  
Old 11-25-2007, 01:33 PM
Newbie
 
Join Date: Aug 2007
Posts: 3
Default ILMerge

ILMerge seems to work also.

http://research.microsoft.com/~mbarnett/ILMerge.aspx
Reply With Quote
  #9 (permalink)  
Old 11-26-2007, 03:56 AM
alfcen's Avatar
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu
Posts: 424
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hi Louis,
Thanks a lot for your utility!
I have reworked the GUI and added some functions to catch up errors.
Still, it won't work without that msvcr70d.dll.
Attached Files
File Type: zip ilLinkGUI.zip (24.4 KB, 64 views)
Reply With Quote
  #10 (permalink)  
Old 11-26-2007, 03:59 AM
alfcen's Avatar
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu
Posts: 424
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hi Erel,
Downloading the SDK 2.0 did not bring the msvcr70d.dll with it.
I have both frameworks, 1.1 and 2.0 installed on the desktop.
According to Microsoft, this library may not be redistributed.
Resonable to assume that it is part of a commercial package.
Question remaining, which package?
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
Old style DLLs Jess Questions & Help Needed 3 06-18-2008 04:37 PM
DLLs in a shared directory John F. Eldredge Questions & Help Needed 1 05-16-2008 06:39 AM
How to combine table control and sqlite database mozaharul Questions & Help Needed 1 03-27-2008 01:10 PM
Combining DLLs Cableguy Basic4ppc Wishlist 5 05-25-2007 05:56 AM
renaming DLLs Cableguy Questions & Help Needed 2 05-24-2007 05:35 AM


All times are GMT. The time now is 04:44 AM.


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