View Single Post
  #1 (permalink)  
Old 22nd December 2011
q12q q12q is offline
Junior Member
BS.Player Newbie
 
Join Date: Dec 2011
Age: 41
Posts: 4
Rep Power: 0
q12q is on a distinguished road
Default send/receive commands from/to bsplayer using c#

I want to send/receive commands from/to bsplayer, using c# environment.
I went in c:\Program Files\Webteh\BSplayerPro\sdk\ folder and I find there 2 files: bsp.h and bsp.pas. I opened the bsp.h file (is a header for old c/c++ language). I read the instructions there:
Code:
//To get BSPlayer window handle use:
//bsp_hand=FindWindow("BSPlayer",NULL);
// then you can send messages, for ex. to get current version:
// bsp_ver = SendMessage(bsp_hand,WM_BSP_CMD,BSP_GETVERSION,0);
In my c# program, I wrote:
Code:
//Im not sure is correct but im trying
 p_BsPlayer.Handle.ToString(@"bsp_hand=FindWindow(""BSPlayer"",NULL);");
now for the second part...
Code:
//how can I write the next line?
//  then you can send messages, for ex. to get current version:
//   bsp_ver = SendMessage(bsp_hand,WM_BSP_CMD,BSP_GETVERSION,0);  <<<this one
thanks.
Reply With Quote
 

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