Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / CLR / March 2006

Tip: Looking for answers? Try searching our database.

statical link

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ilya Dyoshin - 11 Mar 2006 10:35 GMT
Hi all!

Is there a possibility to statically link used .NET components into my
programm... (to enable it runs on machines that do not have .NET Framework)
Like static link of MFC libraries..

Thanks in advance.
Vadym Stetsyak - 11 Mar 2006 11:52 GMT
Hello, Ilya!

ID> Is there a possibility to statically link used .NET components into my
ID> programm... (to enable it runs on machines that do not have .NET
ID> Framework) Like static link of MFC libraries..

AFAIK, no because .NET components require CLR to execute.

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
Huihong - 13 Mar 2006 05:54 GMT
Yes, it's totally possible. We provide a total native compiler for .NET
2.0. It links and compiles everything into x86 machine code. The
typical compiled package size is around 16MB.

http://www.remotesoft.com/linker

Huihong
Remotesoft

> Hi all!
>
[quoted text clipped - 3 lines]
>
> Thanks in advance.
Vadym Stetsyak - 13 Mar 2006 16:47 GMT
Hello, Huihong!

Cool, didn't know that.

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
Huihong - 13 Mar 2006 20:39 GMT
Thanks, we are also investigating if can provide a wrapper so native
c/c++ (such as VC++6.0) code can use .NET system libraries directly.
You can consider a .lib and some .h files for a .NET assembly, then
from unmanaged c/c++ code, you can use them directly.

Huihong

http://www.remotesoft.com/linker
Remotesoft
Marcus Heege - 14 Mar 2006 08:46 GMT
> Yes, it's totally possible. We provide a total native compiler for .NET
> 2.0. It links and compiles everything into x86 machine code. The
[quoted text clipped - 13 lines]
>>
>> Thanks in advance.

I think something similar is possible with a tool called "thinstall",
however I haven't tried it.
Are there any legal problems with such an approach? You somehow have to
inject the CLR implementation and parts of the JIT compiled base class
library into your binary.
Huihong - 14 Mar 2006 20:34 GMT
To the best of my knowledge, we are the only ones that do real native
compilation. All other approaches are just adding a native loader, and
wrap everyhing into a single exe with a schema similar to
self-extracting exe. Inside the exe, there are still pure .NET
assemblies with the original MSIL code. The startup is extremely slow,
and the performance is poor, compared to running when .NET Framework is
available. Since when you wrap CLR runtime and .NET assemblies into a
single EXE, ngen can not be used, so all of the execution, including
system libraries, must be compiled at runtime. In other words, prejit
advantage is lost with those approaches. Another big disadvantage is
that it does not provide protection against reverse engineering, since
the wrapped EXE can be cracked easily.

Our approach compiles everything into x86 code, so the resulting
application has the fastest startup time, with the best performance.

And since it's natively compiled, it naturally provides the best
protection against reverse engineering. Native code is still the best
protection today.

Huihong
Remotesoft
http://www.remotesoft.com/linker/

> > Yes, it's totally possible. We provide a total native compiler for .NET
> > 2.0. It links and compiles everything into x86 machine code. The
[quoted text clipped - 19 lines]
> inject the CLR implementation and parts of the JIT compiled base class
> library into your binary.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.