I've got some problems with the method:

void IFMIDocument:oFMScript(BSTR* lWhichScript),

from the FileMakerPro Type Library.

It produces an error when executing.
I have declared my variable lWhichScript this way:

CString script = _T ("mat");
BSTR lWhichScript = NULL;
lWhichScript = script.AllocSysString();

Is this the good way ??

Thank you for your answer.

Mathieu Barthet.