Silverfrost Forums

Welcome to our forums

Which files to include to access windows API ?

11 Feb 2007 6:01 #1646

Hi,

what do I need to access windows API from Salford FTN95 ?

I found

win32api.ins - stdcall statements to call the c/c++ API functions win32prm.ins - parameters for the API routines

What I am missing is the type declarations which would be included in windows.h (but as far as I can see not in a FTN95 readable file).

Any ideas ?

Norbert

11 Feb 2007 6:52 #1648

See Win32 Platform->Mixed Language Programming->Data types->Basic data types

and

Win32 Platform->ClearWin+->Using the Windows API

in FTN95.chm

11 Feb 2007 7:48 #1649

Thanks Paul,

but these articles do not provide an answer, at least I fail to recognise it.

Some API functions require data structures, declarations of which are included in header files.

Example:

typedef struct 16 tagWNDCLASS { UINT style; LONG ( WIN *lpfnWndProc)(); win_int cbClsExtra; win_int cbWndExtra; HINSTANCE hInstance; HICON hIcon; HCURSOR hCursor; HBRUSH hbrBackground; LPCSTR lpszMenuName; LPCSTR lpszClassName; } WNDCLASS;

As we need the same derived types to operate API, my question is, if there are includefiles, modules or whatever that may be introduced into my project to declare all these ? Or am I required to define each and every struct that I will need for myself ??

Norbert

Norbert

11 Feb 2007 8:55 #1650

You must define them yourself. Sometimes this can be difficult. The subject is mentioned in the help file (use of LOC and CORE4 etc). Don't forget to use the SEQUENCE attribute.

12 Feb 2007 7:41 #1653

Thanks Paul.

Norbert

Please login to reply.