Sujet : Re: Screen management in C
De : arne (at) *nospam* vajhoej.dk (Arne Vajhøj)
Groupes : comp.os.vmsDate : 28. Dec 2024, 17:52:46
Autres entêtes
Organisation : SunSITE.dk - Supporting Open source
Message-ID : <67702cde$0$714$14726298@news.sunsite.dk>
References : 1 2 3 4
User-Agent : Mozilla Thunderbird
On 12/27/2024 2:34 PM, Arne Vajhøj wrote:
On 12/27/2024 11:12 AM, Craig A. Berry wrote:
On 12/27/24 9:17 AM, Arne Vajhøj wrote:
Because SMG$ are supporting Pascal/Basic/Cobol/Fortran then
many arguments are pass by descriptor and you will need to setup
those in C, so some familiarity with descriptors will be required.
>
This has been discussed previously here:
>
https://groups.google.com/g/comp.os.vms/c/ufBEqvGdglU
>
That discussion has pointers to various examples,
In general VMS Pascal/VMS Basic code should be maybe 25% shorter
than equivalent C code. But with a descriptor centric API like
SMG$ then it may be more like 40% shorter.
One could make a nice wrapper in C++ encapsulating the context
and convert between stl::string / C char array and descriptors.
If anyone want to try, then I suggest:
$ CXX/POINTER=32 ...
or you will regret it.
Arne