Problem with MemoWrit function

Public support forum for peer to peer support with related to the Visual Objects and Vulcan.NET products
Post Reply
Juraj
Posts: 161
Joined: Mon Jan 09, 2017 7:00 am

Problem with MemoWrit function

Post 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 26 times
ContentXSharp.txt
(965 Bytes) Downloaded 24 times
Attachments
ContentXSharp.txt
(1.46 KiB) Downloaded 23 times
ContentVulcan.txt
(1.46 KiB) Downloaded 24 times
User avatar
robert
Posts: 4225
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Problem with MemoWrit function

Post 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
XSharp Development Team
The Netherlands
robert@xsharp.eu
Juraj
Posts: 161
Joined: Mon Jan 09, 2017 7:00 am

Problem with MemoWrit function

Post 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
User avatar
robert
Posts: 4225
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Problem with MemoWrit function

Post 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
XSharp Development Team
The Netherlands
robert@xsharp.eu
Juraj
Posts: 161
Joined: Mon Jan 09, 2017 7:00 am

Problem with MemoWrit function

Post 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
Post Reply