Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Jochen Schäfer

Pages: 1 [2] 3 4 ... 21
16
General Discussion / Re: when will version 5.1 of ArcaOS be released
« on: August 28, 2023, 10:36:44 am »
Yes, most likely everybody wants that. It would be better to just wait a day, so that the load on the site can subside.

17
General Discussion / Re: when will version 5.1 of ArcaOS be released
« on: August 27, 2023, 01:55:53 pm »
The site works again.

18
Programming / Re: Filling Comboboxes
« on: August 23, 2023, 12:28:47 pm »
Thanks

19
Programming / Re: Filling Comboboxes
« on: August 23, 2023, 11:09:43 am »
Thanks, Lars. I feel a little silly, for only checking the non-static items.

While we are at it:
I couldn't find a message to do this, but how can I  programmatically change a static text? If it is not possible with SS_TEXT, how else could I do it?

20
Programming / Re: Filling Comboboxes
« on: August 22, 2023, 10:03:49 am »
The most likely cause is a dialog-ID mismatch resulting in a null hwnd (or less likely, the wrong hwnd). A null string (i.e. "") is also a possibility. Use an fprintf() immediately before the failing call  to confirm, e.g.

Code: [Select]
fprintf(stderr, "hwnd= %x  str= %x - %s\n), launcher.listIWAD, iwadname, (iwadname ? iwadname : "null");

Run the app using "xxx.exe 2>&1 | tee"

FWIW... there's no need to suplpy a log file name if using GNU 'tee' (unless you want a log).
All the handles are not null. I also used WinSendDlgItemMsg, but actually none of the LM_INSERT messages fail. They all return 0 as index, which should be valid value.
For the IDs, I used constants, so I can avoid ID mismatches.
I put the code in an extra branch:
Code: [Select]
https://github.com/josch1710/prboom-plus-os2/tree/launcher.
The resource files are in prboom2/ICONS/ and the C code is in prboom2/src/os2_launcher.c

21
Programming / Re: Filling Comboboxes
« on: August 21, 2023, 10:57:03 am »
@Lars: Unfortunately, putting the comboboxes in (a) group(s) didn't help. The attributes are all the same.

22
Programming / Filling Comboboxes
« on: August 20, 2023, 11:17:27 am »
I have the launcher dialog for PrBoom+ setup with the appended RC file (compiled with WRC) inside the WM_INITDLG call.
I try to fill a combox with LM_INSERTITEM, but the strings are not displayed, while not returning. The code, I use is like this:
Code: [Select]
WinSendMsg(launcher.listIWAD, LM_INSERTITEM, MPFROMSHORT(LIT_END), MPFROMP((PSZ)iwadname))launcher.listIWAD is the handle of the control fetched by WinWindowFromID. iwadname is a char array filled with the display string.
The strange part is that I can fill the command combobox and the files listbox, but not the games and the history comboboxes.
I tried to send the messages by calling WinSendDlgItemMsg or converting the combobox into a listbox. No changes.

Does anyone have a clue, whats going on here?

23
Programming / Re: Strange behaviour in SDL2
« on: August 20, 2023, 11:01:58 am »
Yeah, that was my problem, which started this thread. I'm seeing the  DART device being opened, but the callback for filling the samples never gets called, so there is no sound.
But when some other sound event, like the volume knob or a sound notification, triggers the callback.

24
Games / Re: PrBoom+
« on: August 19, 2023, 10:06:03 am »
This https://share.icloud.com/photos/0b7c7rSdylbdGRgIbMJAGde_g shows a teaser of the launcher, I’m working on.

25
Programming / Re: Compiling a SDL Game (2023)
« on: August 18, 2023, 04:56:49 pm »
Redirect stdout and stderr to a file. By habit I do "rocksndiamonds 2>&1 | tee rocksndiamonds.log" as I always forget the other way without tee.
Exactly what I did with FeatherPad.

26
Programming / Re: Strange behaviour in SDL2
« on: August 17, 2023, 05:06:45 pm »
2.6.66 is compiling and running just fine. As I said before, I'm working on the launcher dialog. When I'm done, I will drop a new binary.

27
Programming / Re: Strange behaviour in SDL2
« on: August 16, 2023, 01:26:49 pm »
Does the CAD handler still work? If yes, can you kill the process?

28
Programming / Re: Strange behaviour in SDL2
« on: August 15, 2023, 01:10:54 pm »
Hi David.

You are correct, but no hang for me, sadly. Can you tell us something about your machine?

29
Programming / Re: Strange behaviour in SDL2
« on: August 15, 2023, 09:47:27 am »
@Lars, I don't quite get, what you are getting at. On my machine, the SDL2 tests work.

Use the test apps to play the sound file and manipulate the volume while doing so.
No crash on my machine.
@David: What is your setup?

30
Programming / Re: Strange behaviour in SDL2
« on: August 15, 2023, 09:46:46 am »
Hi Jochen,

  According to PMDLL, 'Rocks and Diamonds' uses SDL2200.dll, SDL2I200.dll, SDL2M200.dll, and SDL2N200.dll. PRBoom uses SDL2I200.dll only (which in turn uses SDL2200.dll). So it looks like they are using the same version, but in a different manner...

Regards,.
Yes, PrBoom does some strange things with the SDL2 audio/mixer interface. I'm working at the moment to have the launcher dialog at startup.
I then can work on the sound issues.


Pages: 1 [2] 3 4 ... 21