| Pete Dashwood 2004-11-26, 3:55 pm |
| Yes, I have some.
Before you start here are some suggestions:
1. Download a current API reference. (I use API Guide downloadable from:
http://www.allapi.net
2. Find out what part of windows your API call "lives in". (The document in
1 above will tell you this.)
3. Make sure you include the library containing these entry points into your
PowerCOBOL project. Note that Fujitsu do NOT provide a comprehensive set of
libraries. Some must be obtained by getting the Windows SDK.However,
libraries for most of the APIs you will use are provided by Fujitsu.
On checking, I find that the API you have requested is part of windows
GDI32.dll. This means you will need GDI32.lib included in your PowerCOBOL
project.(This is not provided by Fujitsu per se. You will probably need the
Windows SDK - downloadable for free from MS but it is over 100MB).
Here is the prototype in "VB speak":(You will need to "translate" this into
COBOL before using it...)
Declare Function LineTo Lib "gdi32" Alias "LineTo" (ByVal hdc As Long, ByVal
x As Long, ByVal y As Long) As Long
"hdc" is a device context, "x" is the x co-ordinate for the line end, "y" is
the y co-ordinate for the line end.
Check the PowerCOBOL sample code (I think there is an example API call in
it).
When you have some code of your own, post it here if you can't get it to
work. Or send me the PowerCOBOL project privately.
HTH,
Pete.
(top post no more below.)
"James Sugrue" <jamessugrue@xtra.co.nz> wrote in message
news:Kivod.9052$9A.208371@news.xtra.co.nz...
> Does anyone have any examples on how to use the Windows API calls with
> Fujitsu PowerCobol (6) ?
>
> I want to use some GDI line drawing calls. LineTo etc.
>
|