Old 8th April 2004, 00:52   #1
ttk
Junior Member
 
Join Date: Apr 2004
Location: US
Posts: 16
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.
ttk is offline   Reply With Quote
Old 8th April 2004, 01:08   #2
Digitalhigh
Senior Member
 
Digitalhigh's Avatar
 
Join Date: Aug 2002
Location: hell
Posts: 232
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.
Digitalhigh is offline   Reply With Quote
Old 8th April 2004, 02:05   #3
Safai
Senior Member
 
Join Date: Sep 2000
Location: Canada
Posts: 249
Send a message via ICQ to Safai
for gen plugs make sure you have extern "C" in the export function... like this

code:

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

Safai is offline   Reply With Quote
Old 8th April 2004, 02:09   #4
DrO
 
Join Date: Sep 2003
Posts: 27,873
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
DrO is offline   Reply With Quote
Old 13th April 2004, 03:08   #5
ttk
Junior Member
 
Join Date: Apr 2004
Location: US
Posts: 16
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!
ttk is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > Winamp Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump