fbpx
Welcome, Guest
Username: Password: Remember me
Visual Objects

Please use this forum to post questions about Visual Objects and Vulcan.NET
  • Page:
  • 1

TOPIC: Problem with MemoWrit function

Problem with MemoWrit function 1 year 4 months ago #1

  • hsc
  • hsc's Avatar Topic Author
  • Away
  • Posts: 78
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

File Attachment:

File Name: ContentVulcan.txt
File Size:1 KB

File Attachment:

File Name: ContentXSharp.txt
File Size:1 KB
Attachments:

Please Log in or Create an account to join the conversation.

Problem with MemoWrit function 1 year 4 months ago #2

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
This email address is being protected from spambots. You need JavaScript enabled to view it.

Please Log in or Create an account to join the conversation.

Problem with MemoWrit function 1 year 4 months ago #3

  • hsc
  • hsc's Avatar Topic Author
  • Away
  • Posts: 78
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

Please Log in or Create an account to join the conversation.

Problem with MemoWrit function 1 year 4 months ago #4

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
This email address is being protected from spambots. You need JavaScript enabled to view it.

Please Log in or Create an account to join the conversation.

Problem with MemoWrit function 1 year 4 months ago #5

  • hsc
  • hsc's Avatar Topic Author
  • Away
  • Posts: 78
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

Please Log in or Create an account to join the conversation.

  • Page:
  • 1