| Return to Index | Read Prev Msg | Read Next Msg |

Slink-e / CDJ Discussion Archive #1

Re: Slink-e class libraries for Unix + Java connectivity ?

Posted By: Jeff Gilbertson <gilberts@e...>
Date: Wednesday, 9 September 1998, at 3:03 p.m.

In Response To: Re: Slink-e class libraries for Unix + Java connectivity ? (Sean McGrath)

I'm having trouble starting to program with the ActiveX control. My problem might be with the java code I'm writing (cause I'm just beginning to learn java... slinke gave me the excuse I needed to learn a modern language), or with the java<->activex conversion stuff, but I thought I'd try here first.

Here's what I've done:

Using the SDK-Java package from Microsoft, I created .java wrappers from the
slinkx.ocx control using "jactivex." Then, I compiled them using "jvc."
Now, I try to run the following code:

import java.awt.*;
import com.ms.activeX.*;
import com.ms.com.*;

class vcr {

public static void main(String[] args) {

slinkx.Slinkx slinke = new slinkx.Slinkx();

slinke.AddDevice("vcr","C:\\mag.cde", 1, 1, 0xFF0);

}
}

What happens is the Slinkserv starts up, the monitor box appears, and
Users and Obj go briefly to one, then back to zero. Java then exits with
"com.ms.com.ComFailException: (0x8000ffff) Unexpected failure at slinkx/_DSlinkx.AddDevice"
and Slinkserv exists (if not previously running).

Can anyone out there tell me what's going on? Thanks!

| Return to Index | Read Prev Msg | Read Next Msg |

Password:

Slink-e / CDJ Discussion Archive #1 is maintained by slinke-bbs-owner@nirvis.com with WebBBS 3.21.