Author Topic: DOSBox-x - infinite loop in configure/make  (Read 8173 times)

Jochen Schäfer

  • Sr. Member
  • ****
  • Posts: 383
  • Karma: +30/-0
    • View Profile
Re: DOSBox-x - infinite loop in configure/make
« Reply #15 on: January 17, 2025, 10:14:31 am »
Cool, so the latest dosbox-x works fine on Arca then?
Certainly not, because DOSBOX-X adds a lot native GUI, which has to be programmed.

j

  • Newbie
  • *
  • Posts: 36
  • Karma: +2/-0
    • View Profile
Re: DOSBox-x - infinite loop in configure/make
« Reply #16 on: January 17, 2025, 12:46:49 pm »
Thank you Mentore, fingers crossed!

Jochen Schäfer

  • Sr. Member
  • ****
  • Posts: 383
  • Karma: +30/-0
    • View Profile
Re: DOSBox-x - infinite loop in configure/make
« Reply #17 on: March 26, 2025, 11:06:58 am »
Hi.

I have succesfully build and run a port of DOSBOX-X.

I'm in the process of feeding PRs to upstream. After that, I will build some binaries.

Stay tuned.

PS: Classicube is not forgotten ;-)

Pete

  • Hero Member
  • *****
  • Posts: 1402
  • Karma: +13/-0
    • View Profile
Re: DOSBox-x - infinite loop in configure/make
« Reply #18 on: March 27, 2025, 12:02:00 am »
Hi Jochen

Sounds promising  :-)


Regards

Pete

Jochen Schäfer

  • Sr. Member
  • ****
  • Posts: 383
  • Karma: +30/-0
    • View Profile
Re: DOSBox-x - infinite loop in configure/make
« Reply #19 on: April 19, 2025, 02:53:50 pm »
Hi guys.

I'm getting through the open issues very well. I think, I can release a test build soon.
But I have some open issues, for which I couldn't find documentation:
  • Is it possible to use WinFileDlg to select a directory? I can filter directories, but I can't select them.
  • Can I manipulate the style values of a dialog control at runtime, eg. in WM_INITDLG?
  • The API documentation alludes to being able to build a dialog description in memory via DLGTEMPLATE and DLGITEM structures, but doesn't show how nor documents the structures at all. Does someone know some sample code for this process?
  • Do we have a color chooser dialog (I know nothing official), or some code how to do it? Or, would it suffice to enter the code as a string with the hex code pattern '#RRGGBB'?


If someone has some answers or pointers for frther investigations, it would help for this port.

Jochen Schäfer

  • Sr. Member
  • ****
  • Posts: 383
  • Karma: +30/-0
    • View Profile
Re: DOSBox-x - infinite loop in configure/make
« Reply #20 on: April 19, 2025, 03:07:36 pm »
Hi guys.

I'm getting through the open issues very well. I think, I can release a test build soon.
But I have some open issues, for which I couldn't find documentation:
  • Is it possible to use WinFileDlg to select a directory? I can filter directories, but I can't select them.
  • Can I manipulate the style values of a dialog control at runtime, eg. in WM_INITDLG?
  • The API documentation alludes to being able to build a dialog description in memory via DLGTEMPLATE and DLGITEM structures, but doesn't show how nor documents the structures at all. Does someone know some sample code for this process?
  • Can someone recommend some documentation or development books for OS/2 console programming?
  • Optional: Do we have a color chooser dialog (I know nothing official), or some code how to do it? Or, would it suffice to enter the code as a string with the hex code pattern '#RRGGBB'?


If someone has some answers or pointers for frther investigations, it would help for this port.

Pete

  • Hero Member
  • *****
  • Posts: 1402
  • Karma: +13/-0
    • View Profile
Re: DOSBox-x - infinite loop in configure/make
« Reply #21 on: April 19, 2025, 03:20:42 pm »
Hi Jochen

I'm not a "c" programmer but looking through pm2.inf (from os/2 toolkit) it looks like you can set the initial directory in the FILEDLG structure:-
   char pszFullFile[CCHMAXPATH] = "*.C";  /* File filter string */       
I would change the above to the following to see if it works
   char pszFullFile[CCHMAXPATH] = "Drive:\Path\*.*"; /*Set to required Drive:\Path */

eg:
  char pszFullFile[CCHMAXPATH] = "C:\Programs\*.*"; 


Regards

Pete

 
« Last Edit: April 19, 2025, 03:24:22 pm by Pete »

Neil Waldhauer

  • Hero Member
  • *****
  • Posts: 1120
  • Karma: +30/-0
    • View Profile
    • Blonde Guy
Re: DOSBox-x - infinite loop in configure/make
« Reply #22 on: April 19, 2025, 04:09:04 pm »
In the FILEDLG structure, set the usDlgId member to IDDLG_DIRECTORY to get a dialog that can select directories.
Expert consulting for ArcaOS, OS/2 and eComStation
http://www.blondeguy.com

Jochen Schäfer

  • Sr. Member
  • ****
  • Posts: 383
  • Karma: +30/-0
    • View Profile
Re: DOSBox-x - infinite loop in configure/make
« Reply #23 on: April 19, 2025, 10:52:54 pm »
In the FILEDLG structure, set the usDlgId member to IDDLG_DIRECTORY to get a dialog that can select directories.
Thanks, that's what I needed. I will try it in a few days.

Jochen Schäfer

  • Sr. Member
  • ****
  • Posts: 383
  • Karma: +30/-0
    • View Profile
Re: DOSBox-x - infinite loop in configure/make
« Reply #24 on: April 20, 2025, 08:32:26 am »
In the FILEDLG structure, set the usDlgId member to IDDLG_DIRECTORY to get a dialog that can select directories.
Thanks, that's what I needed. I will try it in a few days.
Hi, Neil.

Can you tell me the value of IDDLG_DIRECTORY? I can't find it in the OS/2 toolkit or the EMX headers.

Lars

  • Hero Member
  • *****
  • Posts: 1423
  • Karma: +72/-0
    • View Profile
Re: DOSBox-x - infinite loop in configure/make
« Reply #25 on: April 20, 2025, 02:30:10 pm »
Just a guess: try DID_DIRECTORY_SELECTED.

Neil Waldhauer

  • Hero Member
  • *****
  • Posts: 1120
  • Karma: +30/-0
    • View Profile
    • Blonde Guy
Re: DOSBox-x - infinite loop in configure/make
« Reply #26 on: April 21, 2025, 04:38:08 am »
NOTES: this code taken from Dr. Dialog

#define IDDLG_DIRECTORY             5500
Expert consulting for ArcaOS, OS/2 and eComStation
http://www.blondeguy.com