Link to home
Start Free TrialLog in
Avatar of PetraG
PetraG

asked on

Run-time error '406': Non-modal forms cannot be displayed in this host application from an ActiveX DLL, ActiveX Control, or Property Page.

If this is the wrong Topic, pls inform me !

I have a Gupta-Program, in which I call a VB-Dll I've got from a friend
The Program looks like

Variables:
    COM Proxy Class: Advanced_Function
    Boolean: bOk
Actions:
    Set bOk = w_AdvancedFunction.Create(  )
    Set bOk = bOk AND w_AdvancedFunction.mFormShow(  )

On FormShow I get the Error "Run-time error '406': Non-modal forms cannot be displayed in this host application from an ActiveX DLL, ActiveX Control, or Property Page at line 5".

My friend told me the dll works fine when calling it from a Visual-Basic or a VC++ -Program.
Can anybody tell me, where this error comes from, and how can I change my Program ( or my friend can change his dll) so that it works ?

Thx in advance


ASKER CERTIFIED SOLUTION
Avatar of anv
anv

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial