Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Directx and Borland C++ Builder

Posted on 1997-08-29
1
Medium Priority
?
624 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 200 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
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 clear a vector as well as how to detect empty vectors in C++.
Suggested Courses

610 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