• Home
  • Reviews
  • Articles
  • News
  • Tools
  • GamingHeaven
  • Forums
  • Network
 

Go Back   DriverHeaven.net > Forums > Hardware and Related Topics > kX Project Audio Driver Support Forum > Effects and the DSP

Notices

Reply
 
LinkBack Thread Tools
Old Apr 16, 2007, 11:49 PM   #1
DriverHeaven Senior Member
 
Join Date: Jul 2004
Posts: 413
JGSF is on a distinguished road

Need a little help...

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.

I really don't have a clue about what to do...

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's beyond my knowledge of C++ and MCF libraries, sorry... What exactly is set as unsigned long that should be unsigned int? I don't understand this part.

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?

Thanks.
JGSF is offline   Reply With Quote
Old Apr 17, 2007, 01:07 AM   #2
DriverHeaven Extreme Member
 
Join Date: Jan 2005
Posts: 4,104
Russ has a spectacular aura aboutRuss has a spectacular aura aboutRuss has a spectacular aura about

Quote:
Originally Posted by Johnny1982 View Post
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)
Russ is offline   Reply With Quote
Old Apr 17, 2007, 08:20 AM   #3
DriverHeaven Senior Member
 
Join Date: Jul 2004
Posts: 413
JGSF is on a distinguished road

I did exactly as you said, but I keep getting that error from the peak plugin.

I found the cause, but still I'm clueless about how to solve it.

ON_WM_TIMER()

I am using VC++ 6.0 now with sp6 (NFR version).

Last edited by JGSF; Apr 17, 2007 at 08:45 AM. Reason: mistakes
JGSF is offline   Reply With Quote
Old Apr 17, 2007, 05:47 PM   #4
DriverHeaven Extreme Member
 
Join Date: Jan 2005
Posts: 4,104
Russ has a spectacular aura aboutRuss has a spectacular aura aboutRuss has a spectacular aura about

It seems that you may have a different version of the MFC header files that expects the OnTimer parameter to be a ULONG instead of a UINT.

Try changing:

(in peak.h)
afx_msg void OnTimer(UINT_PTR);
to
afx_msg void OnTimer(ULONG);

and

(in peak.cpp)
void iPeakPluginDlg::OnTimer(UINT_PTR)
to
void iPeakPluginDlg::OnTimer(ULONG)

-Russ
Russ is offline   Reply With Quote
Old Apr 17, 2007, 06:19 PM   #5
DriverHeaven Senior Member
 
Join Date: Jul 2004
Posts: 413
JGSF is on a distinguished road

Didn't work...

What specific version of the MFC headers should I look for?
JGSF is offline   Reply With Quote
Old Apr 17, 2007, 06:35 PM   #6
DriverHeaven Extreme Member
 
Join Date: Jan 2005
Posts: 4,104
Russ has a spectacular aura aboutRuss has a spectacular aura aboutRuss has a spectacular aura about

Sorry, I read the error wrong, actually (from the error) it seems to think that a UINT_PTR is a ULONG (i.e. it says that it cannot convert from ULONG to UINT). Try the above again, except change UINT_PTR to UINT (when you recompile, use Rebuild All).

BTW: Did you install the latest Platform SDK?
Russ is offline   Reply With Quote
Old Apr 17, 2007, 06:50 PM   #7
DriverHeaven Senior Member
 
Join Date: Jul 2004
Posts: 413
JGSF is on a distinguished road

Ah, yes, that's it! it's alive, it's alive. Actually, I had just noticed that and was going to post it, lol.

Platform SDK? The updates for vc++? I installed service pack 6 for vc++ 6.0, is that it? it's the latest.
JGSF is offline   Reply With Quote
Old Apr 17, 2007, 06:54 PM   #8
DriverHeaven Extreme Member
 
Join Date: Jan 2005
Posts: 4,104
Russ has a spectacular aura aboutRuss has a spectacular aura aboutRuss has a spectacular aura about

You should also install the latest Windows Platform SDK.
Russ is offline   Reply With Quote
Old Apr 17, 2007, 07:18 PM   #9
DriverHeaven Senior Member
 
Join Date: Jul 2004
Posts: 413
JGSF is on a distinguished road

One more thing I didn't know.

Ok, I am dl it now.
JGSF is offline   Reply With Quote
Old Apr 17, 2007, 09:09 PM   #10
DriverHeaven Extreme Member
 
Join Date: Jan 2005
Posts: 4,104
Russ has a spectacular aura aboutRuss has a spectacular aura aboutRuss has a spectacular aura about

Quote:
Originally Posted by Johnny1982 View Post
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.
BTW: Skinned plugins require an extra step.

Depending on the code used (for skinning), you need to either append the skin to the KXL (copy /b filename.kxl + filename.kxs), or make sure that the skin is in the same directory as the KXL.
Russ is offline   Reply With Quote
Old Apr 17, 2007, 10:49 PM   #11
DriverHeaven Senior Member
 
Join Date: Jul 2004
Posts: 413
JGSF is on a distinguished road

And if I want to edit a skin?

edit: nevermind, found it, I'll try it...
JGSF is offline   Reply With Quote
Old Apr 17, 2007, 10:56 PM   #12
DriverHeaven Extreme Member
 
Join Date: Jan 2005
Posts: 4,104
Russ has a spectacular aura aboutRuss has a spectacular aura aboutRuss has a spectacular aura about

The skin file is just a RAR or ZIP (new plugins should all use ZIP) archive renamed to KXS, so you can extract it, and edit the images and/or the INI file, and then ZIP it back up, etc.
Russ is offline   Reply With Quote
 

 
Powered by: vBulletin
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Artwork by Allan 'Zardon' Campbell, vBulletin implementation by Craig '5320' Humphreys based on original artwork by Ratchet.

All times are GMT -5. The time now is 06:17 PM. Copyright ©2008 HeavenMedia.net