Official BS.Player forums

Official BS.Player forums (http://forum.bsplayer.com/)
-   General Talk And Support (http://forum.bsplayer.com/general-talk-support/)
-   -   send/receive commands from/to bsplayer using c# (http://forum.bsplayer.com/general-talk-support/13021-send-receive-commands-bsplayer-using-c.html)

q12q 22nd December 2011 06:21 PM

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.


All times are GMT +1. The time now is 03:34 PM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, 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