|
|
|
|
#1 |
|
Forum King
Join Date: Aug 2001
Location: Mobil Ave.
Posts: 5,381
|
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!
"Welcome to the Island of people who know too much."..."Did you really think balloons would stop him?!" See what I'm listening too. |
|
|
|
|
|
#2 |
|
Junior Member
Join Date: Feb 2005
Posts: 8
|
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 |
|
|
|
|
|
#3 |
|
Forum King
Join Date: Aug 2001
Location: Mobil Ave.
Posts: 5,381
|
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. "Welcome to the Island of people who know too much."..."Did you really think balloons would stop him?!" See what I'm listening too. |
|
|
|
|
|
#4 |
|
Banned
Join Date: Feb 2005
Posts: 84
|
FindWindow returns the window handle not 1
do this: code: |
|
|
|
|
|
#5 |
|
Forum King
Join Date: Aug 2001
Location: Mobil Ave.
Posts: 5,381
|
Ah, thanks. It must return 1/True with VB.
"Welcome to the Island of people who know too much."..."Did you really think balloons would stop him?!" See what I'm listening too. |
|
|
|
|
|
#6 |
|
Senior Member
Join Date: Jul 2003
Posts: 248
|
Nope, eleet-2k2, FindWindow returns the handle of the window it just found or NULL if it didn't find anything.
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|