Thread: Visual Studio 2010 Help

  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,366
    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
    Location
    Inside my computer
    Posts
    24,654
    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
    Ireland
    Posts
    8,446
    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 11:55 AM.
    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,195
    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.

  6. #6
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    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,195
    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.

  8. #8
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    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,195
    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

  10. #10
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    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,195
    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.

  12. #12
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    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.
    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,195
    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.

  14. #14
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    Don't worry. You only fool yourself.
    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,793
    No arguments please...

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, 02: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, 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