PDA

View Full Version : C++ coded DLLs for use with mIRC


nerf
9th July 2002, 02:31
I have been told that it isn't possible to code a DLL for use with mIRC that dumps song names via $dll identifier.

Someone, anyone, please...Proove them wrong!

I have tried many things, but I have only be coding in C++ for 2days and my ambitions always tend to greatly outstrip my abilities :cry:

I coded a DLL that acts as a calculator, returns system uptime/information ... but nothing either impressive or useful, yet.

Someone please help me with this query! The mIRC API(?) is:

int __stdcall procname(HWND mWnd, HWND aWnd, char *data, char *parms, BOOL show, BOOL nopause)

Thanks!

Gourou
12th July 2002, 00:22
give me the template your using for your dll, and I'll try it out

nerf
12th July 2002, 11:59
I'm just using:

int __stdcall winamp_getsong(HWND mWnd, HWND aWnd, char *data, char *parms, BOOL show, BOOL nopause) {
HWND hwnd_winamp = FindWindow("Winamp v1.x",NULL);

/* <code here to retrieve playing song title (and other information perhaps :))>
<something that assigns the above code to the variable 'data'?> */

return 3;
}