I try to connect to QC 9.2 via a VBScript and I get a fatal error when executing the script (The instruction at... The memory cound not be "read").

The same code (except for object creation...) works fine in Excel VBA Editor.

Any idea why I get that fatal error?

<font class="small">Code:</font><hr /><pre>
Set objTDC = CreateObject("TDApiole80.TDConnection")
objTDC.InitConnectionEx "http://[server_address]/qcbin/"
objTDC.Login "myname", "mypassword"
objTDC.Connect "DEFAULT", "MyProject"
</pre><hr />