Official BS.Player forums  

Go Back   Official BS.Player forums > Main forum > General Talk And Support
Register FAQ Calendar Today's Posts Search

General Talk And Support General talk and peer-to-peer support about BS.Player and other video and audio multimedia players.

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 22nd July 2004
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
 

Tags
bspgetfilename, osd


Posting Rules


All times are GMT +1. The time now is 07:41 PM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
Ad Management plugin by RedTyger

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