Antwort: Re: [JAWIN] Undefined function stealUnknown

Kai Klesatschke <[email protected]>
Newsgroups gmane.comp.windows.devel.jawin
Message-ID <OFCA728B76.317D20CF-ONC1256FD5.0024BA7A-C1256FD5.0026759A@schulz-engineering.com>
Hi Morten,

thx for your response.

>First: What version of Jawin are you using: 1.0.19 or 2.0alpha1
>(2.0alpha1 is recommended).

I'm using 2.0alpha1. BTW I had a look on the CVS but IMHO your repository
is confusing for me.

>I have worked a bit with OPC a couple of years ago, although not using
>Jawin.
>
>I have started by downloading the OPC Core Components 2.00 SDK:
>
http://www.opcfoundation.org/DownloadFile.aspx?CM=3&RI=205&CN=KEY&CI=285&CU=2

>
>Is that approximately what you have done too?
>
>And if this is the case, which of the DLL's in the include-library
>should I use for generating the stubs you are requesting?

Yeaha, you're reading my mind ;-). I think for the first step, correct
stubs for the OPCAuto.DLL will do it.

>If I remember correctly the OPC foundation only defines the interfaces,
>and does not deliver an actual OPC server (that is, I assume you are
>working on building a OPC client in Java - is that correct?). What is
>the actual OPC-server you are working with? (I have only experience with
>the non-free Phoenix OPC-server).

Yes I'm trying to build an JavaOpcClient, but I need a generic solution
because I don't know which OPC-Server will be used by our customer. I have
installed 4 Demo OPC-Servers. Matrikon, FactorySoft, Softing and DSxP.
Only the Matrikon Server delivers a valid TypeLibrary which I could take
for generating the stubs, but it seems to be the same DLL as included in
the OPC-Foundation Core Components. I think you got the point. The problem
with the OPCGroup.stealUnknown() function is that the Foundation only
provides the interfaces and no impl for OPCGroup. But I compared the
output of the TypeBrowser with the output from the stub generator from the
jacob project. Their generated OPCGroup class extends  the DIOPCGroupEvent
class. Any idea why?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.