IPB

Welcome Guest ( Log In | Register )

> foobar2000 Development Forum Rules

This forum is for developer discussions only. If you have a problem / bug report / idea / feature request that isn't related to foobar2000 SDK, post it in an appropiate forum instead - tech support questions go to support forum, everything else goes to general forum.
All non-developer posts on this forum will be removed. Continued abuse of this forum will result in admin actions (warnings, account suspension).

Visual Studio 2012 support?
hymerman
post Oct 12 2012, 09:42
Post #1





Group: Members
Posts: 85
Joined: 1-June 05
Member No.: 22429



I've grown quite fond of the new C++11 features provided by the VC11 compiler and standard library, so it makes me a bit sad to go back to VC10 when developing foobar components. Is there any intention to update the API to VC11 now that Visual Studio 2012 has been released?
Go to the top of the page
+Quote Post
 
Start new topic
Replies (1 - 4)
Zao
post Oct 12 2012, 10:23
Post #2





Group: Members (Donating)
Posts: 930
Joined: 25-September 03
From: Umeň, Sweden
Member No.: 9001



The SDK builds just fine on VC11 with some minor patches to PFCv1.

If I recall correctly, you need to make a protected copy-assignment operator declaration in list_base_t, as the templated copy-assignment operator does not inhibit the synthesised copy-assignment operator which fails due to the copy-assignment operator in list_base_const_t being private, for good reason.

Note that the currently released VC11 versions prevent you from targetting Windows XP, so be aware of this if you've got users on that god-forsaken OS.


--------------------
Zao shang yong zao nong zao rang zao ren zao.
To, early in the morning, use a chisel to build a bathtub makes impatient people hot-tempered.
Go to the top of the page
+Quote Post
kode54
post Oct 13 2012, 01:45
Post #3





Group: Admin
Posts: 4694
Joined: 15-December 02
Member No.: 4082



I don't recall making that particular change to PFC to compile it with VC11, so your mileage may vary.
Go to the top of the page
+Quote Post
hymerman
post Oct 13 2012, 02:04
Post #4





Group: Members
Posts: 85
Joined: 1-June 05
Member No.: 22429



Ah, I assumed the C++ runtime version for component dlls would have to match that of foobar, but I guess since we build the SDK separately it doesn't matter. Cool, I'll give it a go, thanks smile.gif

(VC11 project files would be nice in the next SDK release though)
Go to the top of the page
+Quote Post
kode54
post Oct 13 2012, 18:35
Post #5





Group: Admin
Posts: 4694
Joined: 15-December 02
Member No.: 4082



All the right functions are either class interfaces or virtualized, so cross-runtime issues are handled. It's also why VC9 components still work.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 28th December 2014 - 23:01