HardwareHeaven.com

HardwareHeaven.com

Looking for the skin chooser?
 
 
  • Home

  • Hardware reviews

  • Articles

  • News

  • Tools

  • Gaming at HardwareHeaven

  • Forums

 

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


Reply
 
Thread Tools
Old Mar 25, 2005, 08:44 AM   #1
S-3D enthusiast
 
Tril's Avatar
 
Join Date: Sep 2004
Location: Canada
Posts: 1,676
Rep Power: 64
Tril has much to be proud ofTril has much to be proud ofTril has much to be proud ofTril has much to be proud ofTril has much to be proud ofTril has much to be proud ofTril has much to be proud ofTril has much to be proud ofTril has much to be proud ofTril has much to be proud of
System Specs

C++ Compilation error (peak plugin)

I tried to compile the peak plugin from the SDK. It gives me an error. Here it is :

Quote:
peak.cpp(49) : error C2440: 'type cast' : cannot convert from 'void (__thiscall iPeakPluginDlg::*)(unsigned long)' to 'void (__thiscall CWnd::*)(unsigned int)'
Pointers to members have different representations; cannot cast between them
It links to the following line in peak.cpp :

Quote:
ON_WM_TIMER()
I copied the some needed files from the demo plugin folder and edited them to work with peak. Any help solving the issue would be appreciated.
Tril is offline   Reply With Quote


Old Mar 25, 2005, 10:37 AM   #2
HardwareHeaven Extreme Member
 
Join Date: Jan 2005
Posts: 5,561
Rep Power: 62
Russ is just super!Russ is just super!Russ is just super!Russ is just super!Russ is just super!Russ is just super!

It may have something to do with a different version of the MFC library. Try changing the parameter that is passed to the OnTimer function from UINT_PTR to UINT (in both the .h and .cpp file).

-Russ
Russ is online now   Reply With Quote
Old Mar 25, 2005, 07:01 PM Threadstarter Thread Starter   #3
S-3D enthusiast
 
Tril's Avatar
 
Join Date: Sep 2004
Location: Canada
Posts: 1,676
Rep Power: 64
Tril has much to be proud ofTril has much to be proud ofTril has much to be proud ofTril has much to be proud ofTril has much to be proud ofTril has much to be proud ofTril has much to be proud ofTril has much to be proud ofTril has much to be proud ofTril has much to be proud of
System Specs

That worked. Thank you. I would never have found the solution myself as I don't have enought C++ knowledge for that.

I want to use a timer in a plugin i'll make so I wanted to first successfully compile a plugin that contains one before starting to implement it in my own plugin.
Tril is offline   Reply With Quote
Reply

Thread Tools