FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour help Translate from vb to harbour
Posts: 117
Joined: Tue Jan 03, 2006 06:18 PM
help Translate from vb to harbour
Posted: Fri Oct 03, 2008 11:43 AM

Dear all,

Can someone help me to translate from vb to harbour.

Thanks your

Regard,

KOk

vb sample :

Private Sub cmdInventory_Click()
Static MaskValue As Integer
Dim nDSFID As Integer
Dim bUID(7) As Byte
Dim MaskLength As Integer
cmdInventory.Enabled = False
MaskLength = 7
If RWM600x1.isoInventory(MaskLength, MaskValue, nDSFID, VarPtr(bUID(0))) Then
If InList(lstReady, UID_CODE(bUID)) = False Then
lstReady.AddItem UID_CODE(bUID)
End If
End If
labMaskValue.Caption = CHex(MaskValue)
MaskValue = (MaskValue + 1) And &H7F
cmdInventory.Enabled = True
End Sub

Structure INFO
BYTE UID[8];
BYTE DSFID;
BYTE AFI;
BYTE NumOfBlock;
BYTE BlockSize;

Private Sub cmdSystemInfo_Click()
Dim I As Integer
Dim selInfo As RWM600XLib.INFO_T
If RWM600x1.isoGetSystemInformation(VarPtr(selInfo)) Then
' Update Information Label
labInfo(0).Caption = UID_CODE(selInfo.UID)
txtDSFID.Text = CHex(selInfo.DSFID)
txtAFI.Text = CHex(selInfo.AFI)
labInfo(1).Caption = selInfo.NumOfBlock
labInfo(2).Caption = selInfo.BlockSize
txtDSFID.Enabled = True
txtAFI.Enabled = True
End If
End Sub

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
help Translate from vb to harbour
Posted: Fri Oct 03, 2008 07:31 PM

Is RWM600x1 an ActiveX or an Ole Automation object ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 117
Joined: Tue Jan 03, 2006 06:18 PM
Is RWM600x1 an ActiveX or an Ole Automation object ?
Posted: Sat Oct 04, 2008 02:03 PM

Dear Antonio,

Rwm600x1 is ole ( Rwm600x.ocx ).

I try using createobject , it's work.

Regards,

Kok Joek Hoa

Continue the discussion