|
Can you help me convert the code VB6 below to VC++ 6.
'Code VB6 - Class
Private Declare Function CheckCode Lib "ArmAccess.DLL" (ByVal Name$, ByVal Code$) As Byte
'@@@@@@@@@@@@@@@@@@@@@@@@
Public Function checkRegCode(ByVal userName As String, ByVal RegistrationKey As String) As Integer
Dim rtn As Byte
rtn = CheckCode(userName, RegistrationKey)
If rtn <> 0 Then
checkRegCode = 1
Else
checkRegCode = 0
End If
End Function
|
|
|
|
|
Here's a rough draft:
#include <whatever_header_file_CheckCode_is_in>
int checkRegCode(...)
{
if (CheckCode(...) != 0)
return 1;
else
return 0;
}
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
modified 17-Feb-13 21:35pm.
|
|
|
|