OS/2, eCS & ArcaOS - Technical > Programming

A clock in WPS - Educational Project

<< < (2/4) > >>

Martin Iturbide:
Hi

I created  simple GUI with URE for the three notebook pages (is it called that way?) that I want to have on XWPClock. The GUI is still ugly and incomplete, but my goal is just to try to compile a WPS object and register it, without having the full program logic inside it yet.

I need some help please. Can someone help with the procedure to compile a XWPCLOCK.DLL file, so I can be able to register a WPS class that shows the GUI. (the notebook pages). I really have no idea of the compile process or how to create the make file.

Just suggest me the procedure (with details please) and I would get the needed tools. Right now I have the "IBM C and C++ Compilers Version 3.6.5".

Regards

Dave Yeo:
Why not look at the various samples? There's some in the toolkit under samples\wps, same ones in IBMCPP but really should use the newer toolkit ones along with using the toolkit for everything else.
Perhaps OpenWatcom would be a better choice, still might want to use the toolkit along with it, especailly if needing the SOM compiler. At least it is freely available and seems to have better samples under samples\os2, especially the wps sample.
BTW, the full name would the Properties notebook pages

Lars:
My HWMAN class comes with full source code and a makefile for VAC 3.x. That is close enough to VAC 3.6.x and should serve as a template.
By the way: if you have VAC 3.6.x installed plus the OS/2 Toolkit then you have all the tools and files that you need.

Martin Iturbide:
Hi

I'm trying to understand what are the steps that I need to do from this point.
Right now I have the IDL file and the RES files and I want to have a XWPCLOCK.DLL. I only looking for the basic thing to have a WPS object that can be register and only with three tabs with some controls that still does nothing.

 I guess that the order will be to:
- sc compiler
- icc compiler
- rc compiler
- use the linker to produce "XWPCLOCK.DLL"

Now I need to know the parameters. I will be checking HWMAN make file and ask about it.

I had been reading on how to use the sc.exe compiler.
If I run:
  sc.exe -s"h;ih;c" xwpclock.idl
It will create me the .c .h and .ih file from the .idl.  Do I have to run this only once? since I guess I eventually will need to add more logic to the .c file, right?
Does it also applies for C++ ? or I need different parameters on sc.exe ?

Regard

Martin Iturbide:
Hi Dave


--- Quote from: Dave Yeo on May 17, 2020, 01:34:43 am ---BTW, the full name would the Properties notebook pages

--- End quote ---

I didn't get this one? What does it means.

I still do not know where to match that "DLG_XWPCLOCKALARM" (from the RES file) is the "xwpAddClockAlarmPage" method. I'm getting it right or I'm just making non-sense?

Regards

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version