Stand alone app and .dll's

This is a discussion on Stand alone app and .dll's within the Windows Programming forums, part of the Platform Specific Boards category; I've made a GUI application that I want anyone to be able to run. If I run the .exe. file ...

  1. #1
    Registered User
    Join Date
    May 2005
    Location
    Toronto, Canada
    Posts
    257

    Stand alone app and .dll's

    I've made a GUI application that I want anyone to be able to run. If I run the .exe. file on a comp with a C++ compiler installed it works fine, but if there is no MS Visual C++ 6.0 it asks for a .dll file

    How can I make an instal package to allow any user to say install it to their computer and then run the application? I don't want to install the compiler, just watever the files that a program may need to run. and how do I know which files to include in a thing like this?

    Thanks,
    Everything is relative...

  2. #2
    Work in Progress..... Jaken Veina's Avatar
    Join Date
    Mar 2005
    Location
    Missouri. Go Imos Pizza!
    Posts
    256
    What dll is it trying to link to? Perhaps you could find a link-during-compile version of it (.a or .lib), so it wouldn't need to link later.
    Code:
    void function(void)
     {
      function();
     }

  3. #3
    Registered User
    Join Date
    May 2005
    Location
    Toronto, Canada
    Posts
    257
    I tried pasting that .dll to the c: drive on that computer but it didn't like it still. and even if I fix this problem, how do I know that someone won't need a different one. Can I add all the .dll's from the header files to a shrink wrap type of package that will ocme with the program?

    and the .dll I need is MSVCP60D.dll
    Everything is relative...

  4. #4
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    That dll is the c runtime dll for msvc6. You should build your exe in release mode and make sure you STATICALLY link to the c runtime. Its in the project options somewhere, at the moment you are dynamically linking to the runtime hence the dll must be present in the correct folder(usually system32) for your app to work.
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

  5. #5
    Registered User
    Join Date
    May 2005
    Location
    Toronto, Canada
    Posts
    257
    If I did this correctly, I get an error msg that looks like this:
    Code:
    error LNK2005: "void __cdecl operator delete(void *)" (??3@YAXPAX@Z) 
    already defined in libcpmtd.lib(delop.obj)
    Debug/Initial GUI.exe : fatal error LNK1169: one or more multiply defined symbols found
    I changed from "Use MFC as a shared DLL" to "Use MFC a static library" for the project.

    and when I tried switching the build configuration to Release mode, it gave the same error. The window that opens to switch the build configuration doesn't have an OK button or anything. I selected the release mode and hit close. When I went back to it again it still had Win32 Debug mode selected. What else am I supposed to do?
    Last edited by earth_angel; 08-08-2005 at 02:09 PM.
    Everything is relative...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. .dlls
    By alpha2018 in forum C++ Programming
    Replies: 2
    Last Post: 08-25-2004, 01:27 PM
  2. MFC Standalone App
    By UnclePunker in forum Windows Programming
    Replies: 2
    Last Post: 03-24-2004, 11:53 AM
  3. creating .DLLs
    By post it in forum C++ Programming
    Replies: 2
    Last Post: 03-11-2003, 12:09 PM
  4. Creating .DLLs using Dev-C++ 4.01
    By first posting in forum C++ Programming
    Replies: 0
    Last Post: 03-09-2003, 01:29 PM
  5. apending '.exe's or '.dll's to '.exe's
    By canine in forum Windows Programming
    Replies: 10
    Last Post: 04-10-2002, 09:23 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21