Quick Sign In:  

Forum: VirtualDJ Plugins

Topic: Problems compiling with Visual C++ Author Edition

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

BorniPIHome userMember since 2006
I got an Error messages if try to compile the Brake.cpp with header VdjDsp2.h .
c:\virtual dj source\start\brake.cpp(122) : fatal error C1010: Unerwartetes Dateiende waehrend der Suche nach der Direktive fuer die vorkompilierte Header-Datei

Don't know how to solve the problem i just want to expands the time to 10 sec.

 

Posted Wed 31 May 06 @ 11:07 pm
TexZKPRO InfinityMember since 2005
 

Posted Thu 01 Jun 06 @ 9:24 am
BorniPIHome userMember since 2006
I did add the line #include "stdafx.h".

Now i got the error:
c:\virtual dj source\brake8\vdjdsp2.h(153) : error C2375: 'DllGetClassObject' : Neudefinition; unterschiedliche Bindung
c:\programme\microsoft visual studio\vc98\include\objbase.h(769) : Siehe Deklaration von 'DllGetClassObject'

It is like in http://www.virtualdj.com/forums/43007/Plugins/Compiling_the_DAC-3_mapper_SDK.html?highlight=%20error%20c2375:

i did not understand how jpboggis did solve the problem.

Here is a snippet of the code:

#define WIN32_LEAN_AND_MEAN
#include < windows.h>
#include "stdafx.h"
#include <math.h>
//#include <stdlib.h>
#include "VdjDsp2.h"

 

Posted Fri 02 Jun 06 @ 12:30 pm
djcelPRO InfinityModeratorMember since 2004
BorniPI wrote :


#define WIN32_LEAN_AND_MEAN
#include < windows.h>
#include "stdafx.h"
#include <math.h>
//#include <stdlib.h>
#include "VdjDsp2.h"



If you use:
#include "stdafx.h"

you don't need to include:
#include < windows.h>
 

Posted Sun 04 Jun 06 @ 12:44 am
BorniPIHome userMember since 2006
BorniPI wrote :

I did add the line #include "stdafx.h".

i did not understand how jpboggis did solve the problem.



djcel wrote :

If you use:
#include "stdafx.h"

you don't need to include:
#include < windows.h>



Ok. But what is with these two different definition?

c:\\virtual dj \\sourcebrake8\\vdjdsp2.h(153) : error C2375: 'DllGetClassObject': redefinition; different linkage
c:\\programme\\microsoft visual studio\\vc98\\includeobjbase.h(769) : see declaration of 'DllGetClassObject'

That was my question. What is the solution?

 

Posted Tue 06 Jun 06 @ 6:34 pm
djcelPRO InfinityModeratorMember since 2004
You have a problem of "include" (=> linker). First write like that:

#define WIN32_LEAN_AND_MEAN
#include "stdafx.h"
#include "VdjDsp2.h"

#include < math.h>
//#include < stdlib.h>
 

Posted Wed 07 Jun 06 @ 6:27 pm


(Old topics and forums are automatically closed)