You must declared x value as long in vb, because int type in c is 4 bytes and integer type in vb is 2 bytes only. And long type is 4 bytes.

------------------
smalig
[email protected]
smalig.tripod.com