Distributing a C program

This is a discussion on Distributing a C program within the Windows Programming forums, part of the Platform Specific Boards category; This is my first ever post on this site. I'm pretty much a beginner programmer and am taking my second ...

  1. #1
    Registered User
    Join Date
    Mar 2009
    Location
    Florida
    Posts
    2

    Angry Distributing a C program

    This is my first ever post on this site. I'm pretty much a beginner programmer and am taking my second semester of C Language.

    That being said, I've created a fairly simple program using C in Visual Studio 2008 and wish to use it on other machines. I'm not even sure if this is the correct way about doing this, but I just copyied the program.exe file out of the debug folder within my project folder and am trying to execute that on other computers. On my computer it works fine, but on others (that don't have VS 2008 installed) I get an error saying that "the application configuration is incorrect". I asked my professor, and he mentioned that the machine has to be running .net framework 3.5, which they both are. Also, that program.exe file could have something to do with a debug version of that program.

    I have a feeling that it is something small that I'm not selecting before compiling the program or I need to run some kind of wizard. I have no idea.

    This is very annoying being able to have a program that runs fine in the developement environment, but not able to be distributed.

    Any help would be greatly appreciated.

    Jeff

  2. #2
    Registered User Joelito's Avatar
    Join Date
    Mar 2005
    Location
    Tijuana, BC, México
    Posts
    307
    They need to C 2008 runtime.
    * PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with xfce4.
    * Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with xfce4.

  3. #3
    Registered /usr
    Join Date
    Aug 2001
    Location
    Newport, South Wales, UK
    Posts
    1,255
    Are you sure your program is in plain C? The only possible prerequisite it should have is an up to date version of the CRT DLL. The standard version of this is MSVCRT.DLL but Visual Studio 2003 and above introduced their own DLLs.

    There should be no reliance on the .NET Framework.

  4. #4
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,855
    What version of MSVC 2008?

    IIRC MSVC 'Express' editions (the free ones) can not create distributable apps.
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

  5. #5
    Math wizard
    Join Date
    Dec 2006
    Location
    USA
    Posts
    575
    Quote Originally Posted by novacain View Post
    IIRC MSVC 'Express' editions (the free ones) can not create distributable apps.
    Actually they can, but it takes quite a bit of effort. I have an old post here from, I think, late April or early May of 2007 of someone assisting me with getting one of my programs released using the free version (but this is with 2005 though, not 2008).
    High elevation is the best elevation. The higher, the better the view!
    My computer: XP Pro SP3, 3.4 GHz i7-2600K CPU (OC'd to 4 GHz), 4 GB DDR3 RAM, X-Fi Platinum sound, GeForce 460, 1920x1440 resolution, 1250 GB HDD space, Visual C++ 2008 Express

  6. #6
    Registered User
    Join Date
    Mar 2009
    Location
    Florida
    Posts
    2
    I'm using Visual Studio 2008 Professional.

    I'm writing the code in plain ol' C language.

    Since VS does not have a wizard when creating a new project in C, I'm creating as though it was in C++, but then changing the source file to a ".c" extension.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Issue with program that's calling a function and has a loop
    By tigerfansince84 in forum C++ Programming
    Replies: 9
    Last Post: 11-12-2008, 12:38 PM
  2. Need help with a program, theres something in it for you
    By engstudent363 in forum C Programming
    Replies: 1
    Last Post: 02-29-2008, 12:41 PM
  3. Replies: 4
    Last Post: 02-21-2008, 09:39 AM
  4. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 10:04 PM

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