Hi,
I'm new to C++. It's been on my to-do list for a while, but it was foobar2000, the SDK and the plugin collection which inspired me to finally get my hands dirty
I've just got foo_static_panel, musicmusic's demo panel which is essentially a "Hello World" columns_ui toolbar, to compile using Microsoft Visual C++ Express Edition 2005 Beta 2 - a free download from Microsoft with the same compiler etc as the full Visual Studio version. If you want to try this out you'll also need the Windows Platform SDK.
Anyway, to cut a long story short, I had to make three amendments to the SDK and one to the component code to get the project to compile, and I thought I'd post my changes here in case they're of use to anyone
/SDK/pfc/string.cpp(478) : error C2668 : ambiguous call to overloaded function
changed:
_i64toa((__int64)(val * pow(10,precision)),temp,10);
to:
const long double ld = 10;
float f = pow(ld,static_cast<int>(precision));
_i64toa((__int64)(val * f),temp,10);
/SDK/pfc/string.h(5) : error C2371 : 'WCHAR' redefinition; different basic types
commented out:
typedef unsigned short WCHAR;
/SDK/pfc/string.h(475) : error C4430 : missing type specifier - int assumed.
changed:
inline string_simple(const string_simple_t<T> & param) {ptr = t_strdup(param);}
to:
inline void string_simple(const string_simple_t<T> & param) {ptr = t_strdup(param);}
/foo_static_panel(6) : error C1189 : Deprecated - use ui_extension_with_helpers.h instead
changed:
#include "../ui_extension/helpers.h"
to:
#include "../ui_extension/ui_extension_with_helpers.h"
So yeah - I've now got a blank toolbar with the word "moo" on it
It's a start. Next I'm going to try foo_uie_albumlist...
EDIT: I remembered the fourth change