About Plug-in Development Guide SAMP server-side [construction ...]

This guide is not mine, but a foreign developer, I just translate it and transported here

Original Address: https://forum.sa-mp.com/showthread.php?t=295798


  •  getting Started

When you know how many times I was asked, "How do I Started Plugin plugin development?" You will be shocked. I decided to add this part to the entire guide, Just because you know the language does not mean you know your way around the IDE after all, I think this situation in VC ++ 2010 better reflected, for the first time Visual Studio man, he will be scared of the complexity of Visual Studio, of Visual Studio for newcomers is a very horrible place, I hardly think its fair to just hand you the plugin SDK without showing you around first! Messing with property pages / the linker can easily scare people away, so I'm going to guide you through it.

Note: If you intend to select other Windows IDE or compiler-oriented alternative to Visual Studio for development, I'm sorry, you're out of luck, because it seems the only way is to use the export function module definition file (.DEF) , I've tried to include an alternative method in this article using __declspec (dllexport), but this simply did not work due to the __stdcall calling convention mangling the exported function's names (See: Here).

It is this section you need to prepare in advance a good thing:

C ++ 2010 Express Visual : free download
Plugin SDK (Plain) : Download

We begin first thing to do is to create a new project. Select "File" -> "New" -> "Project" can be.

Once you create a new project, it will ask what type of project you are creating. Select the Win32 project, enter the project name, and then press OK to continue.

When your project is set up, you should see a dialog about the precautions shown in Figure below. Click the "Next" button.

After you click "Next", you will see a dialog box asking for your application type and settings. For Type Select "DLL (dynamic link library)", select the setting for "empty project." After these steps are done, click on the bottom of the "Finish" button.

接下来我们要做的是转到我们的解决方案资源管理器。解决方案资源管理器通常位于IDE的左侧。如果不小心隐藏了它,可以通过按CTRL+ALT+L或选择“视图”->“其他窗口”->“解决方案资源管理器”再次启用它。找到解决方案资源管理器后,右键单击项目名称(在本例中为这个项目叫做“test”)并选择“属性”。

 

Guess you like

Origin www.cnblogs.com/FranciumKIKI/p/12416761.html