EasyManua.ls Logo

Allen-Bradley SoftLogix 5800

Allen-Bradley SoftLogix 5800
272 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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

Table of Contents

Related product manuals