DLLCC and Function Names with Special Characters

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

DLLCC and Function Names with Special Characters

Runar Jordahl
I am trying to call a function in a Windows DLL with the name
"_Java_com_sun_animation_SmoothAnimation_vbLockNative@8". (The DLL can
be found at this page
http://today.java.net/pub/a/today/2006/02/23/smooth-moves-solutions.html#handling-vertical-retrace)

Note the @-sign in the function name. When I try to accept the
following code, I get an "syntax error ->" pointing to "@8":

vbLockNative
        <C:void _Java_com_sun_animation_SmoothAnimation_vbLockNative@8(void)>
        ^self externalAccessFailedSignal raise

I wonder if there exists a way to define functions names that includes
special characters (like @).

By subclassing External.ExternalMethod I managed to call the function
anyway. But it would be better if I could use the <C: > statement
directly.

Runar