Is it possible to call a Harbour function from c++ source code?
I have syntax for c-style coding. I'm trying to code an event function to monitor a secure SSL socket.
i wish for my harbour program to use the callback function below, and it will happen with the precursor call here:
nResult = HttpRegisterEvent(hClient, 0xFFFF, MyEventHandler, 0);
Here is the actual event handler where I need to execute Harbour code, namely a function called SSL_EVENTS which is compiled with Harbour 3.2 and FWH 1302 and BCC.
VOID CALLBACK MyEventHandler(HCLIENT hClient, UINT nEventId, DWORD dwError, DWORD_PTR dwParam)
{
switch (nEventId)
{
case HTTP_EVENT_CONNECT:
// Connection has been established
CAN I CALL A HARBOUR EVENT HANDLER FROM HERE?
IF SO, HOW DO i CONSTRUCT THE .C SOURCE CODE TO COMPILE PROPERLY?
ALSO, HOW TO CODE THE CALL TO THE BELOW FUNCTION FROM WITHIN HARBOUR?
break;
// Additional case statements ...
}
}
Any ideas?