Solved

Directx and Borland C++ Builder

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
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.

830 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