Solved

Directx and Borland C++ Builder

Posted on 1997-08-29
1
616 Views
Last Modified: 2012-05-04
I am trying to compile the "hello world" tutorial of the Direct3d retained version on C++ Builder, but it says that the lpVtbl is not a member of "IDirect..." (this error shows to each one of them used). Everything looks all right, it seems to be declared when the DECLARE_INTERFACE macro (defined in objbase.h) is called.
Just tried now another example (globe.c) and the same thing happened.
0
Comment
Question by:Ventania
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 3

Accepted Solution

by:
msmits earned 100 total points
ID: 1168394
The lpVtbl is only used when you use the C interface to the OLE stuff. When using C++ like in C++Builder, the lpVtbl is not used, virtual functions are instead.
I think your problem may be that the example code is in C and not C++. You must coerce the C++ compiler into going into C mode.

0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question