This was a good day to... ehm, kill bugs

greetz,
cpu
quote:
Original post by DDSquad
hey cpu, I just tried on a computer with windows 98 and an ATI Rage 128. The program crahed while starting up. I checked the log file and the last entry said initializing DirectInput... The problem may simply be old drivers, but just wanted to let you know. Glad to hear you squashed the bugs and are seeing no more anomalies.
My Page davepermen.net | My Music on Bandcamp and on Soundcloud
quote:
Original post by davepermen
this will possibly start a flamewar, but cpu, i''ll suggest to not support win98 anymore. i hope dos finally can die in peace, its still reanimated for too long. everyone can move to win2000 or winXP if he wants to play games, there are nearly no points in stopping himself. there''s yet quite a lot of stuff not working on non-NT systems anymore anyways.
is the bugfree demo up? i''ll try that one then again..
quote:
Original post by davepermen
this will possibly start a flamewar, but cpu, i''ll suggest to not support win98 anymore. i hope dos finally can die in peace, its still reanimated for too long. everyone can move to win2000 or winXP if he wants to play games, there are nearly no points in stopping himself. there''s yet quite a lot of stuff not working on non-NT systems anymore anyways.
is the bugfree demo up? i''ll try that one then again..
"take a look around" - limp bizkit
www.google.com
quote:
Original post by a person
as to not supporting win98.
remember coders if you code like crap, the OS will work like crap. just like anything else. just turns out win98 is more finiky then NT style OSes like winxp and win2k.
your simply doing something wrong. if tons of high end 3d demos have no problem using dx8 on a win98 (winme) pc, then you should not either. also you may want to upgrade to dx8.1 since it does fix a few things.
please post an init method mentioned in the docs that causes a crash. i assume you dont pass bad data nor have anything miscreated. i also assume you check error messages as well.
int DInput::Init(){HRESULT hr;DIPROPDWORD dip; if (lpdiKeyboard!=NULL) { return DIN_ALREADY_INIT; } //Create the main DirectInput object hr=DirectInput8Create(hinstance, DIRECTINPUT_VERSION, IID_IDirectInput8, (void**)&lpdi, NULL); if(FAILED(hr)) { LogSysMsg(LOG_FATAL, "Could not create main DInput object"); return DIN_FATAL_ERROR; } //Create the keyboard's device object hr=lpdi->CreateDevice(GUID_SysKeyboard, &lpdiKeyboard, NULL); if(FAILED(hr)) { LogSysMsg(LOG_FATAL, "Could not create keyboard's object"); Shutdown(); return DIN_FATAL_ERROR; } //Set the keyboard's data format hr=lpdiKeyboard->SetDataFormat(&c_dfDIKeyboard); if(FAILED(hr)) { LogSysMsg(LOG_FATAL, "Could not set keyboard's data format"); Shutdown(); return DIN_FATAL_ERROR; } dip.diph.dwSize=sizeof(DIPROPDWORD); dip.diph.dwHeaderSize=sizeof(DIPROPHEADER); dip.diph.dwObj=0; dip.diph.dwHow=DIPH_DEVICE; dip.dwData=128; hr=lpdiKeyboard->SetProperty(DIPROP_BUFFERSIZE, &(dip.diph)); if(FAILED(hr)) { LogSysMsg(LOG_FATAL, "Could not set keyboard's buffer size"); Shutdown(); return DIN_FATAL_ERROR; } //Set the keyboard's cooperation level with your computer's //environment. hr=lpdiKeyboard->SetCooperativeLevel(hwnd, DISCL_FOREGROUND | DISCL_NONEXCLUSIVE); if(FAILED(hr)) { LogSysMsg(LOG_FATAL, "Could not set keyboard's cooperative level"); Shutdown(); return DIN_FATAL_ERROR; } //And finally, acquire the keyboard for use. hr=lpdiKeyboard->Acquire(); hr=lpdi->CreateDevice(GUID_SysMouse, &lpdiMouse, NULL); if(FAILED(hr)) { LogSysMsg(LOG_FATAL, "Could not create mouse object"); Shutdown(); return DIN_FATAL_ERROR; } hr=lpdiMouse->SetDataFormat(&c_dfDIMouse2); if(FAILED(hr)) { LogSysMsg(LOG_FATAL, "Could not set mouse data format"); Shutdown(); return DIN_FATAL_ERROR; } hr=lpdiMouse->SetCooperativeLevel(hwnd, DISCL_FOREGROUND | DISCL_NONEXCLUSIVE); if(FAILED(hr)) { LogSysMsg(LOG_FATAL, "Could not set mouse cooperative level"); Shutdown(); return DIN_FATAL_ERROR; }DIPROPDWORD dipdw; // the header dipdw.diph.dwSize = sizeof(DIPROPDWORD); dipdw.diph.dwHeaderSize = sizeof(DIPROPHEADER); dipdw.diph.dwObj = 0; dipdw.diph.dwHow = DIPH_DEVICE; // the data dipdw.dwData = MOUSE_BUFFER_SIZE; hr = lpdiMouse->SetProperty(DIPROP_BUFFERSIZE, &dipdw.diph); if (FAILED(hr)) { LogSysMsg(LOG_FATAL, "Could not set mouse eventbuffer size"); Shutdown(); return DIN_FATAL_ERROR; } hr=lpdiMouse->Acquire(); return DIN_OK;}
My Page davepermen.net | My Music on Bandcamp and on Soundcloud