CFRONT AND VB.NET

wonmowonmo Member Posts: 139
edited 2002-09-20 in Navision Attain
I'm trying to use the CFront OCX in VB.NET but am coming across instantiation errors. Does anyone have any experience using CFront in VB.NET? This is the code I'm using to create the instance:

Dim Nav As New CFRONTLib.CFRONT()

When I run the program I get an error saying that the subsequent statement (Nav.ConnectServer("Servername", "tcp") is not referencing an instance of the object. Any ideas?

Comments

  • phnagelphnagel Member Posts: 2
    I had the same problem when i tried using the C/FRONT OCX for NF2.6 from c#. I built a c# library that uses the cfront.dll file. It's available, including source code, at cambridgelaan.dyndns.org/~phnagel/navision/

    Be aware of the fact that this is justy a first release and does not come with any guarantees.

    regards,

    Peter Nagel
    Developer

    <small>[ 05-09-2002, 00:31: Message edited by: Peter Nagel ]</small>
  • markusmarkus Member Posts: 1
    I had no problems using the OCX in C#. Simply add the OCX as a reference in the project and it works. I am using the latest version of Visual Studio.Net (SP1) and .Net Framework SP2.

    Regards,
    - m a r k ú s
Sign In or Register to comment.