Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
gdevelop:tutorials:usingdllwithcppcode [2016/12/20 13:02]
jfyeung [Add .cpp and .h files]
gdevelop:tutorials:usingdllwithcppcode [2016/12/21 09:09]
jfyeung [Calling the function from the events] delete warning that is no longer true
Line 30: Line 30:
 Then, in the .cpp file, enter this code: Then, in the .cpp file, enter this code:
  
-<​code>#​include <GDCpp/RuntimeScene/​RuntimeScene.h>​+<​code>#​include <GDCpp/Runtime/​RuntimeScene.h>​
  
 void MyFunction(RuntimeScene & scene) void MyFunction(RuntimeScene & scene)
Line 46: Line 46:
     MyFunction(scene);</​code>​     MyFunction(scene);</​code>​
  
-<note warning>​ +
-The C++ code event must not be placed as a sub event, due to a bug in GD. It should be fixed in the next version.\\ +
-For now, be sure that the C++ event you've added is not a sub event of another event. +
-</​note>​+
  
 ===== Testing the code ===== ===== Testing the code =====