• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.
Sign in to follow this  
Followers 0
bubbaray97

c++11 and VS2010 options

5 posts in this topic

I'm looking for an option (easy option) to use c++11 range-for loops in VS2010.

 

On my primary machine I have Windows 7 and VS2012 (which I upgraded to specifically to get more of the C++11 features).    But my "real job" has me traveling quite a bit lately and at the momment I'm in a hotel in London (I live in the states).    While my work laptop has 7 on it, I can't really install VS on it to do a non-work project.    I had an old laptop I brought along thinking I could keep working on my project, but unfortunatly it has WinXP and can't get VS2012 installed on it.

 

So I'm back to VS2010, but it doesn't support everything thats already in my code.    Google has sadly failed me in looking for a way to get range-for support into 2010, so I hoping someone has a suggestion.    I'd really like to be able to keep working on my project while I'm in the hotel, but I certainly don't want to go through all my existing code to replace all my loops...(espcially since when I get home I'd want to switch them back...)

 

Thanks

B

 

0

Share this post


Link to post
Share on other sites

Do you use MS-specific extensions? If no, you may try MinGW, which has pretty good support for C++11, along with, e.g., Qt Creator, or Eclipse.

2

Share this post


Link to post
Share on other sites
If you're using the VS2010 C++ compiler, then there are very few options beyond what you already know.
One possible option worth considering is to use something like WinMerge and maintain a VS2010 codebase and a VS2012 codebase. Rather than copying back and forth each time, you merge between each time. Obviously this will become unsuitable as the project reaches a certain size. It's far from ideal, but I've been there as a temporary solution.
Other than that, you're stuck with doing what many of us do, and that's to write code for the lowest common denominator, which means saying goodbye to those C++11 features... for now.
If that's really unpalatable to you - get a new laptop. Edited by iMalc
2

Share this post


Link to post
Share on other sites
- Many workplaces would not mind someone installing an official, free-of-charge programming tool straight from Microsoft to learn a potentially valuable business skill on their free time. Why not mail your IT guys and simply ask if they are cool with that?

- Switch to a different compiler like MinGW that does support those features on your old laptop.

- Install Win7 on your old laptop to get VS2012 on it.
1

Share this post


Link to post
Share on other sites

Thank you all for the suggestions.   I really do appreciate it.

 

A few responses...

 

@iMalc and @Stroppy Katamari....yes new laptop/getting Win7 on this laptop will be the plan most likely...doesn't help for this trip though...of course since its a little after midnight tonight and just wrapped up today's meetings that may not matter anyway...

 

@Stroppy and @ppodsiadly...I will checkout MinGW in general though...as I'm not using anything MS specific (at least not on purpose)

 

@eddie....yeah I was aware of that, but really didn't want to change all my code.   I considered using that as a macro in replace for what I wanted, but that just seemed ugly.

 

And lastly....@Stroppy....technically I have admin rights on my work laptop so I *could* install it without having to talk to IT, but considering I left development over 10 years ago as a profession it would be a challenge to explain to the company why that would be of value to them....but far more importantly...per my employee aggreement (which granted it easily challenged in court) anything done on company property becomes IP of the company and I'd rather not give them my game for free :)

 

So it seems like I'm left with...

1) Change IDE

2) Change my code (either LCD, or using function like eddie suggested)

3) Upgrade my "travel" system

 

Kinda what I thought (although to be honest I really hadn't considered the IDE swithc before, not sure why)....but thought it was worth the chcek.

 

Thank you all....

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0