Quote:
Originally Posted by Johnny1982
Hi!
I've been trying to compile some of the fx sources to study the code but I haven't suceeded, or I suceeded in compiling and registring the plugin, but once I launch the plugin's GUI kX mixer crashes.
|
Make sure that your active configuration is set to Win32 Debug and not Win32 Release.
Quote:
For example, when I try to compile the "peak" plugin I get this error:
error C2440: 'type cast' : cannot convert from 'void (__thiscall iPeakPluginDlg::*)(unsigned long)' to 'void (__thiscall CWnd::*)(unsigned int)'
|
It is hard to say, it is possible that you project settings are not correct.
Quote:
|
Also, what are the correct settings for setting up a workspace in VC++ 6 for compiling the sources? I know it's a DLL, but are there any extra parameters to set in the new project?
|
You were able to compile the demo, right?
I think the easiest thing to do is to use the project and workspace files from the demo plugin.
i.e. (for the peak plugin)
Copy demo.dsp and demo.dsw from the demo folder to your new folder.
Rename them to peak.dsp and peak.dsw.
Open peak.dsw and use 'Replace' to replace all instances of demo with peak (there are only 2).
Then open peak.dsp and use Replace again (except this time use MATCH CASE) to replace all instances of demo with peak, and then again to replace all instances of DEMO with PEAK.
Do not forget to copy over debug.cpp, fxlib.h, fxlib.rc, StdAfx.cpp, StdAfx.h, and simple.cpp from the demo folder as well (and edit simple.cpp and again replace any instances of demo with peak (use match case and replace demo with peak and Demo with Peak)).
Then just open up peak.dsw and all the settings should be correct (if you were able to compile the demo successfully).
If you are going to try and recompile any of the bundled plugins, you may want to edit the 'da_whatever_plugin.cpp' file and change the name (where it appears in quotes) and the guid (you can generate a new guid to use from the kX Settings menu), so that it does not replace the bundled version when you register it.
BTW: What version of VC are you using?
(You mentioned VC 6 (above), but you also mentioned VS 2005 at one point)