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();
};
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
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
It looks like a problem of Windows header. Are you using MFC ?
Use :
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
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.
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