Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   Winamp Development (http://forums.winamp.com/forumdisplay.php?f=14)
-   -   Newbie help (http://forums.winamp.com/showthread.php?t=175759)

ttk 8th April 2004 00:52

Newbie help
 
I was hoping someone can help me. I am trying to get winamp to recognise a simple .dll file that I wrote. I complied the code in vc++ and added the created .dll file in the plugin folder for winamp. It just doesnt recognize it. Has anyone had a similar problem? Any suggestions would really be appreciated.

Digitalhigh 8th April 2004 01:08

I don't even know how to write plugins, but I know that nobody's going to be able to solve your problem if you don't post the erroneous code.

Safai 8th April 2004 02:05

for gen plugs make sure you have extern "C" in the export function... like this

code:

extern "C" __declspec( dllexport ) winampGeneralPurposePlugin * winampGetGeneralPurposePlugin()
{
return &plugin;
}


DrO 8th April 2004 02:09

ttk: what type of plugin are you making general purpose, input, ouput, vis since they require different functions to be exported so winamp can recognise them and thne be able to load them.

the example files in the sdk include what's needed. if you've already done that then will need some more info to work on

-daz

ttk 13th April 2004 03:08

Thanks!
 
I wasnt adding the C_ in the following code:


extern "C" __declspec( dllexport ) winampGeneralPurposePlugin * winampGetGeneralPurposePlugin()
{
return &plugin;
}


Worked like a charm after adding it. Thanks everyone!


All times are GMT. The time now is 21:44.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.