Error when building.

Hi, I'm new to C++ and am having some troubles. I am trying to create my first successful program (just one that displays words to the screen). I have the source code and everything however the following error message comes up when I try to "build" the program:

"Compiling managed resources...

c:\- - -\ - -\ - - -\ - - -\ - - - - - -\ - - - \ GlobalConfig.resx(42,5): error RG0000: Type System.Drawing.Point, System.Drawing in the data at line 40, position 4 cannot be located. Line 42, position 5.

c:\- - -\ - - -\Form1.resx(0,0): error RG0000: Root element is missing.

c:\- - - \ - - -\ - - -\Config.resx(42,5): error RG0000: Type System.Drawing.Point, System.Drawing in the data at line 40, position 4 cannot be located. Line 42, position 5.

Read in 1 resources from "c:\- - -\ - - -\ - - - \About.resx"

Writing resource file... Done.

3 error(s)."


Any help is appreciated. If you need more info about the error, please post in reply. Thanks again.




Answer this question

Error when building.

  • Nilushan

    Thanks a bunch. I'll try it out and let you know how it goes.

  • WebMetro

    Just a couple of things:

    1. Standard C++ headers that have the ".h" extension are not in the namespace "std".  Since you included <istream.h>, cout would not be in the "std" namespace, but in the global one.

    2. I don't believe "cout" is defined in the <istream.h> file.  I'm not 100% sure since I've never seen or used that file, but I believe the one you want is <iostream.h> or <iostream> (see item #1).

    3.  The resource errors sound like your using a C++ Windows Forms project.  Sounds like the errors are coming from the extra "junk" included when you create a new project.  What you'd probably want instead is to go to "File->New->Project" and find "Win32 Console App" or just "Console App".  That's more inline with what you want.

    If you have questions, please feel free to e-mail me.

    -Chris


  • Philippe Lacoude

    It's meant as a reference program:

    // my first program in C++

    #include <istream.h>

    // #include = a preprocessor directive, performs tasks during compilation of source code.

    // iostream.h = header, in this case, one for the cout function

    int main ()

    // main () = present in all c++ programs. Entry point of program execution

    // contains the code that tells the computer what to doas a program executes.Because

    // main () is a function, you can write other functions within your source files and

    // main () can call them, in effect acting as a host for all the other code.

    // int = a data type

    {

    // { = beginning of code block

    std::cout << "He said, \"See you tomorrow.\"" << std::endl;

    // cout = uses << - the insertion operator for cout - to redirect text output to the screen.

    // /" signifies that an escape sequence follows. In this case, quotation marks.

    return 0;

    // return = describes the type of value a function returns to the caller.

    // This return value could be a number, word, letter, or any type of data or void (nothing)

    }

    // } = end of code block



  • historie

    Hi,


    Are you using VC++ Express Could you please post the code that you are trying to build





    cheers,


    Paul June A. Domag

  • praveen gupta

    You need to include <istream> without the ".h".

    And you need to start with a normal Win32 console project. Not with a windows forms project.

    Ronald Laeremans
    Visual C++ team

  • Error when building.