Solved

Directx and Borland C++ Builder

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
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 concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
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.

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now