I just installed dev-c++ and i'd like to make my own mapper for dac-3.
I made new dll-project and downloaded DAC3Mapper.h and DAC3DefaultMapper.cpp.
But when i try to compile them i get this:
-----------------------------------------
Compiler: Default compiler
Building Makefile: "C:\Dev-Cpp\Makefile.win"
Executing make...
make.exe -f "C:\Dev-Cpp\Makefile.win" all
g++.exe -c workspace/DAC3DefaultMapper.cpp -o workspace/DAC3DefaultMapper.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include" -DBUILDING_DLL=1
In file included from workspace/DAC3DefaultMapper.cpp:1:
workspace/DAC3Mapper.h:112: error: `GUID' does not name a type
workspace/DAC3Mapper.h:113: error: `GUID' does not name a type
workspace/DAC3Mapper.h:118: error: expected `,' or `...' before '&' token
workspace/DAC3Mapper.h:118: error: ISO C++ forbids declaration of `GUID' with no type
workspace/DAC3DefaultMapper.cpp: In member function `virtual HRESULT CDAC3DefaultMapper::OnButton(int, int, int)':
workspace/DAC3DefaultMapper.cpp:30: error: invalid conversion from `const char*' to `char*'
workspace/DAC3DefaultMapper.cpp:25: error: too few arguments to function `char* IntToStr(int, char*)'
workspace/DAC3DefaultMapper.cpp:69: error: at this point in file
workspace/DAC3DefaultMapper.cpp:99: error: invalid conversion from `const char*' to `char*'
workspace/DAC3DefaultMapper.cpp:100: error: invalid conversion from `const char*' to `char*'
workspace/DAC3DefaultMapper.cpp:103: error: invalid conversion from `const char*' to `char*'
workspace/DAC3DefaultMapper.cpp:104: error: invalid conversion from `const char*' to `char*'
workspace/DAC3DefaultMapper.cpp:113: error: invalid conversion from `const char*' to `char*'
workspace/DAC3DefaultMapper.cpp:132: error: `E_NOTIMPL' undeclared (first use this function)
workspace/DAC3DefaultMapper.cpp:132: error: (Each undeclared identifier is reported only once for each function it appears in.)
workspace/DAC3DefaultMapper.cpp:134: error: `S_OK' undeclared (first use this function)
workspace/DAC3DefaultMapper.cpp: In member function `virtual HRESULT CDAC3DefaultMapper::OnPitch(int, int)':
workspace/DAC3DefaultMapper.cpp:139: error: invalid conversion from `const char*' to `char*'
workspace/DAC3DefaultMapper.cpp:141: error: `S_FALSE' undeclared (first use this function)
workspace/DAC3DefaultMapper.cpp:26: error: too few arguments to function `char* IntToStrRelative(int, char*)'
workspace/DAC3DefaultMapper.cpp:142: error: at this point in file
workspace/DAC3DefaultMapper.cpp:25: error: too few arguments to function `char* IntToStr(int, char*)'
workspace/DAC3DefaultMapper.cpp:143: error: at this point in file
workspace/DAC3DefaultMapper.cpp:145: error: `S_OK' undeclared (first use this function)
workspace/DAC3DefaultMapper.cpp: In member function `virtual HRESULT CDAC3DefaultMapper::OnJog(int, int)':
workspace/DAC3DefaultMapper.cpp:150: error: invalid conversion from `const char*' to `char*'
workspace/DAC3DefaultMapper.cpp:26: error: too few arguments to function `char* IntToStrRelative(int, char*)'
workspace/DAC3DefaultMapper.cpp:152: error: at this point in file
workspace/DAC3DefaultMapper.cpp:26: error: too few arguments to function `char* IntToStrRelative(int, char*)'
workspace/DAC3DefaultMapper.cpp:153: error: at this point in file
workspace/DAC3DefaultMapper.cpp:26: error: too few arguments to function `char* IntToStrRelative(int, char*)'
workspace/DAC3DefaultMapper.cpp:154: error: at this point in file
workspace/DAC3DefaultMapper.cpp:26: error: too few arguments to function `char* IntToStrRelative(int, char*)'
workspace/DAC3DefaultMapper.cpp:155: error: at this point in file
workspace/DAC3DefaultMapper.cpp:26: error: too few arguments to function `char* IntToStrRelative(int, char*)'
workspace/DAC3DefaultMapper.cpp:156: error: at this point in file
workspace/DAC3DefaultMapper.cpp:157: error: `S_OK' undeclared (first use this function)
workspace/DAC3DefaultMapper.cpp: In member function `virtual HRESULT CDAC3DefaultMapper::OnTimer()':
workspace/DAC3DefaultMapper.cpp:177: error: `MulDiv' undeclared (first use this function)
workspace/DAC3DefaultMapper.cpp:211: error: `S_OK' undeclared (first use this function)
workspace/DAC3DefaultMapper.cpp: At global scope:
workspace/DAC3DefaultMapper.cpp:215: error: expected `,' or `...' before '&' token
workspace/DAC3DefaultMapper.cpp:216: error: ISO C++ forbids declaration of `GUID' with no type
workspace/DAC3DefaultMapper.cpp: In function `HRESULT DllGetClassObject(int)':
workspace/DAC3DefaultMapper.cpp:217: error: `riid' undeclared (first use this function)
workspace/DAC3DefaultMapper.cpp:217: error: `IID_IVdjDac3' undeclared (first use this function)
workspace/DAC3DefaultMapper.cpp:217: error: `memcmp' undeclared (first use this function)
workspace/DAC3DefaultMapper.cpp:217: error: `CLASS_E_CLASSNOTAVAILABLE' undeclared (first use this function)
workspace/DAC3DefaultMapper.cpp:218: error: `ppObject' undeclared (first use this function)
workspace/DAC3DefaultMapper.cpp:219: error: `NO_ERROR' undeclared (first use this function)
make.exe: *** [workspace/DAC3DefaultMapper.o] Error 1
Execution terminated
--------------------
Whats wrong????????????????
I made new dll-project and downloaded DAC3Mapper.h and DAC3DefaultMapper.cpp.
But when i try to compile them i get this:
-----------------------------------------
Compiler: Default compiler
Building Makefile: "C:\Dev-Cpp\Makefile.win"
Executing make...
make.exe -f "C:\Dev-Cpp\Makefile.win" all
g++.exe -c workspace/DAC3DefaultMapper.cpp -o workspace/DAC3DefaultMapper.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include" -DBUILDING_DLL=1
In file included from workspace/DAC3DefaultMapper.cpp:1:
workspace/DAC3Mapper.h:112: error: `GUID' does not name a type
workspace/DAC3Mapper.h:113: error: `GUID' does not name a type
workspace/DAC3Mapper.h:118: error: expected `,' or `...' before '&' token
workspace/DAC3Mapper.h:118: error: ISO C++ forbids declaration of `GUID' with no type
workspace/DAC3DefaultMapper.cpp: In member function `virtual HRESULT CDAC3DefaultMapper::OnButton(int, int, int)':
workspace/DAC3DefaultMapper.cpp:30: error: invalid conversion from `const char*' to `char*'
workspace/DAC3DefaultMapper.cpp:25: error: too few arguments to function `char* IntToStr(int, char*)'
workspace/DAC3DefaultMapper.cpp:69: error: at this point in file
workspace/DAC3DefaultMapper.cpp:99: error: invalid conversion from `const char*' to `char*'
workspace/DAC3DefaultMapper.cpp:100: error: invalid conversion from `const char*' to `char*'
workspace/DAC3DefaultMapper.cpp:103: error: invalid conversion from `const char*' to `char*'
workspace/DAC3DefaultMapper.cpp:104: error: invalid conversion from `const char*' to `char*'
workspace/DAC3DefaultMapper.cpp:113: error: invalid conversion from `const char*' to `char*'
workspace/DAC3DefaultMapper.cpp:132: error: `E_NOTIMPL' undeclared (first use this function)
workspace/DAC3DefaultMapper.cpp:132: error: (Each undeclared identifier is reported only once for each function it appears in.)
workspace/DAC3DefaultMapper.cpp:134: error: `S_OK' undeclared (first use this function)
workspace/DAC3DefaultMapper.cpp: In member function `virtual HRESULT CDAC3DefaultMapper::OnPitch(int, int)':
workspace/DAC3DefaultMapper.cpp:139: error: invalid conversion from `const char*' to `char*'
workspace/DAC3DefaultMapper.cpp:141: error: `S_FALSE' undeclared (first use this function)
workspace/DAC3DefaultMapper.cpp:26: error: too few arguments to function `char* IntToStrRelative(int, char*)'
workspace/DAC3DefaultMapper.cpp:142: error: at this point in file
workspace/DAC3DefaultMapper.cpp:25: error: too few arguments to function `char* IntToStr(int, char*)'
workspace/DAC3DefaultMapper.cpp:143: error: at this point in file
workspace/DAC3DefaultMapper.cpp:145: error: `S_OK' undeclared (first use this function)
workspace/DAC3DefaultMapper.cpp: In member function `virtual HRESULT CDAC3DefaultMapper::OnJog(int, int)':
workspace/DAC3DefaultMapper.cpp:150: error: invalid conversion from `const char*' to `char*'
workspace/DAC3DefaultMapper.cpp:26: error: too few arguments to function `char* IntToStrRelative(int, char*)'
workspace/DAC3DefaultMapper.cpp:152: error: at this point in file
workspace/DAC3DefaultMapper.cpp:26: error: too few arguments to function `char* IntToStrRelative(int, char*)'
workspace/DAC3DefaultMapper.cpp:153: error: at this point in file
workspace/DAC3DefaultMapper.cpp:26: error: too few arguments to function `char* IntToStrRelative(int, char*)'
workspace/DAC3DefaultMapper.cpp:154: error: at this point in file
workspace/DAC3DefaultMapper.cpp:26: error: too few arguments to function `char* IntToStrRelative(int, char*)'
workspace/DAC3DefaultMapper.cpp:155: error: at this point in file
workspace/DAC3DefaultMapper.cpp:26: error: too few arguments to function `char* IntToStrRelative(int, char*)'
workspace/DAC3DefaultMapper.cpp:156: error: at this point in file
workspace/DAC3DefaultMapper.cpp:157: error: `S_OK' undeclared (first use this function)
workspace/DAC3DefaultMapper.cpp: In member function `virtual HRESULT CDAC3DefaultMapper::OnTimer()':
workspace/DAC3DefaultMapper.cpp:177: error: `MulDiv' undeclared (first use this function)
workspace/DAC3DefaultMapper.cpp:211: error: `S_OK' undeclared (first use this function)
workspace/DAC3DefaultMapper.cpp: At global scope:
workspace/DAC3DefaultMapper.cpp:215: error: expected `,' or `...' before '&' token
workspace/DAC3DefaultMapper.cpp:216: error: ISO C++ forbids declaration of `GUID' with no type
workspace/DAC3DefaultMapper.cpp: In function `HRESULT DllGetClassObject(int)':
workspace/DAC3DefaultMapper.cpp:217: error: `riid' undeclared (first use this function)
workspace/DAC3DefaultMapper.cpp:217: error: `IID_IVdjDac3' undeclared (first use this function)
workspace/DAC3DefaultMapper.cpp:217: error: `memcmp' undeclared (first use this function)
workspace/DAC3DefaultMapper.cpp:217: error: `CLASS_E_CLASSNOTAVAILABLE' undeclared (first use this function)
workspace/DAC3DefaultMapper.cpp:218: error: `ppObject' undeclared (first use this function)
workspace/DAC3DefaultMapper.cpp:219: error: `NO_ERROR' undeclared (first use this function)
make.exe: *** [workspace/DAC3DefaultMapper.o] Error 1
Execution terminated
--------------------
Whats wrong????????????????
Inviato Sat 08 Jul 06 @ 2:30 pm