sxc
8th May 2002, 01:21
I am trying to write an external app. that will communicate with Winamp. I started by inserting this line "HWND hwndWinamp = FindWindow("Winamp v1.x",NULL);" to find the winamp window (like the API page says). However, when I try to compile the program I am getting an error from VC++ that says
"error C2440: 'initializing' : cannot convert from 'class CWnd *' to 'struct HWND__ *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast"
Can someone tell me what I am doing wrong?
Thanks!
Brian
"error C2440: 'initializing' : cannot convert from 'class CWnd *' to 'struct HWND__ *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast"
Can someone tell me what I am doing wrong?
Thanks!
Brian