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
Problem with MemoWrit function
Problem with MemoWrit function
- Attachments
-
- ContentXSharp.txt
- (1.46 KiB) Downloaded 45 times
-
- ContentVulcan.txt
- (1.46 KiB) Downloaded 57 times
Problem with MemoWrit function
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
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
The Netherlands
robert@xsharp.eu
Problem with MemoWrit function
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
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
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
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
The Netherlands
robert@xsharp.eu
Problem with MemoWrit function
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
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