Connexion rapide:  

Forum: VirtualDJ Plugins

Sujet Compiling Plug-Ins with VS 2008

Ce topic est ancien et peut contenir des informations obselètes ou incorrectes.

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();
};
 

Posté 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.
 

Posté 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>
 

Posté 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.
 

Posté Sun 05 Jul 09 @ 6:58 am


(Les anciens sujets et forums sont automatiquement fermés)