Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

UnshavenBastard

Graphics engine C++, Game in Delphi ?

This topic is 6130 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi there! I wonder if my friends, who are pure OO-Pascal programmers, and use Delphi only, could use my Graphics Engine, which is written in C++ (uses OpenGL), to make their game in Delphi. I think it''s Delphi 5. I currently use watcom c++ 11, it has a pretty good compiler, but M$'' and Borland''s IDEs are quite tempting, maybe I''ll save some money and purchase one of them. (Before this happens: this is absolutely the wrong thread for trying to convince me that the one product is better than the other. __I__ will decide. (and I am the wrong person to try this with anyway) I give this information because it could be useful for someone to give me a useful answer, about what I _could_ do if I used this one, or the other one...) thanks in advance. the unshaven bastard

Share this post


Link to post
Share on other sites
Advertisement
Surely Delphi can import compiled bytecode (dlls).... assuming that C++ name mangling doesn''t become an issue and you have a Delphi compatible import library.... I''m probably completely wrong, but since DLLs are already binary data, surely it can be used....

Share this post


Link to post
Share on other sites
Indeed

Back in the days I programmed VB (seems centuries ago ) I made C++ DLLs all the time... although I didn''t use APIs like OpenGL or DirectX in ''em. (Did not know how to back then)

Share this post


Link to post
Share on other sites
Well, you could just package your engine into a library like a DLL on Windows. That should work because the library would just be a binany file.

Share this post


Link to post
Share on other sites
Either with dlls, but we are also having sucess connecting delphi and C++ builder code directly with obj files.

regards
Jindrich Kolman

Share this post


Link to post
Share on other sites
The easiest way is to make a DLL with standard C functions as the interface. Classes are not compatible between C++ and Delphi.

Cirion, Delphi does not use import libraries like C. You just need the unit that declares the functions.

Steve ''Sly'' Williams  Monkey Wrangler  Krome Studios
turbo game development with Borland compilers

Share this post


Link to post
Share on other sites
COM is the M$ technology to share binary object code between system like this. It actually works fairly well for C++->Delphi.
(So long as they have the service packa for Delphi install).

If you''re stuff isn''t OO, just use a normal dll. (The COM way is still a dll, but with some standard exports in it).

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!