BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Using Delphi OpenGL12 unit in C Builder

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics
View previous topic :: View next topic  
Author Message
Blitz_Commander
Guest





PostPosted: Thu Aug 04, 2005 9:01 am    Post subject: Using Delphi OpenGL12 unit in C Builder Reply with quote



Dear All,

I am a newbie with C Builder and Delphi.

I am trying to compile a C Builder program that uses a Delphi Opengl Unit.

The Delphi Opengl unit is called OpenGL12 and can be found in a standard
OpenGL12.pas and OpenGL12.Hpp file.

Now the problem is when I add the Opengl12.pas and Opengl12.hpp files in
together with my C Builder code, why is it I keep getting the error :-

[Linker Error] Unresolved external 'CreateRenderingContext' referenced
from E:CPPBUILDERTERRAIN X5 VER 3.0MAIN.OBJ
[Linker Error] Unresolved external 'ActivateRenderingContext' referenced
from E:CPPBUILDERTERRAIN X5 VER 3.0MAIN.OBJ

This is strange because both these functions are found in OpenGL12.pas and
OpenGL12.hpp ???

If you would like me to email you my code which is about 2 megs in a zip
file, please email me at

[email]Blitz_Commander (AT) yahoo (DOT) com.sg[/email].

It is a very good looking 3d terrain engine - The delphi version.

Perhaps can someone please try to help me out here ?

Thank you

Blitz




Back to top
gj_williams2000@yahoo.co.
Guest





PostPosted: Fri Aug 05, 2005 8:21 am    Post subject: Re: Using Delphi OpenGL12 unit in C Builder Reply with quote



To use opengl in Builder you need to include the cpp gl files. A .pas
file is useless to C Builder

Try:

#include <glgl.h>
#include <glglu.h>
#include <glglut.h>

HTH Gareth

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.