Trying to make C++ DLL, got a problem with hWnd
First, I have to tell you, I'm new at the forums. I signed up because I started programming in C++ and often get problems, most of them are solved easily, but I have to wait for a friend to reply on the e-mail I send before I can continue with my project. Well, anyway, as you've propably read from the topic title, my problem has something to do with hWnd. I want to know which window is on the top in my DLL, I thought I could do that with this function:
When I build it, Visual C++ tells me that there is no conversion from the double a to the hWnd from the function. With this information I've searched for an hour on the internet, but found nothing understandable [that's probably because of me :P]. Now my question is, how can I change the double a to a hWnd type?
export double window_getfocus(double a)
if (GetForegroundWindow() == a)
Btw, I'm making this DLL for my program in Game Maker cause I like the easyness of it ^^ [no offense]. But Game Maker uses only strings [char*s I believe] and reals [doubles I believe] so it might be possible to change double a to char* a but I prefer the double.