Thread: Include .dll in your .exe

  1. #1
    Registered User
    Join Date
    Nov 2001
    Posts
    21

    Include .dll in your .exe

    Hello, i want to run my programms on other computers too. The problem is that i dont know how to set my compiler (Micrsoft Visuall C++) so that he inlcludes the dll's in the exe file. That way i will be able to run the programm also on computer that dont have the dll files i need. Could anyone tell me how i have to set up my compiler to do that?! thankx


    ----------------------------------------------------------
    "Learn to expect Nothing"

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Some dlls like Kernel32 & User32 cannot be explitly linked (as far as I know).....It depents on what you are coding and what you want to produce.......

    If you mean MFC....the go to Project -> Settings -> General -> Microsoft Foundation Classes and choose "Use MFC in a static library"

  3. #3
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    >>Fordy: If you mean MFC....the go to Project -> Settings -> General -> Microsoft Foundation Classes and choose "Use MFC in a static library"<<

    If you use msvc std edition then you won't be able to do this as "Use mfc in a shared dll" is the only (mfc) option. Pro/Ent editions don't have this restriction.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. debug assertion failed!
    By chintugavali in forum C Programming
    Replies: 4
    Last Post: 12-11-2007, 06:23 AM
  2. 2d game
    By JordanCason in forum Game Programming
    Replies: 5
    Last Post: 12-08-2007, 10:08 PM
  3. Weird, cards not outputting correctly
    By Shamino in forum C++ Programming
    Replies: 5
    Last Post: 11-30-2007, 03:26 PM
  4. Boost thread not working
    By Monkeymagic in forum C++ Programming
    Replies: 4
    Last Post: 08-20-2006, 01:50 AM
  5. help with finding lowest number entered
    By volk in forum C++ Programming
    Replies: 12
    Last Post: 03-22-2003, 01:21 PM