1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

C# Constructor

Discussion in 'C#' started by Beninem, Feb 19, 2012.

  1. Beninem

    Beninem New Member

    Joined:
    Feb 19, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Hi,

    I'm a DBA, having to debug some C# code. I'm not sure where the constructor suppose to go, I'm getting squiggly red lines under the ar bit of ar = new ArJni();

    ArJni is part of a DLL file called ARJNILIB which has been registered and is in the using clause as you can see below.

    Any help you could give me would be fantastic! Thanks in advance.

    Code:
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;
    using ARJNILib;
    
    
    
    namespace WindowsFormsApplication1
    {
    
        
    
        public partial class Form1 : Form
        {
            
            
            public Form1()
            {
    
                InitializeComponent();
                
            }
                
        private void Process()
        {
            ar = new ArJni(); 
     
  2. Beninem

    Beninem New Member

    Joined:
    Feb 19, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    oh and I know that's not the full code above, all brackets are closed off correctly etc. Let me know if you want the whole thing.
     

Share This Page