Recent Posts

Pages: [1] 2 3 ... 10
1
I did check and do have access to C: from both OS/2 partitions which is really neat.  Thanks
2
It's been a while so memory might be bad but I think perhaps with the LVM system, the hidden status of C: doesn't matter, unlike with the older fdisk based systems. So if you can see C: from OS/2, and boot C: if you choose, might as well leave it.
3
No, F: doesn't need an install, just formatting.
Edit: ideally E: should have been an extended partition so you wouldn't have to hide C:

Can the extended partition be re-set after the fact?  I haven't really done much with that partition yet except do the basic installation so I could deleted it and change it.  I wondered if the "hidden" label applied to the Boot Manager partition because I thought I was able to see the C: partition from both OS/2 partitions but I am not at the computer now and will have to check it tomorrow.  I know I was able to see it and start some DOS and Windows programs from OS/2.
4
Programming / Re: AIChat2 - Using AI from OS/2
« Last post by Martin Iturbide on Today at 04:25:39 am »
Hello Jan

I'm not sure if by downloading the files one by one, I'm breaking something.
May I be missing some library?

Can you put all the files into a .zip and upload it here?

Regards
5
Programming / Re: AIChat2 - Using AI from OS/2
« Last post by Martin Iturbide on June 08, 2026, 07:39:44 pm »
Sorry Jan, I screw up the slip topic.

I missed this message....

Improve as you like!

...
  • Haven't checked code to handle attachments.
  • The script/web browser may not show code returned (see the file "log") with the JSON reply from the AI chat server and thus need your TLC.
I've now tested to attach a file... and to my surprize it seem to work, but...
the html-code in the reply doesn't show up, it is only present in the log file called "log".

Do feel free to tweak the code so all kind of code can be displayesd as well.
6
Programming / Re: Programming an OS/2 App with AI
« Last post by Martin Iturbide on June 08, 2026, 07:13:11 pm »
Hello

Thanks for your support on this little experiment.

Tree attached, not sure how to test.

I'm not sure how to test it since I don't know exactly which action will make a call to IMP.DLL. I know that PMWP.DLL and WPCONFIG.DLL have calls to IMP.DLL.

1) If IMP.DLL is not available on OS/2 Warp 4.52 or ArcaOS the system will not boot, saying that the system can not find the IMP file. (picture attached)
I tried the new compiled IMP.DLL, replaced the old one (unlocking it) and the system still boots and locks the file. So, it is a little victory.

2) if someone has an idea how to check which things call the functions on IMP.DLL (IMPSetAIMProfile, etc) I will appreciate it.

3) I will keep using this replacement to see if I find some strange.

Jan-Erik Lärka, your experiment is also very good. I will slip the topic, to review it.

Regards
7
Programming / Re: Programming an OS/2 App with AI
« Last post by Dave Yeo on June 08, 2026, 06:18:12 pm »
Looks like you need to turn off stack checking for a DLL which indeed makes sense (DLLs use the stack of the calling app). I forgot which compiler switch does that.

OK, also reminds me about the calling convention. Don't want the default register calling convention
I ended up stealing the options from the screensaver modules,
Code: [Select]
wcc386 -bm -bt=OS2 -6s -fpi87 -fp6 -sg -otexanr -wx -fo=IMP.OBJ IMP.C
Forget what some of them mean. Target i686, use the software floating point library to avoid the floating point register bug.
Changes to IMP.LNK
Code: [Select]
H:\tmp\imp>diff -u IMP.LNK.orig IMP.LNK
--- IMP.LNK.orig        2026-06-07 17:16:16.000000000 -0700
+++ IMP.LNK     2026-06-08 09:04:54.000000000 -0700
@@ -24,16 +24,29 @@
 OPTION description 'Input Method Profiler'

 # DLL initialisation entry point (LibMain in IMP.C)
-OPTION start=LibMain_
+# OPTION start=LibMain_

-# Import libraries  ÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇ
ÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔö
öÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇ
+# Import libraries
 #   OS2386.LIB  :  DosXxx, WinXxx, PrfXxx kernel stubs
 #   (supplied with the OS/2 Developer's Toolkit or Open Watcom itself)
 LIBRARY os2386

 # Stack / data options
 OPTION manyautodata
