Jump to content
xESWxDEATH

leadwerks C++

Recommended Posts

Im just wondering how C++ works now because when i last used leadwerks i had the option to choose either a C++ or Lua project. I do realize that in the project folder there is still an sln but the code is different then it was then now i have all this Interpreter stuff. Do i need that code if im not using Lua?

Share this post


Link to post

I think a blank project is what you need.

 

I think the contents of main.cpp can be left as they are without harm., But I am not an advanced c++ user so could be wrong.

EDIT: I don't use lua directly but sometimes a script comes with assets.

Share this post


Link to post
I think the contents of main.cpp can be left as they are without harm., But I am not an advanced c++ user so could be wrong.

 

Cassius, you are absolutely correct.

 

You do not need the interpreter code that comes within the app.cpp file of a new project. I think it is there in case you would like yo utilize lua within your c++ application. When I upgraded from 3.2 to 3.5 I replaced the app.cpp file with my own and have had no problems.

 

Just for simplicity, here is a copy of my current app.cpp file.

 

** EDIT **

 

To preserve formatting, I posted my source file on dpaste. It can be found here:

 

http://dpaste.com/2DWKQ6W

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...