Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Promit

Help me with this Smart COM pointer stuff...

This topic is 5923 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Im trying to get this whole smart pointer business to work and import an ActiveX lib written in VB into C++. The componenet is the graphic engine Revolution3D... #import "Revolution3D8087b.dll" exclude("_R3D_Access") no_namespace R3D_Engine Engine; R3D_Pipeline Pipeline; R3D_Camera Camera; R3D_MeshBuilder Meshes; The #import does seem to generate all sorts of definitions in the two files. However, the compiler says that R3D_Engine, and the other interfaces are undefined structs. I KNOW that those interfaces exist, and the casing is right. Furthermore, the brose info brings me to the correct definition for the class in the TLH file. I''m prettyu confused as to what is going on...if I prefix those interface names with ''_'' It seems to find them, but then it cannot find the defs for any of the virtual functions they define. I''m pretty confused; please help! ____________________________________________________________ Direct3D vs. OpenGL

Share this post


Link to post
Share on other sites
Advertisement
try adding raw_interfaces_only after no_namespaces

And just to check, you are compiling a cpp file right? (or have the compiler forced into C++ mode?)

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!