Official BS.Player forums  

Go Back   Official BS.Player forums > Main forum > General Talk And Support
Register FAQ Calendar Today's Posts Search

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

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 20th March 2003
fugi
BS.Guest
 
Posts: n/a
Default trying to get the filename in delphi but...

hi everybody...

i`m trying to build a dll for mirc wich gives me some information about bsplayer. everything works pretty fine but the filename gets me ill :(

my source for that part:

function avl_BSP_GET_FILE_NAME(mWnd: hWnd; aWnd: hWnd; Data: PChar; Parms: PChar; Show: Boolean; NoPause: Boolean ):integer; export; stdcall;
var
cds:TCOPYDATASTRUCT;
buf:array[0..MAX_PATH-1] of char;
adr:pointer;
FILENAME : string;
begin
adr:=@buf;
cds.dwData:=SendMessage(FindBsplayer,WM_COPYDATA,a ppHWND,lParam(@cds));
cds.lpData:=@adr;
cds.cbData:=4;
strcopy(data,PChar(FILENAME));
result:=3;
end;

Borland Delphi Version 15.0
Copyright (c) 1983,2002 Borland Software Corporation
avl.bsplayer.dpr(315) Error: Undeclared identifier: 'appHWND'
avl.bsplayer.dpr(332)

since i`m not that advanced in delphi that gets me crazy hehe.
maybe someone is here who knows how to do this.

thanks

fugi

p.s.: i know that filename is empty, i just had no chance to try to get that out of the buf :(
Reply With Quote
 

Tags
delphi, filename


Posting Rules


All times are GMT +1. The time now is 01:33 PM.


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