iPlug2 Forum

Superfluous resources when building the plugin

I noticed that the VST2 and VST3 format plug-in link superfluous resources that are completely unclaimed, such as:

  • AFX_DIALOG_LAYOUT
  • ICON
  • DIALOG
  • MENU
  • ACCELERATORS

I understand that they are necessary for the assembly of the application - stand alon version of plugin. But why link them to VST plugins?
I tried to apply the directive
#ifdef APP_API in main.rc to prohibit linking, the same when assembling the APP APP_API was undefined. :zipper_mouth_face:

Why is that?
Alternative solutions?

P.S. Removing them manually using the resource editor is not considered the best option.

If you want to use if statements in the .rc file, you can use the “Preprocessor Definitions” setting in the resources section of the visual studio project. You can put APP_API etc there. Unfortunately doing that breaks the graphical visual studio resource editor IIRC

I am sorry to say so, but this is by any means not an iPlug2 issue at all. Neither would I considered this an issue in general, maybe an annoyance.

Anyways that could easily be solved

  • manually (which is considered not to be an option)
  • modifying the build scripts
  • or asking this question on the proper Visual Studio and/or Windows C++ forums
1 Like