DriverHeaven.net

 
Looking for the skin chooser?
 
 
  • 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


Reply
 
LinkBack Thread Tools
Old Mar 25, 2005, 03:44 AM   #1
S-3D enthusiast
 
Tril's Avatar
 
Join Date: Sep 2004
Location: Canada
Posts: 1,561
Rep Power: 39
Tril is just really niceTril is just really niceTril is just really niceTril is just really niceTril is just really nice
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, 05:37 AM   #2
DriverHeaven Extreme Member
 
Join Date: Jan 2005
Posts: 4,836
Rep Power: 41
Russ is a jewel in the roughRuss is a jewel in the roughRuss is a jewel in the rough

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, 02:01 PM   #3
S-3D enthusiast
 
Tril's Avatar
 
Join Date: Sep 2004
Location: Canada
Posts: 1,561
Rep Power: 39
Tril is just really niceTril is just really niceTril is just really niceTril is just really niceTril is just really nice
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

Bookmarks

Thread Tools