xsharp.eu • Problem with MemoWrit function
Page 1 of 1

Problem with MemoWrit function

Posted: Wed Nov 15, 2017 10:33 am
by Juraj
Hi all

Successfully I transferred my Vulcan 2.0 App (VS2010 project) to XSharp App (VS2017 project). After fixing a few errprs, the program worked correctly. I found that the MemoWrit () function writes otherwise in the Vulcan version as in XSharp version. I attach two text files as an example.
VS2010 and VS2017 are on the same computer.

Juraj
ContentVulcan.txt
(966 Bytes) Downloaded 65 times
ContentXSharp.txt
(965 Bytes) Downloaded 62 times

Problem with MemoWrit function

Posted: Wed Nov 15, 2017 11:25 am
by robert
Juraj,

We do nothing special here. MemoWrit is a Vulcan Runtime function.
All we do is pass the string to this function.
- Can you show some code ?
- How are you reading the data ?
- Are both apps using the save Vulcan Runtime library ?
- Is there a difference in the SetAnsi setting for the 2 apps ?


Robert

Problem with MemoWrit function

Posted: Wed Nov 15, 2017 1:17 pm
by Juraj
Hi Robert

I do not set SetAnsi in the Vulcan and XSharp app. What is the default setting for SetAnsi in Vulcan and XSharp?

Juraj

Problem with MemoWrit function

Posted: Wed Nov 15, 2017 1:53 pm
by robert
Juraj,

The default for SetAnsi = TRUE.
If you did not change that then the problem is something else:
You did not answer the other questions, so I cannot explain why it fails.
I did notice that your files start with a strange binary info Is that on purpose ?
Robert

Problem with MemoWrit function

Posted: Wed Nov 15, 2017 2:21 pm
by Juraj
Hi Robert,

This program generate a receipt for pos printer in ASCII (DOS format), start info setup pos printer to Slovak character set.
In my app in Vulcan did not work correctly function Ansi2Oem(), for conversion from Ansi to ASCII (DOS) I writing my func MyAnsi2Oem(). App with my function print receipt correctly. After importing project into XSharp I had a problem with print national characters when printing receipt. When I replaced my function MyAnsi2Oem() with original func Ansi2Oem , is print receipt OK.
Thank you for your advice, helped me a lot in solving this problem.

Juraj