Make a Colsol Mode DLL program.
The method which is delivered a variable 'i'.
It is possible ?
--------------------------------
C++ consol mode test.DLL file --
--------------------------------
- Code: Select all Expand view
extern "C" __declspec(dllexport) int ar_init()
{
int i;
i=0;
while(1) {
i++;
}
}
------------------------------------------------------------------------------
FWH + harbour_vc program --
------------------------------------------------------------------------------
- Code: Select all Expand view
#include "fivewin.ch"
//--------------------------------------------------------------------------------
FUNC main()
publ aSay, oSay, oTimer
aSay := 0
DEFINE WINDOW oWnd TITLE "Test"
@ 10, 20 SAY oSay VAR aSay SIZE 150,22 PIXEL OF oWnd
ACTIVATE WINDOW oWndC MAXIMIZED ON INIT ( MMP_INIT(), timer() )
RETU NIL
//--------------------------------------------------------------------------------
FUNC timer()
DEFINE TIMER oTimer INTERVAL 10 ACTION oSay:Refresh()
ACTIVATE TIMER oTimer
RETU NIL
//--------------------------------------------------------------------------------
#pragma BEGINDUMP
#include "windows.h"
#include "hbapi.h"
#include "hbvm.h"
HB_FUNC( MMP_INIT )
{
ar_init()
}
#pragma ENDDUMP
thank you.