well you're not using the scheduler (at least that's how it seams), thus some small things change ! in this case, the particle functions doesn't have a PARTICLE as argument anymore, but an IntPtr ! thus the correct code should be :
Code:
class MyGraphic
{
private static void ParticleLine(IntPtr p)
{
}
public static void DrawLine3DEx(Vector AFrom, Vector ATo, Color AColor, int AAlpha, int ASize)
{
PARTICLE.effect(ParticleLine, 1, AFrom, ATo);
}
}