[COM] CreateObject equivalent in C++ 6.0

Hi all.
I'm a beginner in C++.
Is there any well documented way to call COM objects in VC++ 6.0 (not .net)
for example instantiate "scripting.filesystemobject"

I tried googling but most of the cases do not have proper declarations and have no information on which header files to include.

pls guide me for any resource with all declarations and include headers that are required.

a code snippet would come handy as well.

I'm well aware of the equivalent code in vb ie :

1
2
3
4
Public Shared Function CreateObject( _
   ByVal ProgId As String, _
   Optional ByVal ServerName As String = "" _
) As Object


but struggling for same in VC++ 6.0

Many thanks
Last edited on
Nobody? :(
Wrong place... and wrong year.

Right place is: http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=vcgeneral

Right year is yesteryear!
Topic archived. No new replies allowed.