Sébastien Métrot :
I just commited some fixes to the CVS to fix the nui VSTPlugin example. It works fine in Cubase SX3 (display the GUI & the console window...). I guess you can have a look at it and build from there.
Thanks. Unfortunately no go :-( Don't know why but I'm getting errors in the process of linking. I'm fighting with this for 4 hours now, and don't have a clue. Maybe I'll describe in detail what I do, so that you can pick my mistakes or something: After getting sources from cvs, I first build ngl. In project libngl2003.vcproj I switch to "Release static" configuration, and throw away every project (freetype, libjpeg etc.) except libngl. I have those projects already prebuild as static .lib files, so I can link them when building final plugin - right now I only change the inlcude paths to point out where ngl should look for headers. I didn't know what to do with the joystick support - I guess it needs DirectX SDK, which I didn't want to download, so I just removed nglInputDeviceDirectX.cpp and .h, and in nglInputDevice I removed: #include "nglInputDeviceDirectX.h and modified "Enum" function so that it always returns NULL. I also removed dxguid.lib and dinput.lib from list of libraries to link with. I hit build, and I get a shiny 19.7MegaBytes of libngls2003.lib :-) No I open libnui2003.vcproj, switch to "Release Static", change the paths to header files of libjpeg,freetype,zlib and build libnui2003s.lib Now the vst-plugin in nui examples. After opening the project I create new configuration called Release. I do it so, because only debug configurations are provided, and I would have to rebuild all the libs (freetype, libpng etc.) and I didn't want to do that. I removed libnui2003 from the project tree. I also had to change the runtime library type for vstplugin from multi-threaded dll to multi-threaded (so to avoid "collision" between static and dynamic linking). I adjusted the path to vst-sdk, removed dxguid.lib and dinput.lib from list of libraries to link with and I added wsock32.lib, libpng.lib, zlib.lib, freetype.lib, libjpeg.lib and libnui2003s.lib. Now strange thing happens. If I also add libngls2003.lib, then I get a linker error saying: LINK : fatal error LNK1104: cannot open file 'libngl2003.lib' and if I rename that file to libngl2003.lib I get: LINK : fatal error LNK1104: cannot open file 'libngls2003.lib' ??? In the act of total desperation I just added both of these to get this: http://www.ckmedia.pl/~fev/stuff/log1.txt I'm propably doing something very stupid, it's just I don't see that :-/ cheers, Bart -- "When the only tool you know is a hammer, every problem looks like a nail."