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 ... 80
1
Programming / Re: Duplicate symbol error
« on: Today at 03:50:57 am »
So what does "moc_screensaver.cpp" contain ?

2
Programming / Re: WPS dragged object handle
« on: Today at 03:47:52 am »
Hi Doug, yes I also bought that book (I found a used one for a few bucks). And it helped a lot to fill the voids (in particular: object locking -> some methods lock the objects they return, some others do not. Need to make sure that locks and unlocks are always balanced ...).
Then the SOM and WPS programming guides and references are a bit sparse on a couple of things but the rest always is trial and error (and debugging).

The greatest thing about the WPS is that you can extend and modify (and even fix) the WPS as the main interface to the end user.That is unsurpassed to the present day.

3
Programming / Re: WPS dragged object handle
« on: September 30, 2023, 04:24:31 pm »
Thanks Rich for the help and info.

There are portions of the app that run in the WPS process and portions that run outside the WPS process.  I was planning on using RWS for the outside-of-WPS-process parts. (BTW thanks for building and releasing that)  I did not know that it was bundled with all AOS versions - that will help with building the install process.

For anyone else that might follow this topic, the code section looks something like this
----------------------------------------------
if( DrgVerifyRMF( DrgQueryDragitemPtr( pdrgInfo, ulCount),"DRM_OBJECT", NULL))
{
     WPObject * pObject;
     PDRAGITEM   pDragItem;     
     
     pDragItem =  DrgQueryDragitemPtr( pdrgInfo, ulCount);
     pObject = OBJECT_FROM_PREC(pDragItem->ulItemID);     
     if (_debug) PmPrintfPtr("wpDragOver   DRM_OBJECT name: %s",_somGetClassName(pObject));

   ...
----------------------------------------------------------------------
after you know that ulItemID contains pointer to the container record (thanks Rich)  for the object, the magic sauce is the WPS macro OBJECT_FROM_PREC(), which extracts a pointer to WObject  from ulItemID

-- editor to remove late night operator error --

... and if you feel uneasy about using the pointer, you can use somIsObj(pObject) to check if it indeed is a SOM (or derived thereof) object.
And if you follow the example code for "somIsObj" in the SOM Programming Reference, it shows how to query the SOM/WPS classname of the passed object which should give you an exact clue of what you are dealing with.

Another helpful SOM member function is "somIsA" which will allow you to check if an object is of a given class or a derived class thereof:
if (pObject->somIsA(_WPFolder)) will tell you if the passed object is a folder or a derived class thereof. Don't worry about WPFolder class replacements: the SOM runtime will detect if WPFolder class has been replaced by something else. There never is a need to code the check against a replacement class (you won't need to do a if (pObject->somIsA(_XFolder)) if you have XWorkplace installed. SOM will find out by itself).

As to C++ vs. C bindings (I always prefer C++ even if I code in plain C):
C++ bindings: pObject->somIsA(_WPFolder)
C bindings: _somIsA(pObject,_WPFolder)

4
Programming / Re: VisualAge C++ 3.0 editor
« on: September 17, 2023, 07:37:49 am »
So, the LXPM in VAC 3.0 does not like widescreen resolutions, but the LXPM in VAC 4.0 works great there.

For VAC 3.0, is it possible to override which editor WorkFrame launches? Either to the LXPM in VAC 4.0 or to NEPMD? (or some other good coding editor?)

Thanks!

Workframe comes with a default project and any own projects inherit from this project (unless you deliberately change that for a specific project). In that default project you can modify the corresponding "edit action" (Workframe Slang) to use the VAC 4 editor instead of the VAC 3 editor. And once you have done so, you will therefore have changed it for all of your projects.

5
Comments, Suggestions & Questions / Re: Hobbes (Files) Reoganization
« on: September 14, 2023, 07:46:38 am »
Yes. I use that whenever I upload new USB drivers to Hobbes.

6
Applications / Re: Drag and drop printing
« on: September 14, 2023, 05:38:07 am »
I guess, the order in which they were selected. So, if you want to enforce a specific print order, select and add to selection one after the other.

7
Hardware / Re: Touch Screen and Pen support on ArcaOS 5.1.0
« on: September 12, 2023, 08:46:25 am »
You have a USB device, and I suppose it should be:

DEVICE=C:\OS2\BOOT\USBECD.SYS /D:056A:508C:#### /N:$FINGER$ /S /V
DEVICE=C:\OS2\BOOT\USBECD.SYS /D:056A:508C:#### /N:$STYLUS$ /S /V

