Official BS.Player forums

Official BS.Player forums (http://forum.bsplayer.com/index.php)
-   General Talk And Support (http://forum.bsplayer.com/forumdisplay.php?f=8)
-   -   send/receive commands from/to bsplayer using c# (http://forum.bsplayer.com/showthread.php?t=13021)

q12q 22nd December 2011 05: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 09:28 AM.

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