DYNAMIC CAST

Version: 1.1
Date: Ott 2000
Language: MS Visual C++ 6
OS: Windows2000

DynamicCast let you safely employ COM components developed with MS Visual Basic with classes that implement multiple interfaces from ASP pages.
When you try to use a VB COM Component Class from ASP pages without DynamicCast, you discover that you can access only the primary interface and that you are unable to access secondary implemented interfaces. Even if you use VB functions to cast to secondary interfaces, there is another problem: during heavy load a cross-apartment call from the ASP page to the VB Class instance will reset the reference to the primary interface.

Credits:
- DynamicCast is largely based on the DispAdapter component developed by Vlad Volkov and Dave Rogers and published in Public Domain on the (mysteriously disappeared) www.combatcom.com site.

Download (149KB)