Rockwell Automation Publication 1789-UM002K-EN-P - January 2015
145
Develop External Routines
Chapter 7
Export Functions by Using
C++ Export Style
If you export your external routine functions by using the C++ export style, make
sure that the EntryPoint value in your XML resource exactly matches the C++
decorated name that is exported by your C++ compiler.
Visual Studio software includes a tool (dumpbin.exe) that you can use to obtain
the C++ decorated name from your DLL file. The dumpbin.exe tool is installed
as part of Visual Studio product. The examples below show how to use this tool.
InlineExample.h
// Exported Functions:
__declspec(dllimport) int SumArray(EXT_ROUTINE_CONTROL* pERCtrl,
int Val[]);
InlineExample.cpp
__declspec(dllexport) int SumArray(EXT_ROUTINE_CONTROL* pERCtrl,
int Val[])
{
// body of function.
Run dumpbin.exe
Run dumpbin.exe with the /exports flag set to display the decorated names for all
of the exported routines. The following is the output running dumpbin /exports
on a C++ DLL.
For example, entering this command:
Dumpbin.exe /exports InlineExample.dll
displays this output information.
Microsoft (R) COFF Binary File Dumper Version 6.20.8700
Copyright (C) Microsoft Corp 1992-2000. All rights reserved.
Dump of file InlineExample.dll
File Type: DLL
Section contains the following exports for InlineExample.dll
0 characteristics
3BA9F7A0 time date stamp Thu Sep 20 10:05:20 2001
0.00 version
1 ordinal base
1 number of functions
1 number of names
ordinal hint RVA name
1 0 0000100A ?SumArray@@YAHPAUEXT_ROUTINE_CONTROL@@QAH@Z
Содержание SoftLogix 5800
Страница 1: ...SoftLogix 5800 System Catalog Numbers 1789 L10 1789 L30 1789 L60 User Manual...
Страница 4: ...4 Rockwell Automation Publication 1789 UM002K EN P January 2015 Summary of Changes Notes...
Страница 104: ...104 Rockwell Automation Publication 1789 UM002K EN P January 2015 Chapter 5 Configure and Use Simulated I O Notes...
Страница 110: ...110 Rockwell Automation Publication 1789 UM002K EN P January 2015 Chapter 6 Execute External Routines 9 Click OK...
Страница 148: ...148 Rockwell Automation Publication 1789 UM002K EN P January 2015 Chapter 7 Develop External Routines Notes...
Страница 256: ...256 Rockwell Automation Publication 1789 UM002K EN P January 2015 Appendix E System Performance Tuning Guidelines Notes...
Страница 262: ...262 Rockwell Automation Publication 1789 UM002K EN P January 2015 Appendix G SoftLogix 5800 Revision History Notes...
Страница 270: ...270 Rockwell Automation Publication 1789 UM002K EN P January 2015 Index...
Страница 271: ......