151
Programming / Re: Compiling a PM sample with GCC (2023)
« on: June 17, 2023, 03:37:02 pm »
Try the attached. I used VAC so you will need to replace with your own makefile.
OS2World.com Forum is back !!!
Remember to visit OS2World at:
http://www.os2world.com
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.
Hi.
I also don't have "SMVDD.SYS"
I found a reference on this book: https://komh.github.io/os2books/pdf/sg244627.pdf
(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:QuoteSHOW.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.
Regards
Hi
I'm trying this sample:
https://github.com/OS2World/DEV-SAMPLES-C-PM-Chain
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..
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
end
else do
sum = sum + data.2
end
data.3 = sum
say data.1 ',' data.2 ',' data.3
ok = VRMethod( "QRY_2", "MoveNext" )
end