-OPTION nodefaultlibs
+# OPTION nodefaultlibs
+
+# Options taken from the screensaver
+OPTION ELIMINATE
+# OPTION MANYAUTODATA
+OPTION OSNAME='OS/2 and ArcaOS'
+OPTION SHOWDEAD

 # Output
 OPTION map=IMP.MAP
+
+EXPORT    IMPSETAIMPROFILE.1       = IMPSETAIMPROFILE       RESIDENT
+EXPORT    IMP32SetAIMProfile.2     = IMP32SetAIMProfile     RESIDENT
+EXPORT    IMPRESETAIMPROFILE.3     = IMPRESETAIMPROFILE     RESIDENT
+EXPORT    IMPQUERYAIMPROFILE.4     = IMPQUERYAIMPROFILE     RESIDENT
+EXPORT    IMP32ResetAIMProfile.5   = IMP32ResetAIMProfile   RESIDENT
+EXPORT    IMP32QueryAIMProfile.6   = IMP32QueryAIMProfile   RESIDENT
The garbage characters were underlines, truncated.
Tree attached, not sure how to test.
8
No, F: doesn't need an install, just formatting.
Edit: ideally E: should have been an extended partition so you wouldn't have to hide C:
9
Setup & Installation / Re: Effective/efficient partition set-up for OS/2 Warp 4.52
« Last post by KevinP on June 08, 2026, 04:10:38 pm »
I did finally have some time to spend this weekend on the partitioning.  My skillsets are kind of lacking in this area but I seem to have gotten it done.  I don't know if this is the "right" way to do it but this is what worked for me:  I had to format the partitions in FAT32 before LVM would recognize them to install on them.  I have basic installations on D: and E: and have done the basic updates and am starting to install software on the main E: partition.  The Boot Manager took awhile to get right, I'm not sure why.  I would hit the button in DFSee to install the Boot Manager and it would appear to install but it wouldn't work on boot, there would be just a blinking cursor on the screen.  Finally, I deleted the entire partition.  Then I had to "open whole volume" to reinstall the partition.  Then I also formatted it FAT32.  This time when I installed the Boot Manager partition it worked on boot.

Question:  on the F: partition that was mentioned as one to use for programs, does it also need a full installation?  Thanks
10
Programming / Re: Programming an OS/2 App with AI
« Last post by Lars on June 08, 2026, 09:55:13 am »
Looking further, the line to compile IMP.OBJ needs -bd (build a DLL) and maybe should use wcc386, like
Code: [Select]
wcc386 -bt=os2 -bd -bm -fo=IMP.OBJ IMP.C

The linker part seems to be totally broken as it uses an OS/2 type def file instead of passing everything on the cmd line (or response files) to wlink.
I fixed the exports part of @IMP.LNK,
Code: [Select]
EXPORT    IMPSETAIMPROFILE.1       = IMPSETAIMPROFILE       RESIDENT
EXPORT    IMP32SetAIMProfile.2     = IMP32SetAIMProfile     RESIDENT
EXPORT    IMPRESETAIMPROFILE.3     = IMPRESETAIMPROFILE     RESIDENT
EXPORT    IMPQUERYAIMPROFILE.4     = IMPQUERYAIMPROFILE     RESIDENT
EXPORT    IMP32ResetAIMProfile.5   = IMP32ResetAIMProfile   RESIDENT
EXPORT    IMP32QueryAIMProfile.6   = IMP32QueryAIMProfile   RESIDENT
but it needs more libraries I think, not sure exactly which and have to be careful to use the multithreaded ones I think.
Code: [Select]
[H:\tmp\imp]wlink @IMP.LNK
** EXPERIMENTAL (HLL) ** Open Watcom Linker Version 2.0beta4 Limited Availability by GKYMar  2 2022
Portions Copyright (c) 1985-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See http://www.openwatcom.org/ for details.
loading object files
searching libraries
Error! E2028: LibMain_ is an undefined reference
Error! E2028: __CHK is an undefined reference
Error! E2028: __DLLstart_ is an undefined reference
creating map file
creating an OS/2 32-bit dynamic link library
file IMP.OBJ(H:\tmp\imp\IMP.C): undefined symbol __CHK
I thought the -bd would take care of the __DLLstart_  and LibMain_ but I'm missing something.

Looks like you need to turn off stack checking for a DLL which indeed makes sense (DLLs use the stack of the calling app). I forgot which compiler switch does that.
Pages: [1] 2 3 ... 10