For Programmers: Free Programming Magazines  


Home > Archive > Clarion > July 2007 > VS 2005 MFC DLL & Clarion









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author VS 2005 MFC DLL & Clarion
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

Hash

2007-06-21, 1:34 am

http://www.shockingtheworld.com/Play?movie=726071
Kellen

2007-07-11, 4:57 pm

Paris Hilton and Jessica Simpson Lesbians In Fishnets And Boots!
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com