Thread: Problems running compiled .exe on other machines.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    I assure you that you are perfectly capable of avoiding DLL by doing the following:

    - If your program has dependencies, check them.
    - If you can avoid using COM objects that need registering, do so.
    - If you do any sort of update whatsoever, always unregister, then reregister COMs.
    - Simply putting a get_version() or similar function in the library, and checking its return.

    I would put avoid using .NET framework in the list, but seeing as that it will surely result in flaming, I won't. Really the main thing is the last point on my list. Naming them is a great idea, right? Wrong! Believe it or not, the above average user will think they can get rid of those nasty start-up errors by simply renaming the DLL to match whatever your program argues is "missing." Users are unpredictable. Never forget that.

  2. #2
    Banned
    Join Date
    Nov 2007
    Posts
    678
    Quote Originally Posted by master5001 View Post
    Naming them is a great idea, right? Wrong! Believe it or not, the above average user will think they can get rid of those nasty start-up errors by simply renaming the DLL to match whatever your program argues is "missing." Users are unpredictable. Never forget that.
    absolutely right 5001
    i have done exactly that, many times, but can not remember how many times i could get it to work correctly.

    i like one thing about .dlls that, if found in the same folder as .exe, then, the program runs just fine.

  3. #3
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Quote Originally Posted by manav View Post
    i like one thing about .dlls that, if found in the same folder as .exe, then, the program runs just fine.
    Not always. Read up on the dll hell link. Dlls are shared, even if they are apart. It still doesn't eliminate one dll hell situation.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  4. #4
    Banned
    Join Date
    Nov 2007
    Posts
    678
    it is literally dll-hell!!
    i just hope that situation is improved now

    now i figure why those silly errors would come up:
    i had a program that would use some common msvc .dlls, but, i would put the needed dll with the program installer, that would put them in the same folder as the program. But. when the installer was run to uninstall my program, then, some times, it would report error (installer), saying that, one or more apps need to be closed, before uninstall could continue.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Switching Machines .... creating problems
    By SkinneyEd in forum C++ Programming
    Replies: 1
    Last Post: 10-12-2005, 02:37 PM
  2. Some Socket Problems...?
    By Tal0n in forum Linux Programming
    Replies: 1
    Last Post: 04-01-2004, 05:31 AM
  3. .exe problems
    By ZakkWylde969 in forum C Programming
    Replies: 7
    Last Post: 06-17-2003, 06:09 PM
  4. Help- Problems running outside of compiler
    By Derek5272 in forum C++ Programming
    Replies: 17
    Last Post: 05-07-2003, 08:19 AM
  5. Running Into Two Problems...Help Needed
    By Halo in forum C Programming
    Replies: 5
    Last Post: 04-18-2002, 08:14 AM