Home AMX User Forum AMX General Discussion

i!-PCLinkXtra.ocx in C#

hi together

is there anyone who have written a programm with i!-PCLinkXtra in C#?
I have written a little Test-Software, but i can't connect to the master with the ActiveX
Component.
Can anyone tell me how i must initialize the OCX in the Code?

thanks a lot
John

BTW: I'm new in C# ;-)

Comments

  • travtrav Posts: 188
    I would just use the DLL implementation. The sample files provided with it give you a good start for hacking away. My advice is to check them out, they are well commented and give you a basic framework for anything you need really.
  • AMXJeffAMXJeff Posts: 450
    I just added the osx to the toolbox, then dragged it to the form. Seem to work ok for me...
    John_Glove wrote:
    hi together

    is there anyone who have written a programm with i!-PCLinkXtra in C#?
    I have written a little Test-Software, but i can't connect to the master with the ActiveX
    Component.
    Can anyone tell me how i must initialize the OCX in the Code?

    thanks a lot
    John

    BTW: I'm new in C# ;-)
  • hi together

    thanks for your answers!
    i has also try the C# sample and compiled it.
    After i try to make the connection: connection failed.
    The settings are correct and with the NetLinx Studio, there is no problem to connect
    from the same PC.

    any hint's?

    thanks
    john
  • Hi
    I have install the Visual Studio Express C#.NET again on a new installed Windows.
    Open the sample Project from the PCLink Project for C# and compiled it.
    After i type in the IP-Adress/Port i can't connect! Connection with the
    NetLinx Studio is no problem! Authentication isn't active.

    Is there soemone who can give me a hint?

    thanks very much

    John
  • drewdbdrewdb Posts: 14
    Not sure if you found a solution or if anyone else is looking for one. Only just joined the forum.

    .NET doesn't work very well with OCX's. You need to download "AXIMP.EXE" from Microsoft and drag and drop the OCX onto it. This will produce an Interopable dll that you can then make a reference to and access everything. Events and ConnectToMaster and such. I use it often in C#.
Sign In or Register to comment.