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 - Lars

Pages: [1] 2 3 ... 75
Programming / Re: Compiling a PM sample with GCC (2023)
« on: June 02, 2023, 12:32:53 pm »
I also don't have "SMVDD.SYS"

I found a reference on this book:
(The Guide to OS/2 Warp Device Drivers. December 1995)

"This driver provides DOS and WIN-OS/2 digital video support. If you do not use DOS or WIN-OS/2 that require digital video support you can remove this driver from CONFIG.SYS."

Checking the readme it says:

SHOW.ZIP is an exectuable and source code which shows you how to
use DIVE (Direct Interface to Video Extensions) to directly
access the video display. It is useful for games and other apps
which need SPEED!  You actually write directly to video memory.

It contains the following items:

L        CMD  sample linker file
DIRECT   H    fucntion prototypes
SHOW     EXE  program to display a bitmap
SHOW     C    source code for DIVE interface
SMVDD    SYS  Device driver to map addresses
CHICK    BMP  Bitmap
DIRECT   C    More DIVE code
C        CMD  Compiler batch file.

SMVDD.SYS - Device driver to map addresses ? uhm?? It does not mach the description.


One of the features of SMVDD.SYS is (or rather: was) to provide a function to map a physical address (in this case: the screen aperture) to a linear address valid in the caller's address space so that you can access the screen and write to it like you would write to memory. This functionality is also provided by SCREEN01.SYS and since SCREEN01.SYS is contained in any OS/2 system up to present day, SCREEN01.SYS is the correct pick.
It would take a bit of effort to adapt the code.

Programming / Re: Compiling a PM sample with GCC (2023)
« on: May 31, 2023, 07:40:38 pm »
Try to force a localization of en_US (I suppose your LANG env var is set to something that wipfc does not understand):

wipfc -l en_US ....

Programming / Re: Compiling a PM sample with GCC (2023)
« on: May 29, 2023, 09:11:27 am »
The warning about RC is perfectly ok. It is being assigned a value, removing it will obviously lead to an error. But the assignment does not result in any consequences, hence the warning.
However, I often also do that in order to ease source code debugging and if an error would be very unlikely. It's easier to look at a variable then to look at registers (a function always places its result in EAX).

Programming / Re: Qt6 Application Testing
« on: May 26, 2023, 10:46:38 am »
Can you enable the libc log and see what happens under the hoods ? It's either that Chromium tries to close file handles that have never been opened (judging from some Linux groups, quite a few apps are doing that or the libraries that they use and then, EBADF should indeed be ignored for good as you cannot make the distinction between good or bad) or the log will give a clue if the fd is completely out of bounds (indicating a programming error somewhere).

Programming / Re: Qt6 Application Testing
« on: May 26, 2023, 07:22:49 am »
Why did you comment out the check? I think you should add OS2 to the IFDEF clause preceding the check (I would assume that our close resembles the UNIX/LINUX close).

Programming / Re: Compiling a PM sample with GCC (2023)
« on: May 23, 2023, 08:05:49 pm »

I'm trying this sample:

Hi Martin,

this is a perfect example where it sometimes makes sense to rewrite the whole thing. This thing was full of bugs (which had nothing to do with being a 16-bit application ...).
Find attached, it should now work.


I read it all and I am gladly proven wrong.

But best I can tell you are stating that your basic files modify the mmos2 files
Dll files in memory ? Is that correct ,?

You see best I can tell an os/2 dos vdm  can in no way
Modify os2 kernel memory.  Its protect mode operating system.
The memory is locked between os/2 vdm and the os/2 program.section.

I am really curious how Lars explained thuis to you..

Hi Roderick,

I cannot remember having explained anything to Roberto.
At least I hope, I didn't...


Programming / Re: Rexx cumulative values
« on: May 15, 2023, 12:50:14 pm »
Assuming strict ordering of field TEKSTFELT:

