View Single Post
  #1 (permalink)  
Old 22nd July 2004
cb4zztn cb4zztn is offline
Junior Member
BS.Player Newbie
 
Join Date: Jul 2004
Posts: 5
Rep Power: 0
cb4zztn is an unknown quantity at this point
Default BSP_GetFileName and the OSD

Hi,

first of all great player!

I'm currently trying to write a little BSPlayer2Mirc-thingie for myself and so far displaying movielength, current position and player-version is working but getting the filename still doesn't somehow. I've looked through the forum but didn't find a solution.

I mainly used the code from the SDK:

----
HWND bsp_hand = FindWindow("BSPlayer",NULL);

COPYDATASTRUCT cds;

char buf[MAX_PATH];
void *adr;
adr=&buf;

cds.dwData=BSP_GetFileName;
cds.lpData=&adr;
cds.cbData=4;
SendMessage(bsp_hand,WM_COPYDATA,0,(LPARAM)&cds);

strcpy(data, buf);
---

Problem is all I get in buf (and data) are strange I-like chars as if buf would still be uninitialized. The whole thing is a function within a DLL.
Any ideas what could be wrong? :/

And there's something else: is it possible to message the OSD any text to display? I'd like to display lines from an IRC-chan in the player so watching in fullscreen wouldn't result in missing stuff. ;) I already did that with DScaler an got kinda used to it. ;)

//Sebastian
Reply With Quote
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20