'As Any' doesn't work
As Any in VB means just push a pointer to the stack
'ByVal' doesn't work.
NO!
It's more like: ByRef does'nt work
but yes there is a workaround please have a look at this:
How to use pointer with Jabaco
But it would be better for you to forget about the old VB-hacks with the intensive usage of CopyMemory.
Show us your code, maybe there are already any Java classes that solves your problems in another way.
good luck
OlimilO