.NET and C++

Discussion in 'Web Design & Coding' started by $triker, Aug 28, 2002.

  1. $triker

    $triker Guest

    I wanted to program visual C++ in .NET but when I made a program and tried it i got all these wacky errors. I then made a really simple program (first i learned lol):

    #include <iostream.h>
    int main()
    {
    cout<<"Hello Stupid Comp!"<<endl;
    return 0;
    }

    But I get "unexpected end of file" supposedly from my header file being non-existent or wrong.
    What have they done to C++? Are there lots of changes I should know about?
     
  2. Swi

    Swi gningnegneur

    Messages:
    302
    Location:
    Montreal
    it probably depends of what type of project you choose...
    i'll try a few type with your lines and i'll get back to you.
     
  3. Swi

    Swi gningnegneur

    Messages:
    302
    Location:
    Montreal
    ok, try creating a "Managed C++ Application" and add your code in the function int _tmain() that replace the Main function

    Enjoy!
     
  4. $triker

    $triker Guest

    thnx

    works, thnx
    i guess i should learn c# though