PDA

View Full Version : stupid dev-c++


BloodXero
06-02-2003, 12:35 AM
ok im trying to compile my engine with dev-c++ and its not working out too pretty.

question 1:

when i compile about 7 of the 10 errors are for wavemix.h. im using wavemix, ive included the lib and its being really annoying. it keeps saying that on line 101 of wavemix.h there is an error because one of the arguments for a function defined there does not have a data type ... here is that function:

UINT WINAPI WaveMixConvert(HANDLE hMixSession, LPMIXWAVE lpMixWave, LPWAVEFORMAT lpFmt);

look like theres any missing data types to you? the output of the error thing:


101 c:\devcpp\include\wavemix.h
type specifier omitted for parameter
101 c:\devcpp\include\wavemix.h
parse error before `)'


it shows me that about three times and keeps pointing to where include wavemix.h.



question 2:

im doing fullscreen and in the EnumDisplaySettings function it is telling me that ENUM_CURRENT_SETTINGS isnt defined. i included windows.h and the damn thing is defined there. dumbass dev-c++ is screwing it up. this is what ive got:


DEVMODE dmSettings;

memset(&dmSettings, 0, sizeof(dmSettings));
dmSettings.dmPelsWidth = getWidth();
dmSettings.dmPelsHeight = getHeight();
dmSettings.dmFields = DM_PELSWIDTH | DM_PELSHEIGHT;
EnumDisplaySettings(NULL, ENUM_CURRENT_SETTINGS, &dmSettings);
ChangeDisplaySettings(&dmSettings, CDS_FULLSCREEN);


and its telling me this:


23 engine.cpp
`ENUM_CURRENT_SETTINGS' undeclared (first use this function)
(Each undeclared identifier is reported only once for each function it appears in).


and also its saying the same thing about CDS_FULLSCREEN. its in windows.h and its still saying the damn thing isnt defined.