Highlighted
ChrisBond1 Absent Member.
Absent Member.
1520 views

using a custom dll

Jump to solution

So I have a few issues with my test scripts that I feel would be more easily handled in something like C++. After looking through the documentation regarding using custom dll's in Performer scripts I went ahead and create one that exports a single function, "void foo() {}" just to see what happens. It crashes during a try script run with the following error: localhost - LoadtestController: 3313 - The virtual user's process terminated. Is there some specific Visual Studio version I should be using by any chance? Does it only support .NET code and I have to do it in C# (not a problem for me)? Function 'foo' is exported by name using C linkage.

Also, I would appreciate it if someone could verify that I understand the syntax for using external dll's.

My dll_test.bdh file has the following contents:

dll "path\\to\\dll\\dll.dll"

  "foo"

    function bar;

That's correct yes? Declare the exported function name in the "foo" part and define the BDL function under it?


Thanks,

Chris

Tags (2)
0 Likes
1 Solution

Accepted Solutions
Micro Focus Expert
Micro Focus Expert

RE: using a custom dll

Jump to solution

Hi Chris.

Did you already find the Readme.txt in the SampleApps\CustomAPI\ folder? It contains the requirements.

Here's the full path - C:\Users\Public\Documents\Silk Performer 15.5\SampleApps\CustomAPI

0 Likes
2 Replies
Micro Focus Expert
Micro Focus Expert

RE: using a custom dll

Jump to solution

Hi Chris.

Did you already find the Readme.txt in the SampleApps\CustomAPI\ folder? It contains the requirements.

Here's the full path - C:\Users\Public\Documents\Silk Performer 15.5\SampleApps\CustomAPI

0 Likes
ChrisBond1 Absent Member.
Absent Member.

RE: using a custom dll

Jump to solution

I didn't see that. I'll take a look right now thank you.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.