Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C# version of sys(2007)
Message
From
17/07/2014 16:07:59
 
 
To
17/07/2014 15:42:58
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows 7
Network:
SAMBA Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01603907
Message ID:
01603961
Views:
50
>i have a need to generate the checksum value that is from sys(2007) from c# to coordinate a C# application with a vfp application - so it HAS to be sys(2007) compatible values.
>
>i was able to find a fox pro version of code that simulates sys(2007) http://fox.wikis.com/wc.dll?Wiki~CRC16 but converting it to c# is a little tricky. maybe there's some vfp to c# conversion website engine out there like there is for vb.net to c# or vice versa. I know vfp and c# don't necessarily transfer over but this is just using bit operations, data conversion, and some functions that seem to be making the process of conversion a little tricky.

I was looking at the bigger picture. Maybe you have a contract, and part of that is to be compatible with VFP SYS(2007), so that's what you need to do.

OTOH if it's ultimately being used for security/cryptography such that the owner of the product can claim it's "secure", that isn't so. If that's the scenario there are some things you might want to consider:

- If there's a security breach involving a user of the C# product, the owner of the software may say "Ed Johnson wrote that security function, I expected it to be secure, it's clearly his fault"

- Pointing out the lack of security in CRC16/32 gets you ahead of the curve. You'd have to decide if that means "hero" or "whistleblower" :) That could result in more work for you.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Reply
Map
View

Click here to load this message in the networking platform