Skip to Content
author's profile photo Former Member
Former Member

Bad return value from boOpex obj. in customized payment plugin.

Hello all,

I am creating a plug-in for the payment engine. Iwas running the plug-in from my development environment in debug modus and it worked fine.

Now I created the DLL and registered it an a test system. When I then run the payment engine using my plug-in I get bad return values if I try to get any attribute of the payments.

It only happens on CString return values, for example boOpex.GetPayBnkName(). If I try to get a number, amount of payment for example, its ok.

On boOpex.GetPayBnkName() I should get "Union Bank". The return value has the correct length but has avter ever letter a '\0' (<end of string>) so it looks like "U\0n\0i\0o\0n\0". So the content of my export file is cut after the first letter of the first attribute of the payment.

Have anyone any idea or solution?

Thanks in advance

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 10, 2007 at 06:34 AM

    I hope you've found a solution by now, but i found this was due to switching over to the release configuration in visual studio. You need to set the Character Set to Use Unicode Character Set as was done for the debug configuration.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.