Code: [Select]
ok = VRMethod( "QRY_2", "MoveFirst" )
identifier = ''
sum = 0
do while( ok = 1 )
    call VRMethod "QRY_2", "RowData", "data."
    if data.1 <> identifier then do
       identifier = data.1
       sum = data.2
   else do
       sum = sum + data.2
   data.3 = sum
   say data.1 ',' data.2 ',' data.3
   ok = VRMethod( "QRY_2", "MoveNext" )

Hardware / Re: [Solved] Iomega ZIP 100 IDE
« on: May 15, 2023, 08:30:31 am »
Has anyone of you ever tried to access the drive with DFSEE?
DFSEE will be able to access the drive even if the OS does not assign a drive letter.
I am led to believe that you need to add LVM info to the volume(s) as LVM did not exist 20 some years ago.
Once that is done, the drive (or rather, the volumes) should show up with drive letter(s).
A brutal way to start from scratch is to have DFSEE wipe the first 63 sectors (or more) with zeros but of course that will lead to complete loss of data on that ZIP disk.

Hardware / Re: ArcaOS on a HP EliteBook 840 G3?
« on: May 14, 2023, 11:59:21 am »
Power on the computer, immediately and repeatedly press and release the ESC key until System menu shows up, if System menu shows up, press F10.

Hardware / Re: [Solved] Iomega ZIP 100 IDE
« on: May 14, 2023, 09:25:39 am »
If the ZIP disk shows up in minilvm (and that seems to be the case) and if a disk is actually inserted, you should be able to create a volume on it. Once that is done, you can leave minilvm and do LVM /rediscoverprm and it should give you a drive letter (maybe only on next boot, can't remember). You should then be able to format the volume.
At least that is how it worked with my parallel port attached ZIP served by PPAOS2.ADD.

Applications / Re: LVM.EXE cannot execute
« on: May 14, 2023, 09:17:19 am »
Ok, then it's the error in USBMSD.ADD. Will be fixed in the next release.

Hardware / Re: [Solved] Iomega ZIP 100 IDE
« on: May 14, 2023, 01:27:44 am »
If it is connected to IDE, it is served by DANIS506.ADD and it should show under LVM. But the 96 MB entries are typically dummy entries, stemming from USBMSD.ADD.
If a ZIP disk is inserted already on boot, it should even be locked in the drive. I forgot what to expect if it is inserted after boot.

Games / Re: DOS VDM - USB and Game port Gamepad support
« on: May 13, 2023, 05:51:15 pm »
I had thought of contacting him to get him back on board with USB but I haven't done so.

It might be possible that he is doing fine but personal reasons holding him back from again getting engaged with OS/2. If he didn't answer you, it might be better to leave him alone.

Applications / Re: LVM.EXE cannot execute
« on: May 13, 2023, 05:37:32 pm »
Hi Neil,

by now I have identified the problem: for me, the problem was in USBMSD.ADD.
Very early in the system start process, OS2DASD.DMD and OS2CDROM.DMD call into USBMSD.ADD in order to find out what units it knows about. At that point in time, USBMSD.ADD knows of no unit because it has not even reset the HC controllers and started the device enumeration (at least with my driver set).
That's also the reason why you need the /REMOVABLES switch: it reserves units so that if USB MSD devices eventually show up, these can be assigned to one of these reserved unit slots.

And here comes the difference:
LVM.EXE expects that an error was reported to OS2DASD.DMD and OS2CDROM.DMD that no unit is yet ready. But Minilvm.EXE and LVMGUI can happily live with a NO_ERROR return.

So: how is your ZIP disk connected to your system ? Via IDE, USB or even via the parallel interface that required the proprietary PPAOS2.ADD driver ?

If it is via IDE (and therefore managed by DANIS506.ADD) I would think that you need to experiment with the various DANIS506.ADD switches so that DANIS506.ADD will return an error on that initial request for units.
If it is via USB, then I can say that the latest available code from IBM (that all existing USB drivers of today are based upon) was not doing the right thing.

Pages: [1] 2 3 ... 75