Forum Discussion

DonQuan's avatar
DonQuan
New Contributor
14 years ago

"new" operator in jscript

hi experts,



i have the following code which our developers has written in C++. i have to mention that Grips.Ipc is our dll written in .NET.



private void DDE_Server_Click() 

{

editorServer = new Grips.Ipc.Server(IpcReceiverType.Editor);

editorServer.IpcReceived += new IpcReceivedEventHandler(editorServer_IpcReceived); 

}



private void editorServer_IpcReceived(object sender, IpcReceivedEventArgs e) 

{

....

}



now i have to write this code in testcomplete in jscript. i already have access to our grips.ipc.dll via clr bridge and can see all the methods in it.

important for me is how can i create object reference, something like this in jscript:



editorServer = new Grips.Ipc.Server(IpcReceiverType.Editor);

editorServer.IpcReceived += new IpcReceivedEventHandler(editorServer_IpcReceived);



if i write the same in jscript it always gives me an error(object doesnt support this property or method) at "new" operator.



any help needed!

thanks a lot

Quan