Official BS.Player forums

Official BS.Player forums (http://forum.bsplayer.com/)
-   General Talk And Support (http://forum.bsplayer.com/general-talk-support/)
-   -   BSPlayer crushes when get the requsts from another program (http://forum.bsplayer.com/general-talk-support/7055-bsplayer-crushes-when-get-requsts-another-program.html)

AlexR1973 22nd December 2005 09:25 PM

BSPlayer crushes when get the requsts from another program
 
Hi guys!
I wrote a simple plugin for LCD Smartie that shows some information from BSPlayer on LCD/VFD screen. When BSPLayer stared first everything is OK. But when LCD Smartie started first and sends messages to BSPlayer during startup - BSPlayer crushes every time. What I am doing wrong and how I can avoid these crushes? Please take a look at the code:
Code:

extern "C" DLLEXPORT char * __stdcall function2(char *param1, char *param2)
{
    static char outbuf[100];

        HWND bsp_hand;
        if ( (bsp_hand = FindWindow("BSPlayer",NULL)) !=0 )
        {
                int iStatus = SendMessage(bsp_hand,WM_BSP_CMD, BSP_GetStatus, 0);
                switch (iStatus)
                {
                case 0:
                        sprintf (outbuf, "Stopped");
                        break;
                case 1:
                        sprintf (outbuf, "Paused");
                        break;
                case 2:
                        sprintf (outbuf, "Playing");
                        break;
                case 4:
                        sprintf (outbuf, "No movie open");
                        break;
                }
        }
        else
        {
                strcpy (outbuf, "BSPlayer is not running.");
        }
        return outbuf;
}


AlexR1973 11th January 2006 08:38 PM

bump.
Didn't get any responces for this bug. Still need a solution.


All times are GMT +1. The time now is 03:06 AM.

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