| softarts@mail.ru 2007-06-20, 9:55 pm |
| I building some components in the MS VCPP. Sorry, but Clarion for some
tasks- sucks.
In the c++ i using MFC with templates (CMap), create dinamically
objects & other.
But i have one problem: this all works, but if i calling dll function
in Clarion program in new thread, when i leave this thread clarion
calling GPF. If i to close MDI frame, application will not shutdown
(all windows are closed, but process are available). Can anyone help
me ?
For example:
............
Myfunc PROCEDURE(STRING)
..............
MODULE('Mydll.dll')
COMMUNICATE PROCEDURE(*myType),ULONG,RAW,PASCAL
END
......
Start(MyFunc,32000,MyGroup)
......
Myfunc PROCEDURE(lParam)
gParam Group(myType)
..
CODE
gParam=lParam
......
Res#=Communicate(gParam)
......
Return
So, i can to write some strings at the last of MyFunc
Loop
Sleep(10000) ! WinAPI func
..
And close my application with
Halt(0)
But this is not good idea.
P.S. Sorry my English
|