SDK for VST 3 audio plug-in and host development.
3 posts • Page 1 of 1
How can string literals and numeric values be assigned to Steinberg::Vst::String128 tchar*'s, for both SMTG_OS_OSX and SMTG_WINDOWS?
You do not have the required permissions to view the files attached to this post.
programaudio wrote:How can string literals and numeric values be assigned to Steinberg::Vst::String128 tchar*'s, for both SMTG_OS_OSX and SMTG_WINDOWS?
Check Steinberg::String, which is the SDK's platform independent wrapper class for converting between different string encodings. Also note that SMTG_OS_OSX and SMTG_OS_WINDOWS are macros, so you can use the preprocessor to generate platform specific code at compile time, e.g.
Code: Select all
// OSX specific code...
// Windows speicifc code...
Your code is trying to distinguish at runtime, which will lead to build issues if stuff isn't available in another compiler/build environment.
Who is online
Users browsing this forum: No registered users and 1 guest