![]() |
C++ API Call help
Hi guys, long time no post. :/
I was wondering if someone would be kind enough to offer me the corresponding C++ code for the following VB API calls. It would be very much appreciated. code: Would you also be able to show an example API call or two so I can port my code accordingly? Thanks for any and all help! :) |
For the functions just #include <windows.h>. Then use them directly e.g. as:
code: The constants you listed (and also the struct I think) are defined in "wa_ipc.h" of the Winamp SDK, and the 3 global variables you'll have to make and assign to yourself. HtH -Christian Larsen |
I have the following code:
I'm getting an error with the if() statement that C++ cannot compare a pointer and an integer. How do I determine the value that hwnd_winamp points to? (I haven't coded C++ in a while so I'm a bit rusty).code: Thanks in advance. |
FindWindow returns the window handle not 1
do this: code: |
Ah, thanks. It must return 1/True with VB.
|
Nope, eleet-2k2, FindWindow returns the handle of the window it just found or NULL if it didn't find anything.
|
| All times are GMT. The time now is 20:58. |
Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.