View Single Post
  #4 (permalink)  
Old 23rd July 2004
RafkeP RafkeP is offline
Senior Member
BS.Player Power User
Join Date: Feb 2004
Posts: 126
Rep Power: 0
RafkeP is an unknown quantity at this point

To be honest : I'm new to this dll thing myself and I'm not so good a coder.
Fortunately for me BSPlayer is well documented, so I managed to get my things working.

I have the feeling that you are writing a plugin for Mirc.
(unlike me : I wrote a plugin for BSplayer)
So the answer will be in the Mirc documentation.

I suppose both Mirc and your plugin will have a (different) handle.

I'll explain you how I did mine, maybe that will help you in a way.
Take another look at the sampleplugin.

In the bspplg.h you will notice there is a structure called pluginInfo.
In that structure there is a HWND called hwndParent and that is the one I need. So to get the name of the file I call :

SendMessage(bsp_hand,WM_COPYDATA, pInfo->hwndParent,(LPARAM)&cds)

Try and see if you find something similar in the Mirc SDK.
Reply With Quote

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