Results 1 to 8 of 8
  1. Default Problems using Microsoft Visual C++


    I honestly have no idea what's going wrong anymore.

    I tried compiling using a number of different solution types, but I keep getting the following error:



    I have already tried the filetypes as circled in red.


    What is going on? Why is this happening? I tried renaming my .cpp file to .exe to try to solve the problem, but it didn't work. What am I doing wrong?

  2. Default


    Why are there no files in your project other than readme.txt? Your .cpp file does not appear to be in your project.

  3. Default


    How do I do that? I tried saving it within the debug folder, the project folder, etc. It still doesn't work.

  4. Default


    How are you creating the .cpp file? Are you creating it in notepad or something and then trying to use Visual C++ to compile?

    To add a .cpp file to the project, right-click the Source Files folder and choose Add New Item.

  5. Default


    You do realize that won't compile right?

    Code:
    int x = "I quit";
    I don't know how that makes sense. A string is not an integer.



  6. Default


    Besides the problem Fiel specified, also you need to include all your .cpp files in your project.
    To do this do the following:
    1. Go to File.
    2. Move "something.cpp" into...
    3. Choose your project.
    Try to compile then.
    EDIT: I always use Empty Project unless I am working with Graphics in which case I use Windows Applications with settings on Empty Project.

  7.  

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •