Visual Studio 2012 support? |
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? |
Oct 12 2012, 09:42
Post
#1
|
|
|
Group: Members Posts: 69 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?
|
|
|
|
Oct 12 2012, 10:23
Post
#2
|
|
![]() Group: Members (Donating) Posts: 779 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. |
|
|
|
Oct 13 2012, 01:45
Post
#3
|
|
![]() Group: Admin Posts: 4231 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.
|
|
|
|
Oct 13 2012, 02:04
Post
#4
|
|
|
Group: Members Posts: 69 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
(VC11 project files would be nice in the next SDK release though) |
|
|
|
Oct 13 2012, 18:35
Post
#5
|
|
![]() Group: Admin Posts: 4231 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.
|
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 19th June 2013 - 00:24 |