Official BS.Player forums  

Go Back   Official BS.Player forums > Main forum > General Talk And Support

General Talk And Support General talk and peer-to-peer support about BS.Player and other video and audio multimedia players.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 1st February 2011
Junior Member
BS.Player Newbie
 
Join Date: Feb 2011
Age: 1
Posts: 2
Rep Power: 0
Dead_ok is on a distinguished road
Question BSPlayer SDK question.

Hello, everyone.

I am writing a Java library for controllin' BSP, using Java Native Access.

And I have some difficulties with sending WM_COPYDATA messages: when I send'em the only return from SendMessage I get is false, which means, something's wrong.

Sending WM_BSP_CMD messages is clear to me and Everything works fine.

Code I use to send WM_COPYDATA:
Code:
COPYDATASTRUCT cds = new COPYDATASTRUCT();
cds.dwData = new ULONG_PTR(BSP_SetSkin);
cds.lpData = ByteBuffer.wrap(skinName.getBytes());
cds.cbData = cds.lpData.limit();
LRESULT result = ExtendedUser32.INSTANCE.SendMessage(hWnd,
				WM_COPYDATA, new WPARAM(0),
				new LPARAM(Pointer.nativeValue(cds.getPointer())));
BSP version: 2.57.1015
OS: Windows 7
Java: jdk-6u22

Thanks in advance.

PS: ExtendedUser32 is my mapping interface to call functions from user32.dll

Last edited by Dead_ok; 1st February 2011 at 12:07 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiTweet this Post!Spurl this Post!Reddit! MySpace
Reply With Quote
  #2 (permalink)  
Old 4th February 2011
Ico-man's Avatar
BS.Support
BS.Player Power User
 
Join Date: Sep 2006
Location: Slovenia
Posts: 971
Rep Power: 10
Ico-man is on a distinguished road
Default

What are these functions supposed to do?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiTweet this Post!Spurl this Post!Reddit! MySpace
Reply With Quote
  #3 (permalink)  
Old 8th February 2011
Junior Member
BS.Player Newbie
 
Join Date: Feb 2011
Age: 1
Posts: 2
Rep Power: 0
Dead_ok is on a distinguished road
Default

COPYDATASTRUCT is a mapping for WinAPI's COPYDATASTRUCT structure (see msdn).
I fill it's fields the way described in your sdk (BSPlayer/sdk/bsp.h) to change player's skin. (or any other action that requires sending some data to your app)
and, as I described previously, SendMessage() always returns false.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiTweet this Post!Spurl this Post!Reddit! MySpace
Reply With Quote
Reply

Tags
java, question, sdk

Thread Tools
Display Modes

Posting Rules

Similar Threads
Thread Thread Starter Forum Replies Last Post
BUGS in BSplayer v2.12.941 (Normal/Pro) Tizio Bug Reports And Codecs 0 5th October 2006 06:43 PM
BSP Definitions Manager Tizio General Talk And Support 11 7th August 2006 12:47 AM
READ THIS FIRST BEFORE POSTING BSPeter General Talk And Support 0 17th January 2005 12:29 AM
Fixing the Icon Problem for yourself neato713 Feature Requests, Feedback And Suggestions 1 3rd October 2004 02:04 PM
ATI Remote Wonder plug-in for BSPlayer (dll inside) matz General Talk And Support 17 5th December 2003 09:04 PM


All times are GMT +1. The time now is 02:54 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.5.2
Ad Management plugin by RedTyger

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