Win 9x problems

Two questions as follows. I’ve attached my build script and a minimal program.

  1. I’m getting a weird problem on one of my Win98 test environments.
    On the other Win 98 environment and on a real Win 98 and Windows XP
    it seems just fine. On calling “Mix_OpenAudio” the program locks.
    Trying to terminate it results in a locked up machine.

Anybody seen anything like this? Is that Win98 environment broken? I
guess I could trace inside Mix_OpenAudio - I guess that’s the next
option.

  1. Have we officially dropped Win95 support or is my Win95
    environment also broken? My programs appear to work just fine with
    older versions of SDL.dll (not sure which old version I have on Win95
  • maybe 1.2.5)

I get two dialog boxes trying to run the example - the first reads
"“The SDL.DLL file is linked to a missing export
USER32.DLL:GetAncestor”" and the second reads
"C:\WINDOWS\DESKTOP\test\test.exe A device attached to the system
is not functioning."

I’m using SDL1.2.8 and SDL_mixer 1.2.6 DLL’s in both cases.

(As a site note - I’m building targeting Windows using MinGW and fink
on MacOSX - don’t you just love gcc!)

Many thanks,

Regards,
Rob

#!/bin/sh

PREFIX=/usr/local/cross-tools
TARGET=i386-mingw32msvc
PATH="$PREFIX/bin:$PREFIX/$TARGET/bin:$PATH"
export PATH
exec gcc -o sdl_test.exe sdl_test.c
-I/usr/local/cross-tools/i386-mingw32msvc/include/SDL -Dmain=SDL_main
-L/usr/local/cross-tools/i386-mingw32msvc/lib -lmingw32 -lSDLmain
-lSDL -lSDL_mixer -mwindows

// the test program
#include <stdio.h>

#include “SDL.h”
#include “SDL_mixer/SDL_mixer.h”

int main(int argc, char **argv)
{
printf(“sdl test: Hello (on %s at %s)\n”,DATE,TIME);

// start SDL with audio support
if(SDL_Init(SDL_INIT_AUDIO)==-1) {
	printf("SDL_Init: %s\n", SDL_GetError());
	exit(1);
}

printf("sdl test: inited\n");

// open 44.1KHz, signed 16bit, system byte order,
//      stereo audio, using 1024 byte chunks
if(Mix_OpenAudio(44100, MIX_DEFAULT_FORMAT, 2, 1024)==-1) {
	printf("Mix_OpenAudio: %s\n", Mix_GetError());
	exit(2);
}


printf("sdl test: Goodbye\n");

return (0);

}

Anybody seen anything like this? Is that Win98 environment broken?

I bite my tounge real hard and try not to say anything nasty about
Microsh^Hoft.

:-)On Sunday 23 January 2005 03:02 pm, Rob Probin wrote:

People from M$ says it is broken (all versions of
windows).
I do not use windows… I like the Unix-like
environment, and I fell more secure on it.
Despite of most used (for now, you can be sure about
it), it does not mean it is better.
I can start a flame… but, I like the facts, not
what people from press (paid by M$) say.

It is my personal opinion. If you like M$ arch, it is
ok, I do respect your taste and opinion, but I will
not pay attention to your complains about it :slight_smile:

— Rob Probin escreveu:

Two questions as follows. I’ve attached my build
script and a minimal program.

  1. I’m getting a weird problem on one of my Win98
    test environments.
    On the other Win 98 environment and on a real Win 98
    and Windows XP
    it seems just fine. On calling “Mix_OpenAudio” the
    program locks.
    Trying to terminate it results in a locked up
    machine.

Anybody seen anything like this? Is that Win98
environment broken? I
guess I could trace inside Mix_OpenAudio - I guess
that’s the next
option.

  1. Have we officially dropped Win95 support or is my
    Win95
    environment also broken? My programs appear to work
    just fine with
    older versions of SDL.dll (not sure which old
    version I have on Win95
  • maybe 1.2.5)

I get two dialog boxes trying to run the example -
the first reads
"“The SDL.DLL file is linked to a missing export
USER32.DLL:GetAncestor”" and the second reads
"C:\WINDOWS\DESKTOP\test\test.exe A device
attached to the system
is not functioning."

I’m using SDL1.2.8 and SDL_mixer 1.2.6 DLL’s in both
cases.

(As a site note - I’m building targeting Windows
using MinGW and fink
on MacOSX - don’t you just love gcc!)

Many thanks,

Regards,
Rob

#!/bin/sh

PREFIX=/usr/local/cross-tools
TARGET=i386-mingw32msvc
PATH="$PREFIX/bin:$PREFIX/$TARGET/bin:$PATH"
export PATH
exec gcc -o sdl_test.exe sdl_test.c

-I/usr/local/cross-tools/i386-mingw32msvc/include/SDL> -Dmain=SDL_main

-L/usr/local/cross-tools/i386-mingw32msvc/lib
-lmingw32 -lSDLmain
-lSDL -lSDL_mixer -mwindows

// the test program
#include <stdio.h>

#include “SDL.h”
#include “SDL_mixer/SDL_mixer.h”

int main(int argc, char **argv)
{
printf(“sdl test: Hello (on %s at
%s)\n”,DATE,TIME);

// start SDL with audio support
if(SDL_Init(SDL_INIT_AUDIO)==-1) {
printf(“SDL_Init: %s\n”, SDL_GetError());
exit(1);
}

printf(“sdl test: inited\n”);

// open 44.1KHz, signed 16bit, system byte order,
// stereo audio, using 1024 byte chunks
if(Mix_OpenAudio(44100, MIX_DEFAULT_FORMAT, 2,
1024)==-1) {
printf(“Mix_OpenAudio: %s\n”, Mix_GetError());
exit(2);
}

printf(“sdl test: Goodbye\n”);

return (0);
}


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


Converse com seus amigos em tempo real com o Yahoo! Messenger

For the GetAncestor() win32 api call, you need Windows 98, Windows NT 4.0
SP4 at least.

If it is a design decision in SDL (which I don’t know :slight_smile: ), this means that
win95 is unsupported by newer versions of SDL.
If so, don’t use them under win95. This function is used by directx5 event
handling implementation in 1.2.8> 2. Have we officially dropped Win95 support or is my Win95

environment also broken? My programs appear to work just fine with
older versions of SDL.dll (not sure which old version I have on Win95

  • maybe 1.2.5)

I get two dialog boxes trying to run the example - the first reads
"“The SDL.DLL file is linked to a missing export
USER32.DLL:GetAncestor”" and the second reads
"C:\WINDOWS\DESKTOP\test\test.exe A device attached to the system
is not functioning."

“If you like M$ arch…”

You must have missed the line where I said I was building for Windows
on Mac OS X.

I can’t help it if 98% of my possible audience uses Windows - that’s
their (current) choice.

Regards,
Rob>From: J Inacio

People from M$ says it is broken (all versions of
windows).
I do not use windows… I like the Unix-like
environment, and I fell more secure on it.
Despite of most used (for now, you can be sure about
it), it does not mean it is better.
I can start a flame… but, I like the facts, not
what people from press (paid by M$) say.

It is my personal opinion. If you like M$ arch, it is
ok, I do respect your taste and opinion, but I will
not pay attention to your complains about it :slight_smile:

— Rob Probin escreveu:

(As a site note - I’m building targeting Windows
using MinGW and fink
on MacOSX - don’t you just love gcc!)