Thread: Visual Studio .Net 2003

  1. #1
    Registered User
    Join Date
    Mar 2005
    Posts
    24

    Visual Studio .Net 2003

    Pleeeease can someone help?

    All I want to do is create a c programming workspace and I can't fr the life of me do it!! It's stressing me out so I was hoping someone could give me a step by step how to guide??

    Thanks so much for any help,

    Helen

  2. #2
    Bioport Productions
    Join Date
    Oct 2005
    Posts
    215
    file->new->Project, select console app and you're set..
    -"What we wish, we readily believe, and what we ourselves think, we imagine others think also."
    PHP Code:
    sadf 

  3. #3
    Registered User
    Join Date
    Mar 2005
    Posts
    24
    I try doing that and it includes a load of rubbish like test.cpp etc - which scares me anyways. I try including a hello world main.c to test it out and then get an error:

    i:\test\main.c(10): fatal error C1010: unexpected end of file while looking for precompiled header directive

    The precompiled header directive I presume is something to do with stdafx.h and stdafx.c which visual studio has added itself



    Helen

  4. #4
    Registered User
    Join Date
    Mar 2005
    Posts
    24
    ok - I've now created a blank project which is lovely and how it should be.

    I add my basic main.c go into debug->start which i'm presuming is the new location for the execute button and nothing really happens apart from the console appearing - but not hello world.

    Code:
    #include <stdio.h>
    #include <assert.h>
    #include <stdlib.h>
    
    
    main()
    {
    	printf("hello, world\n");
    }
    don't think it's the codes fault. I can't believe I'm having this much trouble with an app

    H

  5. #5
    Registered User
    Join Date
    Mar 2005
    Posts
    135
    Quote Originally Posted by thedoofus
    ok - I've now created a blank project which is lovely and how it should be.

    I add my basic main.c go into debug->start which i'm presuming is the new location for the execute button and nothing really happens apart from the console appearing - but not hello world.

    Code:
    #include <stdio.h>
    #include <assert.h>
    #include <stdlib.h>
    
    
    main()
    {
    	printf("hello, world\n");
    }
    don't think it's the codes fault. I can't believe I'm having this much trouble with an app

    H
    File>New>Project -
    Select Visual C++ Projects on the left panel -
    Click Win32 Console Project -
    Win32 Application Wizard should popup.
    Click Application Settings.
    Application Type: Console application.
    Additional options: check Empty project.
    Also make sure that you name your files with the .c extension when you create them or else they'll default to .cpp , which is C++

    [p.s, instead of debug, select Release]
    Last edited by xeddiex; 11-11-2005 at 07:27 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. more then 100errors in header
    By hallo007 in forum Windows Programming
    Replies: 20
    Last Post: 05-13-2007, 08:26 AM
  2. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 05:45 PM
  3. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 12:13 AM
  4. load gif into program
    By willc0de4food in forum Windows Programming
    Replies: 14
    Last Post: 01-11-2006, 10:43 AM
  5. Learning OpenGL
    By HQSneaker in forum C++ Programming
    Replies: 7
    Last Post: 08-06-2004, 08:57 AM