473,382 Members | 1,421 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

linking

I've got an executable file which references assembly compiled into separate
dll. How to compile this dll into my executable- I simple want to distribute
only my executable.

Thanks for any advices!


Nov 15 '05 #1
3 3456
I know that I have to have .NET Framework installed, but this assembly which
I want to link statically is not from .NET Framework. It is assembly that
has class for password generation. I can't include it in my executable
because I'm writing my project in C#, and function that generates password
is in VB, so I compiled it as a standalone assembly. I want to link it into
my exe to make disassembly process harder. Maybe there is better solution to
this problem???

Thanks for any advices!!!

styko,

There is a utility on gotdotnet that will do this. However, in most
cases I think that static linking is a bad idea.

Also, because you have the dll statically linked into your executable,
you still have to have the .NET framework installed on the machine that you are going to deploy this to.

Hope this helps.

Nov 15 '05 #2
styko,

You can compile your projects into modules, by using the command line
compiler for each language and setting the target to "module". Once you
have these modules, you can combine them into one assembly by using the
assembly linker (AL.EXE) program.
--
- Nicholas Paldino [.NET/C# MVP]
- ni**************@exisconsulting.com

"styko" <st***@atos.wmid.amu.edu.pl> wrote in message
news:bg**********@nemesis.news.tpi.pl...
I know that I have to have .NET Framework installed, but this assembly which I want to link statically is not from .NET Framework. It is assembly that
has class for password generation. I can't include it in my executable
because I'm writing my project in C#, and function that generates password
is in VB, so I compiled it as a standalone assembly. I want to link it into my exe to make disassembly process harder. Maybe there is better solution to this problem???

Thanks for any advices!!!

styko,

There is a utility on gotdotnet that will do this. However, in most
cases I think that static linking is a bad idea.

Also, because you have the dll statically linked into your executable, you still have to have the .NET framework installed on the machine that

you
are going to deploy this to.

Hope this helps.


Nov 15 '05 #3
Thank you for your help, that is what I was looking for!!!
styko,

You can compile your projects into modules, by using the command line
compiler for each language and setting the target to "module". Once you
have these modules, you can combine them into one assembly by using the
assembly linker (AL.EXE) program.
--
- Nicholas Paldino [.NET/C# MVP]
- ni**************@exisconsulting.com

Nov 15 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Wolfgang | last post by:
I have a problem with linking my CPP Code under a irix6 machine (sgi, UNIX). In my CPP code I use some Functions which are written in Python. So its a kind of CPP wrapper for my Python functions In...
0
by: Dibyendu Roy | last post by:
Hi All, I build an object called "dblorcle" to connect to oracle database in Sun solaris box. This is built linking with various oracle ".a" (archived, for static linking) files come with standard...
7
by: Steven T. Hatton | last post by:
Is there anything that gives a good description of how source code is converted into a translation unit, then object code, and then linked. I'm particularly interested in understanding why putting...
2
by: sunil | last post by:
Hi, We have lot of c and fortran archive libraries that have complex dependencies. We have different server tasks that use some of these libraries. We have developed a tool inhouse that links...
20
by: Steven T. Hatton | last post by:
I just read this in the description of how C++ is supposed to be implemented: "All external object and function references are resolved. Library components are linked to satisfy external...
0
by: gasturbtec | last post by:
please help im new at access programming and i just got this project dropped in my lap because the old programmer quit. i've been doing ok so far but now i need to add code to an existing database...
6
by: Rudy Ray Moore | last post by:
I work with a multi-project workspace. One project (the "startup" project) has a "Configuration Type" of "Application (.exe)". The other 40 projects have a "Configuration Type" of "Static Library...
0
by: Rudy Ray Moore | last post by:
I've been having trouble getting incremental linking to work under Visual C++ .net 2003 7.1 for my multi-project workspace. Ronald Laeremans and Carl Daniel (and a few others) helped me figure it...
0
by: Philip Lowman | last post by:
I am in the process of trying to migrate a couple of build solutions to Visual Studio Express 2005 from VS 2003 Professional and I am running into a weird C/C++ runtime library linking issue when...
1
by: srikar | last post by:
what is the difference between static linking & dynamic linking, what are the advantages of each? How to perform static linking & Dynamic linking by using gcc -o liniking will be done , but...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.