Quick Sign In:  

Forum: VirtualDJ Plugins

Topic: Compiling Plug-Ins with VS 2008

This topic is old and might contain outdated or incorrect information.

Hello I try to build an DSP Plugin,
but when I try to compile it I get the Error:
VdjPlugin.h(141) : error C2375: 'DllGetClassObject': new definition of 'DllGetClassObject'
see Windows\v6.0A\include\objbase.h(852):'DllGetClassObject'
And I see that DllGetClassObject is define 2 times.
What goes wrong?
my code:

class test : public IVdjPluginDsp
{
public:
test();
};
 

Posted Thu 02 Jul 09 @ 7:50 am
SBDJPRO Infinity Member since 2006
I'm guessing you are using an older version of the SDK, try defining WIN32_LEAN_AND_MEAN.
 

Posted Thu 02 Jul 09 @ 8:55 am
djcelPRO InfinityModeratorMember since 2004
It looks like a problem of Windows header. Are you using MFC ?

Use :
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
 

Posted Fri 03 Jul 09 @ 7:21 am
The problem is now solvend,
because I use a 3th party lib for the plug in, I must change the odrer of include files.
Moveing the #include <vdjDsp.h> to the first line has solved it.
 

Posted Sun 05 Jul 09 @ 6:58 am


(Old topics and forums are automatically closed)