Skip to main content
GameDev.net gamedev.net
🔒 Locked

Help me with this Smart COM pointer stuff...

Started by Promit May 29, 2002 at 2:36 PM 0 replies 200+ views
Original Post
Promit
Promit
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
SlimDX | Ventspace Blog | Twitter | Diverse teams make better games. I am currently hiring capable C++ engine developers in Baltimore, MD.
Shannon Barber
Shannon Barber
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?)
The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.