Hi all,
I'm trying to convert some cobol 'comp' data types using VB or C. Some I've come accross so far are:
9(6) COMP-4
S9(9)V999 COMP-4
9(6) COMP
Are there any routines out there for conversion already? I've written a conversion routine for the unsigned comp-4, but under VB6 it just doesn't have the speed I need. I don't fancy writing one for the signed comp-4 - esp. when dealing with 2's compliment.
This would be straight forward if they 'fitted' into a standard windows-size data type, but alas not.
Help!! + thanks,
James.
I'm trying to convert some cobol 'comp' data types using VB or C. Some I've come accross so far are:
9(6) COMP-4
S9(9)V999 COMP-4
9(6) COMP
Are there any routines out there for conversion already? I've written a conversion routine for the unsigned comp-4, but under VB6 it just doesn't have the speed I need. I don't fancy writing one for the signed comp-4 - esp. when dealing with 2's compliment.
This would be straight forward if they 'fitted' into a standard windows-size data type, but alas not.
Help!! + thanks,
James.