@avi: "I have a test.exe that LoadLibrary() and GetProcAddress() and call an
'extern "C"' expored function in dlg.dll.
This 'c' function reside in an MFC dll (not static, not extention).
It tries to open a CDialog derived dialog using DoModal().
The problem is that the dialog is "stucked" and do not response to input.
The whole exe is stucked, and I need to terminate the application.
Can someone direct me for the missing step ?
(Attached some code from the DLL)
Thanks,
  Avi.
begin 666 dllCode.cpp
M#0I"14=)3E]-15-304=%7TU!4"A#0W5S=%-E;&5C=$%P<"P@0U=I;D%P<"D-
M"@T*14Y$7TU%4U-!1T5?34%0*"D-"@T*0T-U<W1396QE8W1!<' Z.D-#=7-T
M4V5L96-T07!P*"D-"@T*>PT*#0I]#0H-"D-#=7-T4V5L96-T07!P('1H94%P
M<#L-"@T*0D]/3"!#0W5S=%-E;&5C=$%P<#HZ26YI=$EN<W1A;F-E*"D-"@T*
M>PT*#0I#5VEN07!P.CI);FET26YS=&%N8V4H*3L-"@T*<F5T=7)N(%12544[
M#0H-"GT-"@T*:6YT($-#=7-T4V5L96-T07!P.CI/<&5N1&QG("@I#0H-"GL-
M"@T*04987TU!3D%'15]35$%412A!9GA'9713=&%T:6;V1U;&53=&%T92@I
M*3L-"@T*0T-U<W1396Q$;&<@9&QG.PT*#0IB;V]L(')C.PT*#0IR8R ]("AD
M;&<N1&]-;V1A;"@I/3U)1$]+*3L-"@T*<F5T=7)N(')C.PT*#0I]#0H-"F5X
M=&5R;B B0R(@>PT*#0II;G0@7U]D96-L<W!E8RAD;&QE>'!O<G0I($-U<W13
M96QE8W0@*"D-"@T*>PT*#0I!1EA?34%.04=%7U-4051%*$%F>$=E=%-T871I
M8TUO9'5L95-T871E*"DI.PT*#0II;G0@<F,@/2!#0W5S=%-E;&5C=$%P<#HZ
E3W!E;<email_address>*#0IR971U<FX@<F,[#0H-"GT-"@T*?3L-"@``
`
end"
    @avi: "It looked very promised !!! but it seems that it doesn't help ... maybe it
was fixed in current VC++ version. I'll do some more investigations about
it - but thanks.
Avi.
news:<email_address>
<quote>"
    @avi: "After further digging, I found that that the MFC based 'regular' DLL should
export also a FilterDllMsg() function that will process the UI messages.
This will enable the called DLL to activate a Modal dialog successfuly.
As it solved the problem - it not seems usefull since I can't see how VB
code can pass messages to the DLL.
Avi.
news:<email_address>
<quote>"
{'source': 'USENET', 'other_information': '{"reply_count": 2, "forum_name": "microsoft.public.vc.mfc.20140611.mbox"}', 'file': 'data/output/usenet-microsoft.public.parquet'}