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.
How to use DLL's in program so .NET isn't needed?
  1. Unread #1 - Nov 29, 2008 at 3:50 PM
  2. Cymru
    Joined:
    Jan 22, 2007
    Posts:
    693
    Referrals:
    0
    Sythe Gold:
    0

    Cymru Apprentice
    Banned

    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
     
  3. Unread #2 - Nov 29, 2008 at 4:11 PM
  4. Swan
    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner

    Swan When They Cry...
    Retired Global Moderator

    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.
     
  5. Unread #3 - Nov 29, 2008 at 4:16 PM
  6. Cymru
    Joined:
    Jan 22, 2007
    Posts:
    693
    Referrals:
    0
    Sythe Gold:
    0

    Cymru Apprentice
    Banned

    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.
     
  7. Unread #4 - Nov 29, 2008 at 4:39 PM
  8. Swan
    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner

    Swan When They Cry...
    Retired Global Moderator

    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.
     
  9. Unread #5 - Nov 29, 2008 at 5:05 PM
  10. Govind
    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

    Govind The One Musketeer
    Mudkips Highly Respected Retired Administrator

    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.
     
  11. Unread #6 - Nov 29, 2008 at 5:20 PM
  12. Flaming Idiots
    Joined:
    Dec 22, 2005
    Posts:
    235
    Referrals:
    1
    Sythe Gold:
    0
    Two Factor Authentication User

    Flaming Idiots Active Member
    Visual Basic Programmers

    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.
     
  13. Unread #7 - Nov 29, 2008 at 8:19 PM
  14. Cymru
    Joined:
    Jan 22, 2007
    Posts:
    693
    Referrals:
    0
    Sythe Gold:
    0

    Cymru Apprentice
    Banned

    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.
     
  15. Unread #8 - Nov 29, 2008 at 10:23 PM
  16. Nullware
    Joined:
    Jan 30, 2007
    Posts:
    1,761
    Referrals:
    4
    Sythe Gold:
    0

    Nullware Guru

    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.
     
  17. Unread #9 - Dec 18, 2008 at 5:24 AM
  18. x⁹
    Referrals:
    1

    x⁹ Guest

    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.
     
  19. Unread #10 - Jun 20, 2009 at 2:29 PM
  20. Repentless
    Joined:
    May 11, 2006
    Posts:
    669
    Referrals:
    3
    Sythe Gold:
    0

    Repentless Apprentice
    Banned

    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?
     
  21. Unread #11 - Jun 21, 2009 at 1:44 AM
  22. Jaco
    Joined:
    Jul 23, 2008
    Posts:
    21
    Referrals:
    0
    Sythe Gold:
    0

    Jaco Newcomer

    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).
     
  23. Unread #12 - Jun 21, 2009 at 11:31 PM
  24. Nullware
    Joined:
    Jan 30, 2007
    Posts:
    1,761
    Referrals:
    4
    Sythe Gold:
    0

    Nullware Guru

    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.:'(
     
  25. Unread #13 - Jun 22, 2009 at 1:49 AM
  26. Repentless
    Joined:
    May 11, 2006
    Posts:
    669
    Referrals:
    3
    Sythe Gold:
    0

    Repentless Apprentice
    Banned

    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.
     
  27. Unread #14 - Sep 16, 2009 at 11:07 AM
  28. war833
    Joined:
    Dec 11, 2008
    Posts:
    82
    Referrals:
    0
    Sythe Gold:
    0

    war833 Member

    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.
     
  29. Unread #15 - Sep 20, 2009 at 7:55 PM
  30. x&#8313;
    Referrals:
    1

    x&#8313; Guest

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

    *points to the Expression suite and Visual Studio 2010*
     
  31. Unread #16 - Sep 20, 2009 at 8:13 PM
  32. Govind
    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

    Govind The One Musketeer
    Mudkips Highly Respected Retired Administrator

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

    This thread is so old... closed, lol.
     
  33. Unread #17 - Sep 20, 2009 at 9:33 PM
  34. SuF
    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

    SuF Legend
    Pirate Retired Global Moderator

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

    Archived. >_>.
     
< Put Google Search on your webpage | Middleman PRO >

Users viewing this thread
1 guest
Thread Status:
Not open for further replies.


 
 
Adblock breaks this site