Adblock breaks this site

How to use DLL's in program so .NET isn't needed?

Discussion in 'Archives' started by Cymru, Nov 29, 2008.

Thread Status:
Not open for further replies.
  1. Cymru

    Cymru Apprentice
    Banned

    Joined:
    Jan 22, 2007
    Posts:
    693
    Referrals:
    0
    Sythe Gold:
    0
    How to use DLL's in program so .NET isn't needed?

    I'm trying to build a program that doesn't need .NET to run.

    I'm using all the original namespaces and a few others like threading, IO etc.

    Is there a way I can add these (DLL's?) to the program so that I don't need to have a 100MB framework in my file?


    Please post something simple that makes sense. I'm not that advanced with C#

    Thanks
     
  2. Swan

    Swan When They Cry...
    Retired Global Moderator

    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner
    How to use DLL's in program so .NET isn't needed?

    As far as I know, you need the .Net framework to run any application that is compiled with a .Net compiler, regardless of the includes or references you use. Most computers come with it installed anyway.
     
  3. Cymru

    Cymru Apprentice
    Banned

    Joined:
    Jan 22, 2007
    Posts:
    693
    Referrals:
    0
    Sythe Gold:
    0
    How to use DLL's in program so .NET isn't needed?

    I know, but this is what I mean.

    When we use using system.IO;
    we call the chunk of code for IO. If we could add that chunk of code to the program itself, then this would cancel all the other code for namespaces that we don't need, making the framework from 100MB to like 3MB.
     
  4. Swan

    Swan When They Cry...
    Retired Global Moderator

    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner
    How to use DLL's in program so .NET isn't needed?

    I know what you said. What I said was that as far as I know, you can't.
     
  5. Govind

    Govind The One Musketeer
    Mudkips Highly Respected Retired Administrator

    Joined:
    Apr 22, 2005
    Posts:
    7,825
    Referrals:
    13
    Sythe Gold:
    23
    Prove it! Trole Tier 1 Prizebox Tortoise Penis Le Monkey UWotM8? Wait, do you not have an Archer rank? Potamus
    How to use DLL's in program so .NET isn't needed?

    Use a pre-.NET version of Visual Studio for a native Win32 executable.
     
  6. Flaming Idiots

    Flaming Idiots Active Member
    Visual Basic Programmers

    Joined:
    Dec 22, 2005
    Posts:
    235
    Referrals:
    1
    Sythe Gold:
    0
    Two Factor Authentication User
    How to use DLL's in program so .NET isn't needed?

    There is no pre-.NET version of C#. Just package the online installer for .NET with your program. It will download and install missing components only. For example, if they have .NET 3.0 installed, it will only install the .NET 3.5 dlls, which is about 10MB.
     
  7. Cymru

    Cymru Apprentice
    Banned

    Joined:
    Jan 22, 2007
    Posts:
    693
    Referrals:
    0
    Sythe Gold:
    0
    How to use DLL's in program so .NET isn't needed?

    There is no pre-.NET version of C#

    The only problem is, if the firmware on the computer is 0, 1.0, 2.0 then the components needed for this are 100MB+
    I've managed 60MB but still this is ridiculous and the program runs really slow.
    The computer I need it to work on is 1.0 or zero I believe.
     
  8. Nullware

    Nullware Guru

    Joined:
    Jan 30, 2007
    Posts:
    1,761
    Referrals:
    4
    Sythe Gold:
    0
    How to use DLL's in program so .NET isn't needed?

    Well, there's always switching languages so then you wouldn't have to rely on the .Net Framework at all PLUS it could then be cross-platform and possibly even more efficient.
     
  9. x⁹

    x⁹ Guest

    Referrals:
    1
    How to use DLL's in program so .NET isn't needed?

    You can use Visual C++ 2008 (or any other version) to write win32 apps.
    These don't require the .NET framework to run.
     
  10. Repentless

    Repentless Apprentice
    Banned

    Joined:
    May 11, 2006
    Posts:
    669
    Referrals:
    3
    Sythe Gold:
    0
    How to use DLL's in program so .NET isn't needed?

    I don't think you understand that a .NET framework dependent program is .NET FRAMEWORK DEPENDENT. It needs to be managed by something that can understand the Common Language Runtime. Managed code has it's drawbacks. Why are you using .NET if you don't want to use .NET?
     
  11. Jaco

    Jaco Newcomer

    Joined:
    Jul 23, 2008
    Posts:
    21
    Referrals:
    0
    Sythe Gold:
    0
    How to use DLL's in program so .NET isn't needed?

    Rofl... if your going to write malicious code, do it in native code.

    .Net is not going to be used for any commercial application anytime soon (I don't think any language running on a VM will be used by big companies until we all migrate to cloud computing).
     
  12. Nullware

    Nullware Guru

    Joined:
    Jan 30, 2007
    Posts:
    1,761
    Referrals:
    4
    Sythe Gold:
    0
    How to use DLL's in program so .NET isn't needed?

    Where does it say anything about malicious code?...

    Java (a language that runs on a VM) is already used in some considerable commercial applications and also by many big companies (probably the most notable being IBM).

    I do agree with you of course that native code is more efficient, however they seem to be getting to the point where in a lot of cases VM languages will perform sufficiently even where they didn't used to. Even then a cross-platform VM language like Java is much more useful then platform specific ones like .Net languages (don't even bring up Mono>_< ) so don't anyone fall in love with C#. It's a trap.:'(
     
  13. Repentless

    Repentless Apprentice
    Banned

    Joined:
    May 11, 2006
    Posts:
    669
    Referrals:
    3
    Sythe Gold:
    0
    How to use DLL's in program so .NET isn't needed?

    It was a "why else would you need to do this?" sort of thing.
     
  14. war833

    war833 Member

    Joined:
    Dec 11, 2008
    Posts:
    82
    Referrals:
    0
    Sythe Gold:
    0
    How to use DLL's in program so .NET isn't needed?

    Your program would be a humungous size. I don't think you can anyway, or it would have been mentioned more on the internet.
     
  15. x&#8313;

    x&#8313; Guest

    Referrals:
    1
    How to use DLL's in program so .NET isn't needed?

    *points to the Expression suite and Visual Studio 2010*
     
  16. Govind

    Govind The One Musketeer
    Mudkips Highly Respected Retired Administrator

    Joined:
    Apr 22, 2005
    Posts:
    7,825
    Referrals:
    13
    Sythe Gold:
    23
    Prove it! Trole Tier 1 Prizebox Tortoise Penis Le Monkey UWotM8? Wait, do you not have an Archer rank? Potamus
    How to use DLL's in program so .NET isn't needed?

    This thread is so old... closed, lol.
     
  17. SuF

    SuF Legend
    Pirate Retired Global Moderator

    Joined:
    Jan 21, 2007
    Posts:
    14,211
    Referrals:
    28
    Sythe Gold:
    1,234
    Discord Unique ID:
    203283096668340224
    <3 n4n0 Two Factor Authentication User Community Participant Spam Forum Participant Sythe's 10th Anniversary
    How to use DLL's in program so .NET isn't needed?

    Archived. >_>.
     
< Put Google Search on your webpage | Middleman PRO >
Thread Status:
Not open for further replies.


 
 
Adblock breaks this site