Solved

Directx and Borland C++ Builder

Posted on 1997-08-29
1
618 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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 pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

729 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