User forums > General (but related to Code::Blocks)

Howdy! Im a noob :)

<< < (6/7) > >>

matthewjumpsoffbuildings:
is there supposed to be a gui? i noticed vstgui files included in the project.

one question - i notice that you actually have added a bunch of files from the VST SDK directly into your project....is there a way i can set it up so that i dont see all those files in the project tree cause i dont want to open/edit them - i see the projects compile options is set up to point to the right folders, so why doesnt it compile unless the vst source files are literally added to the project?

iw2nhl:
GUI
Definetly yes, it should have a GUI. I choose that sample because it seemed an almost complete plug-in.
You cannot see the GUI with neither my DLL nor your?

SDK source files
That files must be added because you can only specify directories for "include" files, generally header ".h" files.
This is to compile, but to have an executable, you need the object files to make the linker work.
To have object files, you must compile the SDK files.
This can be done only including the source files in the project (so they are compiled).
At least this is what I know.

I don't like this, but it is needed, as far as I know.
Anyway VisualStudio projects (bundled in the SDK) include SDK source files in the project too, so I think they are really needed.

If someone knows how to avoid including SDK source files in each project, please let us know!

matthewjumpsoffbuildings:
ok thanks for the explanation youve been so helpful man :) - and your dll has a gui, but when i compile it myself it didnt - ill try again tho....

iw2nhl:
Perfect, this is exactly what I wanted to know, then 2.4 version has the same bug as the 2.3 version.
Here is how to make GUI work for you too:
- go to VST SDK and open this file (you can do this also from you project, the file is included):
public.sdk\source\vst2.x\vstplugmain.cpp
- add
--- Code: ---extern "C"
--- End code ---
at the beginning of the lines 46, 48, 59
- done!

Here are the lines:
original

--- Code: ---VST_EXPORT AEffect* main_macho (audioMasterCallback audioMaster) { return VSTPluginMain (audioMaster); }
VST_EXPORT AEffect* MAIN (audioMasterCallback audioMaster) { return VSTPluginMain (audioMaster); }
BOOL WINAPI DllMain (HINSTANCE hInst, DWORD dwReason, LPVOID lpvReserved)

--- End code ---
modified

--- Code: ---extern "C" VST_EXPORT AEffect* main_macho (audioMasterCallback audioMaster) { return VSTPluginMain (audioMaster); }
extern "C" VST_EXPORT AEffect* MAIN (audioMasterCallback audioMaster) { return VSTPluginMain (audioMaster); }
extern "C" BOOL WINAPI DllMain (HINSTANCE hInst, DWORD dwReason, LPVOID lpvReserved)

--- End code ---

This change need to be done only once: you make it to the SDK source files!

matthewjumpsoffbuildings:
thankyou - i will try this as soon as i can :D

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version