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 - Dave Yeo

Pages: [1] 2 3 ... 290
1
Events / Re: ArcaOS 5.0.8 is out!
« on: June 03, 2023, 01:03:59 am »
The kernel has some memory fixes, mostly for certain UEFI systems with fragmented memory IIRC.

2
Programming / Re: Compiling a PM sample with GCC (2023)
« on: June 02, 2023, 05:51:35 pm »
I change the jigsaw.res rule to,
Code: [Select]
jigsaw.res: jigsaw.rc jigsaw.h jigsaw.ico jighelp.rc jigsaw.dlg
        wrc -r jigsaw.rc jighelp.rc
Based on JIGSAW.MAK.
I think it is to help open the help at the correct spot

3
Web applications / Re: Dooble releases, Qt5 builds
« on: June 02, 2023, 04:34:29 pm »
it is recommended to remove the existing .dooble directory before the new installation, right?

You shouldn't have to, though one report of needing to clear some cookies. If for some reason sites stop working, you can try removing .dooble

4
Programming / Re: Compiling a PM sample with GCC (2023)
« on: June 02, 2023, 05:52:44 am »
According to the Presentation Manager Programming Guide, sRgnType should be a long.
Code: [Select]
This call obtains an update region of a window.


#define INCL_WINWINDOWMGR /* Or use INCL_WIN, INCL_PM, */
#include <os2.h>

HWND    hwnd;         /*  Handle of window whose update region is to be queried. */
HRGN    hrgn;         /*  Handle of the window's update region. */
LONG    lComplexity;  /*  Complexity of resulting region/error indicator. */

lComplexity = WinQueryUpdateRegion(hwnd, hrgn);

It's like the rc in a previous example, there could be "Complexity of resulting region/error indicator"  checking later or can look at the variable in a debugger.
Considering the documentation shows the syntax shows using a variable like sRgnType, I'd leave it in even if it didn't hurt to remove it.

5
Programming / Re: Compiling a PM sample with GCC (2023)
« on: June 02, 2023, 01:44:41 am »
Hi Dave

You are right. I found an issue in my config.sys. I had a wipfc mess there.

Now it generates the .hlp and works, I also got the:
"<hanoi.ipf:125:1> Warning 31: Unable to find the id or name for this reference..."
..etc.

Regards

Probably should compare the wipf and ipfc help files. Wipf isn't 100% compatible and those warning might mean something. Not that it matters much with these example programs

6
Programming / Re: Compiling a PM sample with GCC (2023)
« on: June 01, 2023, 04:47:39 pm »
Here, I got,
Code: [Select]
wipfc hanoi.ipf
Open Watcom OS/2 Help Compiler Version 2.0beta1 Limited Availability
Copyright (c) 2010 Open Watcom Contributors. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See http://www.openwatcom.org/ for details.
<hanoi.ipf:125:1> Warning 31: Unable to find the id or name for this reference
<hanoi.ipf:133:1> Warning 31: Unable to find the id or name for this reference
<hanoi.ipf:141:1> Warning 31: Unable to find the id or name for this reference
<hanoi.ipf:149:1> Warning 31: Unable to find the id or name for this reference
<hanoi.ipf:157:1> Warning 31: Unable to find the id or name for this reference
<hanoi.ipf:165:1> Warning 31: Unable to find the id or name for this reference
and a hanoi.hlp file.
Note that I had to install watcom-wipfc with ANPM and it wanted a reboot before it worked. It added
Code: [Select]
SET WIPFC=W:\usr\share\os2\wipfcto my config.sys.
Using ipfc, I see the warning,
Code: [Select]
Compiling document with following Country Code, Code Page:
1, 850

<hanoi.ipf:167> Warning 208: Missing tag [euserdoc]

Also I had to comment out this, as prodinfo.bmp is missing
Code: [Select]
/* BITMAP IDR_BITMAP "..\\prodinfo.bmp"*/

