Hi,
My answers for your questions:
1. There are two ways to include external/'C' functions.
a. Those 'C' functions can be included inside a prg file using # pragma entries. For example, I am giving a small code for calling a Harbour function TEXTBOXSETSEL, I am writing a 'C' function. So, whenever I call textboxsetsel() inside Harbour, this 'C' code will run.
Code: Select all
#pragma BEGINDUMP
#include <windows.h>
#include <commctrl.h>
#include "hbapi.h"
#include <wingdi.h>
HB_FUNC ( TEXTBOXSETSEL )
{
HWND hWnd1;
hWnd1 = (HWND) hb_parnl (1);
SendMessage((HWND) hWnd1,EM_SETSEL, (WPARAM)(int) hb_parni(2),(LPARAM) (int) hb_parni(3));
}
#pragma ENDDUMP
b. You can create a library file separately and combine the same in the link process. You can see many examples. Please see c:\hmg\source\subdirectories like graph, ini, etc. Each folder is having .prg files, .c files and .bat file to create a library file. This library can be included in the link process using HMG-IDE.
2. Regarding FlexFile and Comix, I don't know. If you have source code, yes you can compile here too. Otherwise try to convert the library files into MingW library (.a) files.
3. I think you can download HMG 3.0.35, the latest stable version. HMG 4 is in Alpha stage. It can not be used now for production.
Again I wish to thank for your interest in HMG.
