@RWC
@J-G: Someone? was it GetMem? posted a function to return OS + WidgetSet about a month ago - end July?
The forum's search function works very well:
http://forum.lazarus.freepascal.org/index.php/topic,33542.0.html
I'm sure it does if you ask it the correct question
- I'm still struggling with deciding what I actually want to know - but thanks for the pointer GetMem, much appreciated.
Since Handoko was the first to reply I looked at that thread and devised a quick procedure to simply return the version (which is essentially all I want to know for now):
Procedure get_Win_Ver;
begin
O_S := ((Lo(DosVersion)*10)+(Hi(DosVersion))) * 0.1;
end;
... and took on board Thaddy's comments.
By the time I'd done that there were 3 more replies and skalogryz's one line solution does all I want.
Not only that, I was able to understand what it did and how to call it!!
What I have to do now is work out how to use the information. My ideal would be to call this in the .lpr immediately before ' Application.Run;' and then make a decision whether to continue or abort with a message.
I have been able to put the function in the .lpr and it does report the information but as yet I can see no way to pass a message to the screen. Is it as simple as setting up a component - such as a TLable - in the .lpr and making the TLabel.caption a message?
This leads me to ask another simple question :- Am I missing something really silly or is the only way to write to the screen via a TLable.caption (or other component .text or whatever). Sorry if these questions seem very basic but dragging my rusty brain from a DOS environment is no easy task!!