Thread: The Interactive Animation - my first released C program

  1. #1
    Math wizard
    Join Date
    Dec 2006
    Location
    USA
    Posts
    582

    The Interactive Animation - my first released C program

    I don't know where to post this, but, I'm now releasing "The Interactive Animation", the program I've been making for quite some time. I don't know if I did the proper release stuff or not, but as far as I can tell, I have. Could you check to see if the program can run (and report any oddities or bugs you find)?

    Download the program here and unzip the ZIP file.

    The controls for using it are mentioned onscreen.

    These are the concerns I have (in no particular order other than the order I think them up):
    1. Did I use the right msvcr80.dll file?
    2. Are the images loading successfully or do you get a bunch of "file not found" errors.
    3. The bitmap font - it seems a bit too big.
    4. Does it run well on computers with Windows 98 at the oldest?
    5. How does the EULA sound?

    What do you think of it?

  2. #2
    Registered User Tonto's Avatar
    Join Date
    Jun 2005
    Location
    New York
    Posts
    1,465
    I can't exit

    I like making the houses turn into rainbows at high speed

  3. #3
    Math wizard
    Join Date
    Dec 2006
    Location
    USA
    Posts
    582
    Can't exit? Are you clicking the X in the corner or doesn't that work? It works fine for me doing that. What operating system do you use?

  4. #4
    Lean Mean Coding Machine KONI's Avatar
    Join Date
    Mar 2007
    Location
    Luxembourg, Europe
    Posts
    444
    where's the linux version

  5. #5
    Math wizard
    Join Date
    Dec 2006
    Location
    USA
    Posts
    582
    It's not designed for Linux. I've never used nor seen Linux so I don't have any idea as to what change(s) are needed to get it to run on Linux. It's designed for Windows 98 and later. I would like to be able to port to other operating systems, but getting it toward Windows was already hard enough. I need more experience first (especially with merely knowing anything about Linux of which I've never used nor seen).

  6. #6
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342
    mmhhmm...
    Quote Originally Posted by Queatrix' Loyal Computer
    C:\Program Files\TheInteractiveAnimationV1\Interactive Animation.exe

    This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.

  7. #7
    Amazingly beautiful user.
    Join Date
    Jul 2005
    Location
    If you knew I'd have to kill you
    Posts
    254
    I'm having the same bug as Queatrix
    Programming Your Mom. http://www.dandongs.com/

  8. #8
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    So am I, with Windows XP SP 2.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  9. #9
    The Right Honourable psychopath's Avatar
    Join Date
    Mar 2004
    Location
    Where circles begin.
    Posts
    1,071
    I had the same trouble before. The MSVC CRT DLLs are missing. If it works, then you likely have the same version of MSVC as was used to write the application. Otherwise they need to be installed seperately or shipped with the application (AFAIK).

    EDIT: I believe an incorrect manifest will cause this trouble too.
    M.Eng Computer Engineering Candidate
    B.Sc Computer Science

    Robotics and graphics enthusiast.

  10. #10
    Registered User Tonto's Avatar
    Join Date
    Jun 2005
    Location
    New York
    Posts
    1,465
    Alt+F4, X button, escape button. Just sits there. I am running windows XP SP2. It sorta stalls when I click the exit button so it seems like it's trying something, but it ultimately becomes food for process kill.

  11. #11
    Math wizard
    Join Date
    Dec 2006
    Location
    USA
    Posts
    582
    I had 6 different versions of the msvcr80.dll file that I supposedly needed, with 3 different file sizes. I had no idea what one to use and I just picked one. As to the closing problem, Others are getting that as well. I found that I forgot to put the "GameRunning = 0" statement in the Windows procedure. Without that, the loop would go on indefinitely. I had this:

    Code:
    case WM_CLOSE: 
    PostQuitMessage(0);
    GameRunning = 0; // this was left out
    return 0;
    break;
    The main loop, however, had this:

    Code:
    	while(GameRunning == 1) // this is the main loop
    	{
    		PeekMessage(&msg,hwnd,NULL,NULL,PM_REMOVE);
    		if (msg.message == WM_QUIT) // check for a quit message
    		{
    			GameRunning = 0; // if found, quit app // I thought this would close the program
    			break;
    		}
    		
    		else
    		{
    I posted the list of msvcr80.dll files that I had installed in this thread (See message #5). The one that did reply didn't know which one of the six I needed to use so I was left to just a random guess as to which one I needed to use.

    What's a manifest though?

  12. #12
    Math wizard
    Join Date
    Dec 2006
    Location
    USA
    Posts
    582
    I've now uploaded an updated version of the program and attempted to fix the closing bug. I still don't know what msvcr80.dll file I need so this time I'm taking the one from the windows\system32 directory, one of 5 others I had.

    The download link is still the same but I'm posting it here for convienience. If the program does load, you should see "v1.1a" in the title bar rather than "v1.1" without the "a". If so, you have the updated version. If it doesn't load with the errors related to the msvcr80.dll file, then I'll try uploading it again with another one of the DLLs. If anyone knows which one of the DLLs I need, let me know and I'll fix that right away.

  13. #13
    The Right Honourable psychopath's Avatar
    Join Date
    Mar 2004
    Location
    Where circles begin.
    Posts
    1,071
    Perhaps this will help you: http://msdn2.microsoft.com/en-us/lib...80,de-de).aspx

    I can't remember exactly how I fixed it, but it took me a while to get working. I'll try and post up a more exact guide when I get home, but I know I have a folder in my app directory called "Microsoft.VC80.CRT", or something like that, with the VC8 CRT .dll and .manifest files there. I beleive I got that folder from somewhere in system32\winsxs. I can't remember if I had to change my application manifest file for that or not. As I said, I'll check this stuff for sure when I get home.

    What's a manifest though?
    A manifest is basically an XML file either external or embedded in the application that tells Windows things like wether to use visual styles (on XP), what version of the CRT to use, where to find it, etc etc.
    M.Eng Computer Engineering Candidate
    B.Sc Computer Science

    Robotics and graphics enthusiast.

  14. #14
    Math wizard
    Join Date
    Dec 2006
    Location
    USA
    Posts
    582
    Well, I've changed it to the one with the WinSxS in the path (the second one in my list, the largest in file size at 612 KB):

    C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a 1e18e3b_8.0.50727.42_x-ww_0de06acd\msvcr80.dll

    Where do I find this XML file at? Basically, I want it so that the DLL needed is in the same directory as the executable itself. The images directory is only for, well, images (the BMPs and TGAs used). I would prefer it to be embedded in the application itself. Visual styles are not necessary so I can go without those.

    If only I had a faster, more reliable way to test this other than uploading a new/updated version, waiting for a response to tell if it failed or not and if it does, make another change, reupload it, wait for another response, and so on. Short of uninstalling and reinstalling Visual C++ a dozen or so times just to test, which is very ridiculous, I don't have any other ways of testing it than this....

  15. #15
    The Right Honourable psychopath's Avatar
    Join Date
    Mar 2004
    Location
    Where circles begin.
    Posts
    1,071
    The application manifest should be generated by MSVC, so you don't need to worry about that unless you need to make changes. Look for something like yourapp.exe.manifest or something.

    The DLL manifset would be msvcr80.dll.manifest. I'm pretty sure it's in the same directory as the DLL. Or maybe not, I can't remember.
    M.Eng Computer Engineering Candidate
    B.Sc Computer Science

    Robotics and graphics enthusiast.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Totally confused on assigment using linked lists
    By Uchihanokonoha in forum C++ Programming
    Replies: 8
    Last Post: 01-05-2008, 04:49 PM
  2. Using variables in system()
    By Afro in forum C Programming
    Replies: 8
    Last Post: 07-03-2007, 12:27 PM
  3. Call a program & still capture cmds
    By Zuconta in forum C Programming
    Replies: 3
    Last Post: 07-23-2003, 03:54 PM
  4. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 10:04 PM