SERVING THE QUANTITATIVE FINANCE COMMUNITY

Cuchulainn
Posts: 61126
Joined: July 16th, 2004, 7:38 am
Location: Amsterdam
Contact:

### Basic usage -- Visual Studio

Don't be a beta tester; use a land line (especially for job interviews)
http://www.datasimfinancial.com
http://www.datasim.nl

Every Time We Teach a Child Something, We Keep Him from Inventing It Himself
Jean Piaget

Polter
Posts: 2526
Joined: April 29th, 2008, 4:55 pm

### Basic usage -- Visual Studio

QuoteOriginally posted by: AlanI hardly ever use Visual Studio, so here is a basic "how to" question. I have a C/C++ console project consisting of two .cpp files, one with the main entry point, call it main.cppNow, it comes up all the time that I want to try a new method/approach in the main.cppSo I want to basically save that and start again with a new version main2.cpp, keeping everything else the same.What is the *easiest* way to do this?If it matters I am using VS 2013 Community editionHow about this: http://channel9.msdn.com/coding4fun/blo ... -Solutions

Alan
Topic Author
Posts: 9973
Joined: December 19th, 2001, 4:01 am
Location: California
Contact:

### Basic usage -- Visual Studio

QuoteOriginally posted by: PolterQuoteOriginally posted by: AlanI hardly ever use Visual Studio, so here is a basic "how to" question. I have a C/C++ console project consisting of two .cpp files, one with the main entry point, call it main.cppNow, it comes up all the time that I want to try a new method/approach in the main.cppSo I want to basically save that and start again with a new version main2.cpp, keeping everything else the same.What is the *easiest* way to do this?If it matters I am using VS 2013 Community editionHow about this: http://channel9.msdn.com/coding4fun/blo ... nsThanks,I will try that some time as it looks like it should speed up creating my Monte Carlo console apps as they tend to have very similar structure.The issue I posted about earlier was the somewhat different one of duplicating an existing app. However, I have gotten usednow to simply 'Adding a project' to the solution and copying in my previous main.cpp code, editing my command line, etc, somy original issue is moot.

tagoma
Posts: 18351
Joined: February 21st, 2010, 12:58 pm

### Basic usage -- Visual Studio

Hi, everyone. Is there any Visual Studio template (or any other tool ...) that would make the things easier with cython projects?(depending on your project) You write you C/C++ here, you write your python lines there, you use deal command line at some point. It would be nice if it was more all-in-one-place.(I apologize if my question doesn't make sense)

Hansi
Posts: 3300
Joined: January 25th, 2010, 11:47 am

### Basic usage -- Visual Studio

I haven't used it for 5+ years but maybe pytools has something? https://pytools.codeplex.com/

outrun
Posts: 4573
Joined: April 29th, 2016, 1:40 pm

### Re: Basic usage -- Visual Studio

Cuchulainn
Posts: 61126
Joined: July 16th, 2004, 7:38 am
Location: Amsterdam
Contact:

### Re: Basic usage -- Visual Studio

RTFM,
Are you sure you want to clean all changes?

This action is irreversible!

There are unstaged changes in X files.
You can't say you weren't warned. And make a backup every day. 101
http://www.datasimfinancial.com
http://www.datasim.nl

Every Time We Teach a Child Something, We Keep Him from Inventing It Himself
Jean Piaget

outrun
Posts: 4573
Joined: April 29th, 2016, 1:40 pm

### Re: Basic usage -- Visual Studio

"clean/unstaged changes" is not exactly explaining "permanently going to remove all files from your harddisk". Crazy.
But it indeed, always make sure I you have a plan B to hedge against things like this.

Cuchulainn
Posts: 61126
Joined: July 16th, 2004, 7:38 am
Location: Amsterdam
Contact:

### Re: Basic usage -- Visual Studio

"clean/unstaged changes" is not exactly explaining  "permanently going to remove all files from your harddisk". Crazy.
But it indeed, always make sure  I you have a plan B to hedge against  things like this.
I think VS is trying to be everything these days. It will be fixed in next version. That's been the story since Windows 1.0.
http://www.datasimfinancial.com
http://www.datasim.nl

Every Time We Teach a Child Something, We Keep Him from Inventing It Himself
Jean Piaget

alpher
Posts: 90
Joined: September 1st, 2012, 4:20 pm

### Re: Basic usage -- Visual Studio

"clean/unstaged changes" is not exactly explaining  "permanently going to remove all files from your harddisk". Crazy.
But it indeed, always make sure  I you have a plan B to hedge against  things like this.
I think VS is trying to be everything these days. It will be fixed in next version. That's been the story since Windows 1.0.
I'd say it had reached its full potential even in the 2010 VS days. Since F# and LINQ and all other libraries and wrappers there isn't that many things to be added. I'd say NET will still "evolve" somewhere/somehow: C# as the leading game developing language (Unity), F# as the most versatile but the days of net/wpf and windows forrms are gone. Pure C++ is more interesting on Qt, I've used it on VS rarely, only in cases when needed for OpenCV or simple scripts.