Visual Studio 2010 Help

This is a discussion on Visual Studio 2010 Help within the C++ Programming forums, part of the General Programming Boards category; Okay... I'm using Visual Studio 2010. It has a few bugs but whatever. How do I make a test, not ...

  1. #1
    Registered User
    Join Date
    Aug 2009
    Posts
    1

    Question Visual Studio 2010 Help

    Okay... I'm using Visual Studio 2010. It has a few bugs but whatever.

    How do I make a test, not to see if everything works. I am trying to mae it so I can use the tool and see if it works properly and everything... Thanks!

  2. #2
    Registered User
    Join Date
    Jan 2005
    Posts
    7,344
    Just a guess based on previous versions (and assuming you're using standard C++), but try creating a Win32 Console Application project, and check the Empty Project box. Then create a single cpp file in that project and paste the following code:
    Code:
    #include <iostream>
    
    int main()
    {
        std::cout << "Success.\n";
        std::cout << "Press enter to exit.\n";
        std::cin.get();
    }
    Find the command to build, does it build? Find the command to run (or execute), does it run?

  3. #3
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Posts
    22,918
    It should work as previous versions, only the C++ Directories is gone. I have complained about that.
    A word of warning, however: this versions is buggy and slow. Very slow. Use at your own risk.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  4. #4
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Portugal
    Posts
    7,535
    Write the following and see if it compiles this time, as it should:

    Code:
    class foo {
      public:
        void bar();
    };
    
    void foo::foo::bar() { return; }
    
    int main() { }
    Or try the following and see if the compiler finally generates a C4430 error because the friend declaration does not name the return type.

    Code:
    class foo;
    
    class bar {
    
    public:
    
        bar(int x): value(x) {}
    
        inline int sum(foo &obj);
    
    private:
    
        int value;
    
    };
    
    class foo {
    
    public:
    
        foo(int x): val(x) {}
    
        friend bar::sum(foo&);
    
    private:
    
        int val;
    
    };
    
    inline int bar::sum(foo &obj) {
    
        return obj.val + value;
    
    }
    The first I was discussing recently somewhere else. Everyone seemed to think it was correct behavior to generate a compile time error. However:

    Quote Originally Posted by ISO-IEC 14882-2003(E), §9.2 Classes (pag.153)
    A class-name is inserted into the scope in which it is declared immediately after the class-name is seen. The class-name is also inserted into the scope of the class itself; this is known as the injected-class-name. For purposes of access checking, the injected-class-name is treated as if it were a public member name.
    And...

    Quote Originally Posted by ISO-IEC 14882-2003(E), §3.4-3 Name Lookup (pag.29)
    The injected-class-name of a class (clause 9) is also considered to be a member of that class for the purposes of name hiding and lookup.
    The second one is an old issue. Probably something to do with how C++ 6.0 used int as the default type.
    Last edited by Mario F.; 08-30-2009 at 12:55 PM.
    The programmer’s wife tells him: “Run to the store and pick up a loaf of bread. If they have eggs, get a dozen.”
    The programmer comes home with 12 loaves of bread.


    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  5. #5
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,189
    It's still in beta, which is real beta, not video game beta. You shouldn't be using it unless you already have experience with the product line. I suggest you use Visual Studio 2008 Express, which is also available for free.
    Until you can build a working general purpose reprogrammable computer out of basic components from radio shack, you are not fit to call yourself a programmer in my presence. This is cwhizard, signing off.

  6. #6
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Posts
    22,918
    What does "real beta" mean?
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  7. #7
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,189
    Quote Originally Posted by Elysia View Post
    What does "real beta" mean?
    Video games typically use 'beta' as a marketing ploy.

    In ye olde days software (and hardware) went through 3 stages.

    Alpha - Internal development, incomplete, functionally limited, and generally not stable enough for consistent use. This was everything from the first line of code until the software entered Beta.

    Beta - All the major features are present and production has shifted to debugging, compatability issues, and interface design. The product usually still has major or minor stability issues.

    Gamma (modern usage is Release Candidate) - Release. Bug fixes, but little if any further development takes place.

    Many business customers, particularly for engineering software pressured developers to let them get a pre-release copy of software that was still in beta, generally this was not an issue because engineers tend to be much more forgiving and adaptable to buggy software (after all its still in beta) and they could provide valuable qualified feedback regarding undiscovered bugs. The general public got the notion into heir head that beta was getting a 'sneak peak' at the software and video games in particular have taken advantage of that with faux beta programs that are really just pre-release marketing campaigns.
    Until you can build a working general purpose reprogrammable computer out of basic components from radio shack, you are not fit to call yourself a programmer in my presence. This is cwhizard, signing off.

  8. #8
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Posts
    22,918
    Microsoft's betas aren't using this strategy, though. They are more like milestones than betas, if you ask me.
    Still, that makes it all the more reason to use at your own risk, because they are buggy (although, they are not Alphas).
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  9. #9
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,189
    Quote Originally Posted by Elysia View Post
    Microsoft's betas aren't using this strategy, though. They are more like milestones than betas, if you ask me.
    Still, that makes it all the more reason to use at your own risk, because they are buggy (although, they are not Alphas).
    Actually MS Betas are closer tot he traditional sense of bet6a than to the marketing idea of beta.

    Software release life cycle - Wikipedia, the free encyclopedia
    Until you can build a working general purpose reprogrammable computer out of basic components from radio shack, you are not fit to call yourself a programmer in my presence. This is cwhizard, signing off.

  10. #10
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Posts
    22,918
    Argh. These terms have become so complicated now that they mean nothing.
    A beta can or can not be a work in progress build.
    A release candidate may or may not mean a feature complete product.
    Take nothing for given.

    Anyway, Microsoft's VS10 build is not feature complete and it's rather unstable. Let's not nickname it.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  11. #11
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,189
    Quote Originally Posted by Elysia View Post
    Argh. These terms have become so complicated now that they mean nothing.
    I agree, this is what happens when laymen try to be computer literate not to understand it but to sound cool.

    Anyway, Microsoft's VS10 build is not feature complete and it's rather unstable. Let's not nickname it.
    I already nicknamed it, but vBulletin keeps turning the nickname into pages and pages of asterisk's.
    Until you can build a working general purpose reprogrammable computer out of basic components from radio shack, you are not fit to call yourself a programmer in my presence. This is cwhizard, signing off.

  12. #12
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Portugal
    Posts
    7,535
    Quote Originally Posted by abachler View Post
    I agree, this is what happens when laymen try to be computer literate not to understand it but to sound cool.
    You mean like trying to differentiate between beta and real beta? I agree. It's what happens when they try to do it.
    The programmer’s wife tells him: “Run to the store and pick up a loaf of bread. If they have eggs, get a dozen.”
    The programmer comes home with 12 loaves of bread.


    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  13. #13
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,189
    Quote Originally Posted by Mario F. View Post
    You mean like trying to differentiate between beta and real beta? I agree. It's what happens when they try to do it.
    That might hurt if I actually had any respect for your opinion.
    Until you can build a working general purpose reprogrammable computer out of basic components from radio shack, you are not fit to call yourself a programmer in my presence. This is cwhizard, signing off.

  14. #14
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Portugal
    Posts
    7,535
    Don't worry. You only fool yourself.
    The programmer’s wife tells him: “Run to the store and pick up a loaf of bread. If they have eggs, get a dozen.”
    The programmer comes home with 12 loaves of bread.


    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  15. #15
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    No arguments please...

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. LDAP Query
    By Travoiz in forum C++ Programming
    Replies: 0
    Last Post: 08-13-2009, 03:58 PM
  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, 01: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, 09:57 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21