Connexion rapide:  

Forum: VirtualDJ Plugins

Sujet Problems compiling with Visual C++ Author Edition

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

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.

 

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

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

 

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

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

 

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

Posté Wed 07 Jun 06 @ 6:27 pm


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