OS/2, eCS & ArcaOS - Technical > Programming

Where to find Toolkit2.0 - SOM compiler .sc files....

(1/2) > >>

Andi B.:
I've toolkit 2.1 and probably all newer ones. Even Watcom10.6 includes some .sc files. But the project I'm working on seems to need Toolkit v2.0.

I've no clue about SOM and classes and.... but there is one .csc file in my project which constantly bothers me. There should be a way to convert this .sc file to the newer .idl form. ctoi.cmd which is included in os2tk45. But it complains about a file in toolkit21

--- Code: ---{0}[e:\_work\pmprintf\trunk] ctoi WPSTEST.CSC
WPSTEST.CSC:
"wpobject.sc", line 440: error: Override method "somInitClass" not in base class.
"wpobject.sc", line 444: error: Override method "somNew" not in base class.
"wpobject.sc", line 448: error: Override method "somRenew" not in base class.
Number of errors: 3
error in converting WPSTEST.CSC
--- End code ---

So I think I need toolkit20. Where can I find it? Any other ideas? Maybe I try to disable all these SOM things in pmprintf cause I guess nobody will ever use pmprintf with som classes anymore anyhow.

Martin Iturbide:
Hello

I don't know much about it, but I found this: http://www.edm2.com/index.php/SOMClass
somInitClass, was deprecated. But somNew and somRenew are not.

For the little I know it seems that .CSC was replaced by .IDL on later releases for the SOM toolkit.

Now I need to remember where I got this samples:
- https://github.com/OS2World/DEV-SAMPLES-IBM_OS2_2-0_Toolkit

Regards

Lars:

--- Quote from: Andi B. on December 23, 2023, 04:58:35 pm ---I've toolkit 2.1 and probably all newer ones. Even Watcom10.6 includes some .sc files. But the project I'm working on seems to need Toolkit v2.0.

I've no clue about SOM and classes and.... but there is one .csc file in my project which constantly bothers me. There should be a way to convert this .sc file to the newer .idl form. ctoi.cmd which is included in os2tk45. But it complains about a file in toolkit21

--- Code: ---{0}[e:\_work\pmprintf\trunk] ctoi WPSTEST.CSC
WPSTEST.CSC:
"wpobject.sc", line 440: error: Override method "somInitClass" not in base class.
"wpobject.sc", line 444: error: Override method "somNew" not in base class.
"wpobject.sc", line 448: error: Override method "somRenew" not in base class.
Number of errors: 3
error in converting WPSTEST.CSC
--- End code ---

So I think I need toolkit20. Where can I find it? Any other ideas? Maybe I try to disable all these SOM things in pmprintf cause I guess nobody will ever use pmprintf with som classes anymore anyhow.

--- End quote ---

Why would you bother? The SOM compiler of the os2tk45 is able to generate source/header files from the old style CSC files. There is a command line switch for it.

Lars:
If that does not work: tell me where I can find that CSC file and I convert it for you from yesteryear to present time.

Lars:
Find attached an .IDL replacement file that should substitute the wptest.CSC file.

Navigation

[0] Message Index

[#] Next page

Go to full version