📄 plugin.hlp
字号:
{smcl}
{* 09feb2005}{...}
{cmd:help plugin}
{hline}
{title:Title}
{p2colset 5 19 21 2}{...}
{p2col :{hi:[P] plugin} {hline 2}}Load a plugin{p_end}
{p2colreset}{...}
{title:Syntax}
{p 8 16 2}
{cmdab:pr:ogram} {it:handle} , {cmd:plugin} [{cmd:using(}{it:filespec}{cmd:)}]
{title:Description}
{pstd}
In addition to using ado-files and Mata, you can add new commands to Stata
using the C language by following a set of programming conventions and
dynamically linking your compiled library into Stata. The {cmd:program}
command with the {cmd:plugin} option finds plugins and loads (dynamically
links) them into Stata.
{title:Options}
{phang}
{opt plugin} specifies that plugins be found and loaded into Stata.
{phang}
{opt using(filespec)} specifies a file, {it:filespec}, containing the plugin.
If you do not specify {cmd:using()}, {cmd:program} assumes that the file is
named {it:handle}{cmd:.plugin} and can be found along the {help adopath}.
{title:Remarks}
{pstd}
Plugins are most useful for methods that require the greatest possible speed
and also involve heavy looping, recursion, or other computationally demanding
approaches. They may also be useful if you have a solution that is already
programmed in C.
{pstd}
For complete documentation on plugin programming and loading compiled programs
into Stata, see
{pin}
{browse "http://www.stata.com/plugins/"}
{title:Also see}
{psee}
Manual: {bf:[P] plugin}
{psee}
Online:
{helpb mata},
{helpb program}
{p_end}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -