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
Programming / Re: Compiling a PM sample with GCC (2023)
« on: June 08, 2023, 06:18:51 am »
I built the DLL with OW and then used it to link the GCC compiled driver.exe, worked fine except wmake did not like the backslash in the objs line. No warnings either.
Edit: the git patch. OS2World wouldn't let me upload the patch until I added a .txt. Seems patches should be allowed.

2
Programming / Re: Compiling a PM sample with GCC (2023)
« on: June 08, 2023, 02:18:34 am »
Your sys2070 says that there is something wrong with the 1st export, ordinal 1, in listbox.dll. Looking at LISTBOX.DEF, there are no exports. Looking at IBM.LNK, it references IBM.DEF which has this,
Code: [Select]
EXPORTS        fRegisterListBox @ 1

solutions, add the above to the end of LISTBOX.DEF or copy IBM.DEF to LISTBOX.DEF or change the makefile to reference IBM.DEF. IBM.DEF will need the protmode option removed.
Personally I prefer using IBM.DEF, as it is for one of the IBM compilers.

3
Setup & Installation / Re: AOO4.11.1/Firefox/Seamonkey trouble
« on: June 08, 2023, 02:00:01 am »
Somehow I got ANPM  running again and updated libstdc++ and both Seamonkey and Firefox now seem to work.

However, with OpenOffice I still get "Not all attributes could be read"

Did the libstdc++ update stop the icu sys2070"s?

4
Programming / Re: Compiling a PM sample with GCC (2023)
« on: June 07, 2023, 05:26:44 am »
This works as well,
Code: [Select]
--- FRAMECTL.C.orig     2023-06-06 20:22:56.000000000 -0700
+++ FRAMECTL.C  2023-06-06 20:23:04.000000000 -0700
@@ -360,7 +360,7 @@
         /******************************************************************/
         /* Allow default proc to draw all of the frame.                   */
         /******************************************************************/
-        BOOL rc = (BOOL)DefFrameWndProc( hWnd, msg, mp1, mp2 );
+        DefFrameWndProc( hWnd, msg, mp1, mp2 );

         /******************************************************************/
         /* Get presentation space handle for drawing.                     */

But as Lars said, sometimes these variables should be left in as they may be needed for error checking at some point. The toolkit documentation often shows rc = foo()

5
Programming / Re: Compiling a PM sample with GCC (2023)
« on: June 07, 2023, 05:18:19 am »
Add -Wno-unused-variable to the CFLAGS.
Code: [Select]
--- makefile.orig       2023-06-06 20:15:24.000000000 -0700
+++ makefile    2023-06-06 20:15:58.000000000 -0700
@@ -12,7 +12,7 @@


 framectl.obj : framectl.c framectl.h
-       gcc -Wall -Zomf -c -O2 framectl.c -o framectl.obj
+       gcc -Wall -Zomf -c -O2 -Wno-unused-variable framectl.c -o framectl.obj

 framectl.res : framectl.rc
        wrc -r framectl.rc

6
Programming / Re: Compiling a PM sample with GCC (2023)
« on: June 06, 2023, 02:30:12 am »
Tested here with 16m colours, same results as you except one of the options, Dive Blitter I think it was, froze the system and after 10-15 seconds crashed,
Code: [Select]
06-05-2023  16:08:07  SYS3175  PID 0065  TID 0003  Slot 0080
H:\TMP\SHOW_DIVE_B1\SHOW.EXE
c0000005
1fe22505
P1=00000001  P2=00000000  P3=XXXXXXXX  P4=XXXXXXXX
EAX=02a83880  EBX=00000000  ECX=00000140  EDX=00000500
ESI=00000000  EDI=02a83880
DS=0053  DSACC=d0f3  DSLIM=9fffffff
ES=0053  ESACC=d0f3  ESLIM=9fffffff
FS=150b  FSACC=00f3  FSLIM=00000030
GS=0000  GSACC=****  GSLIM=********
CS:EIP=005b:1fe22505  CSACC=d0df  CSLIM=9fffffff
SS:ESP=0053:03271f20  SSACC=d0f3  SSLIM=9fffffff
EBP=03271ff4  FLG=00010202

LIBCN0.DLL 0001:00082505

Perhaps Lars has an idea.

7
Events / Re: ArcaOS 5.0.8 is out!
« on: June 05, 2023, 09:32:05 pm »
Hi Holger, IIRC, it will give a warning about unsupported kernel but work.

Hi Eugene, sounds like you have to install some stuff with ANPM, though TB should have all its prerequisites. Anything in popuplog.os2

8
Programming / Re: Compiling a PM sample with GCC (2023)
« on: June 05, 2023, 04:26:42 pm »
Yes, changing the DosSleep() to one at line 339 fixes the speed, about 33 frames/sec and can see the airplane on this 4 core I5.

9
Programming / Re: Compiling a PM sample with GCC (2023)
« on: June 05, 2023, 07:36:57 am »
Works fine here. I did have to adjust your compile.cmd (and a previous one) to be more portable. Basically changed all C: to %UNIXROOT%, which is W: here. Your binary also worked here
Do you have C:\mmos2\dll\dive.dll and is it on your libpath? I'm also running 64K colours if that makes a difference. What does Options-->Query Caps show?
BTW, the program really need slowing down on modern hardware, I'm getting over 18000 frames a second. It looks irritating.

10
Events / Re: ArcaOS 5.0.8 is out!
« on: June 05, 2023, 01:31:31 am »
Hi Holger, the versions of Panorama and Doodles Screensaver in 5.0.8 support DPMS to turn off the screen

11
Web applications / Re: Dooble releases, Qt5 builds
« on: June 05, 2023, 01:24:37 am »
Hi Holger, on the new install, did you also have a new Home directory? If so, you've done the equivalent of creating a new profile.
Get a crash/freeze at the wrong time and the profile could get corrupted.
BTW, I added lite.qwant.com to my Dooble program object. When starting, it takes a surprising amount of time to load, but does load. Nice search engine

12
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.

13
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

14
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

15
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.

Pages: [1] 2 3 ... 290