COCKOS
CONFEDERATED FORUMS
Cockos : REAPER : NINJAM : Forums
Forum Home : Register : FAQ : Members List : Search :

Go Back   Cockos Incorporated Forums > Other Software Discussion > WDL users forum

Reply
 
Thread Tools Display Modes
Old 01-05-2020, 06:40 PM   #1
kakemot
Human being with feelings
 
Join Date: Dec 2019
Posts: 3
Default Image resources not working correctly with iPlug2

I add image resources in Visual Studio by right clicking -> add -> existing item. They also exist in the project folder. I reference these by using a path like "../resources/imagename.png". Right after building it works fine. But when I move the executable to another location it can't access these files. Because it's using that very path to reach these images. But how can I make this included in the project?

There seems to be no way to make the images be included in the build. Setting the build action to "Embedded resource" is completely missing from Visual Studio. Trying to get this menu option back (reverting default project settings) results in error messages. I've been trying all sorts of trings for days and there's just no way to do it.

So how do I successfully change the background in iPlug2?
kakemot is offline   Reply With Quote
Old 01-06-2020, 05:21 AM   #2
kakemot
Human being with feelings
 
Join Date: Dec 2019
Posts: 3
Default

So I figured this out.
The file must be mentioned in main.rc and of course config.h.

In main.rc, after the include, you should add your background etc.
#include "..\config.h"
ROBOTO_FN TTF ROBOTO_FN
BACKGROUND_FN PNG BACKGROUND_FN //my added background

Also only reference the file name and not the resource folder. So instead of "../resources/image.png" it's simply "image.png". I was really confused when it worked building the windows app but not vst3 etc. But now I am a bit wiser, hopefully!
kakemot is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 10:03 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.