The problem is that you're trying to call a .Net assembly as if it was a C++ library. You don't use external function calls with .Net Assemblies.
What kind of target type are you working with?
- If you are doing a Win32 application, you would need to use a COM Callable Wrapper to use a .Net assembly.
- If you are doing a .Net target in PowerBuilder classic, you would need to use a conditional code block to use a .Net assembly.
- If you are doing a WPF application in PowerBuilder.Net, you would just reference the .Net classes directly once you added the assembly as a reference.
I also don't know if you saw my previous note, but I wouldn't recommend using a .Net assembly to do what you're doing. .Net assemblies are good for providing PowerBuilder capability to other .Net development environments. There are better methods when the calling application is also PowerBuilder.