AnsweredAssumed Answered

Serial Numbers with C#.NET...

Question asked by Christina Seay on Apr 22, 2011
Latest reply on Apr 25, 2011 by Lee CS Young

Hey guys.  I've got an existing VB.NET Windows form application that I'm converting over to a C#.NET WPF application and I'm running into an error I can't work out.  The program looks at EPDM and gets a list of all the available serial number names and lets the user pick a serial number to use and then generates the next available number in that series.  It worked in the VB form application.


What I've got at the moment:


        public EdmVault5 VaultHook = new EdmVault5();
        public IEdmSerNoGen7 EPDMSerialNumbersAvailable;
        public Array EPDMSerialNumberNames;
        public EdmLib.IEdmSerNoValue EPDMSerialNumberGenerated;

        public MainWindow() {


            var handle = new System.Windows.Interop.WindowInteropHelper(this).Handle.ToInt32();


            VaultHook.LoginAuto("Vault", handle);


            EPDMSerialNumbersAvailable = VaultHook.CreateUtility(EdmUtility.EdmUtil_SerNoGen);



This line:  EPDMSerialNumbersAvailable.GetSerialNumberNames(EPDMSerialNumberNames); is giving me an error saying that:

The best overloaded method match for 'EdmLib.IEdmSerNoGen7.GetSerialNumberNames(out System.Array)' has some invalid arguments


Does anyone know why I'm getting that error??