(You have not provided enough hardware info that would allow to find out the device release but I think that last parameter of /D is optional)

8
Hardware / Re: Touch Screen and Pen support on ArcaOS 5.1.0
« on: September 12, 2023, 07:24:06 am »
Does it really find all COM ports or only the default COM ports? With a legacy BIOS (CSM), the default COM ports could always be found by looking at the BIOS data area at real address 40:0 (physical address 400). I don't know if that data area still exists in a UEFI system.

9
Applications / Re: Installing VisualAge C++ 3.0 on ArcaOS 5.1.0
« on: September 11, 2023, 04:29:57 pm »
I had created this for VAC 3.6.5:
https://hobbes.nmsu.edu/download/pub/os2/dev/proglang/cpp/VAC_3-6-5_InstallFix_2007-03-27.zip

That is effectively a CD-ROM update and it also contains a readme about how to get NETQ going.

10
Applications / Re: OS/4 (technical details only)
« on: September 10, 2023, 09:08:11 pm »
Ok, thanks for the info.

11
Applications / Re: OS/4 (technical details only)
« on: September 10, 2023, 03:27:34 pm »
By the way: in 2018 the OS/4 team released a DOSCALL1.DLL.
Is that still necessary or will the standard OS/2 DOSCALL1.DLL (for the SMP Kernel) do?

12
Applications / Re: Installing VisualAge C++ 3.0 on ArcaOS 5.1.0
« on: September 07, 2023, 07:18:39 am »
3.6.5 does not include Workframe. And there is no other "vaeiant" of 3.6.5. It's just compiler,linker,Debugger.

13
Applications / Re: Installing VisualAge C++ 3.0 on ArcaOS 5.1.0
« on: September 06, 2023, 07:34:08 pm »
Hello

Sorry to add different question.

I always have the idea that comparing between "IBM VisualAge C++ 3.0 (1995)" and "IBM C and C++ Compilers, Version 3.6.5", it is better to get "IBM C and C++ Compilers, Version 3.6.5" because it is the same compiler but newer/updated. Am I right on this?  Is there any specific feature that the "IBM C and C++ Compilers" is missing compared to "IBM VisualAge C++ 3.0"?

Sorry again to use this thread for my question, I never installed "IBM VisualAge C++ 3.0".

Regards

I currently do not have VAC 3.6.5 installed but only VAC 3.0 (with all that bunch of fixes that are floating around here and there and everywhere).
I seem to remember that the VAC 3.6.5 package is lacking a source code debugger (I would have to install it to check). That is about the only reason why you would use VAC 3.0 instead of 3.6.5. The VAC 3.0 debugger on the other hand can debug exes produced with VAC 3.6.5 just fine, so you could install both ...

VAC 3.6.5 is not just newer: VAC 3.6.5 supports 64-bit arithmetic whereas VAC 3.0 only supports 32-bit arithmetic. And the Watcom 32-bit compiler also supports 64-bit arithmetic, so VAC 3.0 is kind of outdated.

14
Applications / Re: Installing VisualAge C++ 3.0 on ArcaOS 5.1.0
« on: September 06, 2023, 01:36:13 pm »
1) it is very advisable to not install the toolkit that comes with VAC but to install the latest toolkit that can be installed from various places: YUM/RPM, from eCS media, from AN media (?)
2) that said, you should remove anything VAC related from libpath that has to do with the toolkit that comes with VAC. You do however need to keep those parts that point to DLLs that VAC needs to operate. And these parts have to go to the end
3) make sure that for INCLUDE env var, all VAC paths go to the end
4) make sure that for the LIB env var, all VAC paths go to the end
5) you should not put anything on SOMIR that relates to any VAC path, see 1) as it relates to it
6) you should make SOMBASE point to the latest toolkit installation, see 1) as it relates to it


15
General Discussion / Re: when will version 5.1 of ArcaOS be released
« on: August 27, 2023, 08:43:06 am »
Hi All

Had an email telling me that 5.1.0 has been released with this link

   https://www.arcanoae.com/arcaos-5-1-0-now-available/


Must be Easter and Christmas, Lars  :-)



Regards

Pete

Great. I'll have to hurry and buy a Christmas tree. I will check if I can find some leftover chocolate bunnies.

Pages: [1] 2 3 ... 80