Knowledgebase - Higher Languages
From GameStudio Wiki
A list of common questions and their answers. Most of these are taken from email or forum posts (names and details edited).
If you are having problems, please start by reading these Important rules on getting help before posting questions on our User Forum or emailing. It will really save you time.
Contents |
[edit]
I am trying to add an action to an entity through C++
ENTITY* Ent = ent_create("",Pos,NULL):
Ent.event = (void*)YourFunc; Ent.flags |= ENABLE_FRAME;
[edit]
Changing c-script vars through C++
var *OurTestVar = (var*)engine_getobj("OurTestVar");
(*OurTestVar) = _VAR(1);
[edit]
I want to convert the contents of an std::string to a char*. How?
Use string.c_str().
[edit]
Setting up Visual Studio 2005 C++
This article shows you how to setup Visual Studio 2005 (including Express versions) Setting Up Visual Studio 2005
