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 / New Users / August 2004

Tip: Looking for answers? Try searching our database.

C# DLL in non dot net environment

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dave52 - 30 Jul 2004 09:25 GMT
Is it possible to use a c# dll in an environment where the dot net framework has not been installed ?

For example will a C++ wrapper do the job?

Thanks.
DD
Miha Markic [MVP C#] - 30 Jul 2004 09:43 GMT
Hi Dave,

No. You need .net environment to execute .net code.

Signature

Miha Markic [MVP C#] - RightHand .NET consulting & development
miha at rthand com
www.rthand.com

> Is it possible to use a c# dll in an environment where the dot net framework has not been installed ?
>
> For example will a C++ wrapper do the job?
>
> Thanks.
> DD
remotesoft - 30 Jul 2004 19:11 GMT
It's possible if you use our linker tool:

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

It will include a subset of the framework along with your C# dll and a
native stub for that dll.

For instance, you could use the tool to write an Office .NET addin, and a
.NET windows forms user control for IE, and deploy them w/o the full .NET
framework.

> Is it possible to use a c# dll in an environment where the dot net framework has not been installed ?
>
> For example will a C++ wrapper do the job?
>
> Thanks.
> DD
Miha Markic [MVP C#] - 31 Jul 2004 13:55 GMT
Hi,

The product seems interesting and I might even use it in one future project.
However, I guess you loose some functionality, such as loading external
assemblies, security isn't fully enabled I guess, ....
Do you have a list of drawbacks?

Signature

Miha Markic [MVP C#] - RightHand .NET consulting & development
miha at rthand com
www.rthand.com

> It's possible if you use our linker tool:
>
[quoted text clipped - 14 lines]
> > Thanks.
> > DD
Lebrun Thomas - 01 Aug 2004 13:24 GMT
> Do you have a list of drawbacks?

First drawback i see is that it increase the filesize of your
application.....

--
LEBRUN Thomas
http://morpheus.developpez.com

> Hi,
>
[quoted text clipped - 26 lines]
> > > Thanks.
> > > DD
Miha Markic [MVP C#] - 01 Aug 2004 14:26 GMT
> > Do you have a list of drawbacks?
>
> First drawback i see is that it increase the filesize of your
> application.....

:-). A big one I guess.
However, sometimes it doesn't matter, for example if you are producing some
sort of a CD catalog application.

Signature

Miha Markic [MVP C#] - RightHand .NET consulting & development
miha at rthand com
www.rthand.com

Lebrun Thomas - 01 Aug 2004 14:55 GMT
> However, sometimes it doesn't matter, for example if you are producing some
> sort of a CD catalog application.

Yes, i know. But as you said, sometimes it doesn't matter, not always ;)

Bye.

--
LEBRUN Thomas
http://morpheus.developpez.com

> > > Do you have a list of drawbacks?
> >
[quoted text clipped - 9 lines]
> miha at rthand com
> www.rthand.com
remotesoft - 02 Aug 2004 02:09 GMT
Thanks for your interest in our products.

No, it does not loose any functionality, rather it retains all features of
the original application, including dynamic loading of external assemblies
(don't link such assemblies, and make sure all dependencies are
mini-deployed). The big difference is that .NET Framework is now a part of
your own applications, so the user doesn't really see the Framework in the
picture, and therefore, it may not be convenient if you want to do something
to the framrwork as a whole, such as running the Framework configuration
utility. Framework utilities are not deployed with the application. All
configurations are done at development time, so when the app ships, it
contains an isolated and much smaller version of the framework, which is
internal to the mini-deployed applications. Even when a full framework
exists on the same machine, the mini-deployed app wouldn't know it at all,
which is quite useful considering the many difference versions and service
packs of the framework yet to come.

The mini-deployed applications has all security features of the original
.NET app. In the case of a managed user control under IE, there is a little
difference in the HTML that deployes the control. When full .NET framework
exists, you can use the extended <object> tag to embed the control, however
when mini-deployed, it rolls back to the regular scenario of a traditional
ActiveX control.

I guess a mjor difference also lays in terms of upgrades. When a
mini-deployed app needs to a new version of the framework, you need to
re-generate the mini-package to contain the latest subset of the framework.

> Hi,
>
[quoted text clipped - 21 lines]
> > > Thanks.
> > > DD

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.