c++ - Exporting function from DLL syntax -


Export.def can insert any such rows in the file:

  export the library plug FuncName main = FuncName   

What is the effect of exporting functions like this? Does it export two function names, which are of the same function? Or does it just export the function, giving it another name?

According to:

The keyword EXPORTS is the first definition or The preceding line can be on the same line .def file can contain one or more EXPORTS statements.

The syntax for export definitions is:

  entry [= internal name] [@ORDINAL [NONAME]] [personal] [data]   

The entry name is the function or variable name you want to export. It is necessary if the name you export is different than the name in the DLL, specify the name of the export in the DLL with the internal name. For example, if your DLL exports a function, then func1 () and you want to use it as func2 (), you specify:

  EXPORTS func2 = func1     

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -