Official BS.Player forums

Official BS.Player forums (http://forum.bsplayer.com/)
-   Bug Reports And Codecs (http://forum.bsplayer.com/bug-reports-codecs/)
-   -   SDK problem (http://forum.bsplayer.com/bug-reports-codecs/1113-sdk-problem.html)

Soniq 19th February 2003 07:03 PM

SDK problem
 
Hi
I am using Visual C++ 6, and my code is :

//***************
#include <iostream.h>
#include <windows.h>
#include "bsp.h"

void main ()
{
HWND bsp_hand=FindWindow("BSPlayer",NULL);
long bsp_ver = SendMessage(bsp_hand,WM_BSP_CMD,BSP_GETVERSION,0);
cout << oct << bsp_ver << endl;
}
//***************

and the only result i have is : 0x37777777777 (-1 in decimal) when BSPlayer is running (and 0 when it isn't)
So BSPlayer get my message but don't send me the right value, same thing with other message.
Equal probleme on VB6.

Do anyone understand and know what to do ?
I have used 0.86.494 and 0.85 492 but same bug (if it's a bug) on this 2 version.

Thx

axl 30th March 2003 03:21 PM

Confirming this.

I was writing plugin for ATI RemoteWonder and while trying to get version from BSPlaeyer I'm receiving -1 as well

cdrom 19th April 2003 10:17 AM

I cheked it in Delphi and I have same problem replay for getvertion is -1

And I have one more problem Procedure BSP_Exit didn't work Bplay do not exit with build 493. Somebody have the same problem?

cdrom 19th April 2003 04:06 PM

I have more siries problem:
After that I send massege abaut opening file to the BSPlayer my program fails in VC60 with bplay build 494. In Delphi 7 same problem when I send message about opening Subtitles. I work with win98se.
Somebody else have the problem?

HackerWerger 19th April 2003 04:48 PM

I am facing the same problem. I think that it is another major bug of BSplayer. I'm using Delphi and VB6. The "sendmessage" command doesn't work and returns -1 in Delphi and 0 in VB6. :cry:

cdrom 20th April 2003 08:57 PM

I found answer for problem that I reported abaot failing my program when I try to open file or subtitle
instead of
SendMessage(b_hWnd, WM_COPYDATA, 0, lParam(@cds));//in delphi
or
SendMessage(b_hwnd, WM_COPYDATA, 0, (LPARAM)&cds);//in VC6
must be used
SendMessageTimeout(b_hWnd, WM_COPYDATA, 0, lParam(@cds), SMTO_ABORTIFHUNG, 1, p); // in Delphi
and
SendMessageTimeout(b_hwnd, WM_COPYDATA, 0, (LPARAM)&cds, SMTO_ABORTIFHUNG, 1, &i);// in VC6


All times are GMT +1. The time now is 11:38 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