Page 1 of 1

Can't Access Enums

Posted: Sun Jan 27, 2013 1:05 pm
by XTechVB
I have a DLL file with this code
Code: Select all
Public Class Class1
    Public Enum Hello
        One
        Two
        Three
    End Enum
End Class
I made a program and referenced the DLL but sometimes when i try to access that Public Enum in the DLL file i get File Not Found Error (MyApp\Bin\MyLibrary.dll)
Why?

Re: Can't Access Enums

Posted: Sun Jan 27, 2013 1:46 pm
by noypikami
i think for that very short code, its better to use a MODULE instead of making DLL, where-in module can be accessed easily and no need for reference. ...

THAT'S ONLY MY IDEA TO MAKE CODING FASTER AND REDUCE HEADACHES, YOU GONNA HAVE TO FIND A WAY TO MAKE A SOLUTION BEFORE YOUR MIND ALMOST EXPLODE FROM TOO MUCH THINKING..

Re: Can't Access Enums

Posted: Sun Jan 27, 2013 2:23 pm
by clanc789
If you acces Public Enum you should state Public Enum Hello since that is the full name of the Enum?

Re: Can't Access Enums

Posted: Sun Jan 27, 2013 4:43 pm
by mandai
The application will normally look in the same folder for that DLL file reference.

If you put it in the same folder as the application do you still get the error?