7
Programming / Re: Compiling a PM sample with GCC (2023)
« on: May 31, 2023, 06:04:23 pm »
It's weird, supposed to show the help with no parameters,
Code: [Select]
int main ( int argc, char *argv[] )
   {
   HFILE hFile;
   ULONG ulNumBytes, ulFileLength;
   PBYTE pbImageBottom, pbBMP;
   ULONG rc;
   PBITMAPFILEHEADER2 pbmfHeader;

   /* Check the number of command line arguments.                            */
   if ( argc != 2 )
      {
      printf ( "usage: SHOW filein.bmp\n" );
      printf ( "   Jams ab 8-bit bitmap image directly to the upper\n" );
      printf ( "   left corner of the screen.  Clipping is not exemplified.\n" )
;
      printf ( "   Note this code example works only if:\n" );
      printf ( "      1) SMVDD.SYS is installed propery in four CONFIG.SYS\n" );
      printf ( "         (You can get this from the MMPM/2 install disks), and\n" );
      printf ( "      2) Your adapter has an aperture enabled, and\n" );
      printf ( "      3) Your adapter is in 8, 16, or 24 bit bit color mode, and\n" );
      printf ( "      4) Your bitmap is 8-bit only (i.e. this does no color conv
ersion).\n" );
      return ( 0 );
      }

Looks like it also depends on SMVDD.SYS, which I don't see on my system

8
Programming / Re: Qt6 Development
« on: May 31, 2023, 02:54:50 am »
Perhaps something like,
Code: [Select]
--- a/src/ext/x86/x86inc.asm
+++ b/src/ext/x86/x86inc.asm
@@ -85,7 +85,9 @@
 %endif

 %macro SECTION_RODATA 0-1 16
-    %ifidn __OUTPUT_FORMAT__,win32
+    %ifidn __OUTPUT_FORMAT__,aout
+        SECTION .text
+    %elif __OUTPUT_FORMAT__,win32
         SECTION .rdata align=%1
     %elif WIN64
         SECTION .rdata align=%1

Code still might need patching for alignment.

9
Programming / Re: Qt6 Development
« on: May 31, 2023, 12:44:02 am »
Wonder about building it in aout mode, -f aout? Nice and simple, x86inc.asm should have the macros and should only take minor patching following whatever Mach does. Should work fine if only LDFLAGS has -Zomf for a standalone DLL.
Which source did you use, I might try

10
Web applications / Re: Dooble releases, Qt5 builds
« on: May 31, 2023, 12:32:38 am »
Hi Holger, it seems to be a common problem where the first tab does not load whatever you try to load. Create a new tab and use that and it is fine. No idea what the problem is except it seems to happen to most of us.
Work around, start Dooble with your homepage as a parameter,
Code: [Select]
dooble https://lite.qwant.com/
works fine here, simplest is to add it to the program object.

11
Web applications / Re: Dooble releases, Qt5 builds
« on: May 30, 2023, 06:23:44 am »
Latest release, https://c.gmx.com/@744346040190108571/wy3LGGhrS9WZrTAAn1moWw
Updated blocklist, https://c.gmx.com/@744346040190108571/HWj9ce80RQWUWS9piXDiDw
For some weird reason, the zip didn't get built, did yesterday then there was a power failure and I lost it.
Still a warning when creating the desktop objects, I'll add some dummy's for the next release.
Edit the blocklist is also useful for qt6 builds of Dooble.

12
Programming / Re: Compiling a PM sample with GCC (2023)
« on: May 29, 2023, 03:05:47 am »
Changing Id to a LONG at line 1562 is one solution.
As for the RC, ideally there should be some error checking there.
Edit: while the documentation shows using rc, the example doesn't and considering the possible errors, guess it isn't really needed to do error checking

13
Programming / Re: Compiling a PM sample with GCC (2023)
« on: May 28, 2023, 08:35:29 pm »
Some of these warnings seem bogus. I played with the braces in the first warning, the warning only changed. The RC warning is obviously wrong as it is used a few lines down and removing it results in an error about it missing.
The case ones I don't understand, thought case was a keyword. They're the only warnings that show if -Wall is removed from CFLAGS.

14
Programming / Re: Qt6 Application Testing
« on: May 27, 2023, 07:41:26 am »
Perhaps you should also make the txt files from git dooble/Data available, especially the blocklist, dooble_accepted_or_blocked_domains.txt which really helps stability. Then Martin can add them to post #1

15
Programming / Re: Compiling a PM sample with GCC (2023)
« on: May 27, 2023, 02:21:18 am »
Looking at os2emx.h, the typedef is guarded by #if defined (INCL_WINDIALOGS) so the fix is,
Code: [Select]
--- CNREZ.C.orig        2023-05-26 17:16:48.000000000 -0700
+++ CNREZ.C     2023-05-26 17:16:14.000000000 -0700
@@ -51,6 +51,7 @@
 #define  INCL_WINSTDCNR
 #define  INCL_WINSTDDLGS
 #define  INCL_WINWINDOWMGR
+#define  INCL_WINDIALOGS

 /**********************************************************************/
 /*----------------------------- INCLUDES -----------------------------*/

Pages: [1] 2 3 ... 290