Lucas,
bintoc() does not generate a "standard" binary representation. Christian pointed you to some code that will create the proper binary.
>The activeX expected a 16-bit integer, so
>I tried to do that :
>
>x=bintoc(100,2)
>activeX.Method(@x)
>
>The same error ( Type missmach ) occurs.
>
>And i tried to do that :
>x=bintoc(100,2)
>createbinary(x)
>activeX.Method(@x)