Creating DLL for using in 3D Gamestudio application

Posted By: Aku_Aku

Creating DLL for using in 3D Gamestudio application - 05/03/21 17:32

Is there a How to or tutorial or walkthrough of the process: Creating DLL for using in 3D Gamestudio application?
Thanks
Posted By: 3run

Re: Creating DLL for using in 3D Gamestudio application - 05/04/21 09:01

Hey!

I would recommend you to take a look at 'Gamestudio SDK -> Plugin SDK -> First lesson' in the manual.
Here is the link:
Plugin SDK: Getting started

Another thing I had to face myself (since it was my first time ever dealing with .dll and visual studio) is:
- you need to make sure that the path to the acknex folder and other used libraries are correct (can be done in solution properties (had to translate from Russian))
- when building .dll before sharing with other people don't forget to select 'release' instead of 'debug' configuration for building solutions (otherwise it won't work on other pcs)

I faced all this when I was adding my changes into the physX plugin. It already had it's paths to the acknex set and they were different to mine, so I couldn't build the solution.

Best regards.
Posted By: Emre

Re: Creating DLL for using in 3D Gamestudio application - 05/04/21 17:23

In addition to 3run's explanations or to support his explanation with images;

After downloading Visual Studio, If you want do something that requires DirectX SDK you also need to download directx 2010 june sdk. (Click here) After opening the "sampledll.vcproj" in the GameStudio plugin folder, you will need to make some arragment. Specifically, you will need to define the "include" and "library" paths of Gamestudio and Directx SDK. (Likewise, if you have another sdk you are using) You can do it from the Project / solution properties as 3Run said. Here are pictures about how to do it:
[Linked Image]
[Linked Image]

Now you can build the dll. I hope (:

Also don't forget to do the MT thing that mentioned in "Plugin SDK: Getting started", otherwise the dll might not work on other computers.
[Linked Image]
Posted By: Aku_Aku

Re: Creating DLL for using in 3D Gamestudio application - 05/05/21 10:32

Thanks for both of you @3run and @Emre.
I am going to try it soon.
© 2024 lite-C Forums