Using Memory Stream

I am struggling to use memory stream to load a .wav resource using the code:

Steinberg::MemoryStream resourceStream(resourceData, resourceSize);, header_.subChunk2Size, 0);

I got a linker error and noticed that public.sdk/source/common/memorystream.h is not included in the standard build. So I added it to my plugin like this -

    source/version.h and others

However this throws a very unhelpful error in Visual studio:

error MSB3073: The command "setlocal

Any suggestions on how get out of this or more generally how to read a .wav resource file ?

did you check Preparation on Windows - VST 3 Developer Portal (
you could try too to start Visual as Administrator