Returning an "out ushort" handle
I AM TRYING TO GET THE HANDLE RETURNED FROM "out ushort FlibHndl" IN CLASS BELOW.
[DllImport("FWLIB32.dll", EntryPoint="cnc_allclibhndl3")]
public static extern short cnc_allclibhndl3( [In,MarshalAs(UnmanagedType.AsAny)] Object ip, ushort port,int timeout, out ushort FlibHndl);
C# DOES NOT LET ME DECLARE "out ushort hCNC"
private void GetRBit_Click(object sender, System.EventArgs e)
{
out ushort hCNC; HOW DO I DECLARE THIS TO ACQUIRE MY FlibHndl???
bool ret;
Focas1 FOCAS1 = new Focas1();
ret = FOCAS1.cnc_allclibhndl3( "190.190.11.11", 8193, 10, hCNC ) ;
}