devxlogo

Guidelines for developing COM components that need to talk to VB

Guidelines for developing COM components that need to talk to VB

It is useful to follow these guidelines when you develop COM components that need to talk to VB.
1. Only use VARIANT data types in your interface . Although VB canhandle more complex data types, using just VARIANT lets the components be used by less sophisticated automation clients like vbscrip, jscript.
2. You can have as many [in] parameters as you want but only one out parameter defined as [out,retval]. [out] and [in,out] are somewhat problematic and prone to client leaks unless you

devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist