I need some GoToMeeting help with a VB.net app

Need to convert a program intended to be an .exe to .DLL. having trouble getting a vlaue returned from a class.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Your request goes against EE rules.  I have deleted the line for the request.

Can you post the code here even if just the problem code?

JVarcoAuthor Commented:
Sorry, I didn’t mean to break the rules. Please accept my apology.

I am not allowed to release the actual code, however I have put together a sample that represents one of the problems. When ReadSerial is called an error results saying that it can’t be called because it is a namespace.

I have worked in VB classic for years, VB.net is new to me.


Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

   On Error GoTo Errorhandler

   Dim Result As Integer

   Result = ReadSerial()

Namespace ReadSerial

    Public Class Main : Inherits NetHook2App

        Public Function ReadHASP() As Integer

            Dim serial As System.Int32 = -1


                serial = Interop.SerialNumber()                                

            Catch ex As Exception

            MessageBox.Show(ex.Message, "UnHandled Exception: " + ex.Source,    MessageBoxButtons.OK, MessageBoxIcon.Exclamation)

            End Try

            Return serial

        End Function
Correct me if I am wrong, but you are trying to use the ReadSerial namespace, not create it, yes?

Do you mean
Imports ReadSerial
instead of Namespace ReadSerial
Actually, you should be importing whatever library it's supposed to be coming from.

Where is this ReadSerial function supposed to be coming from?
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

May be you want to change

  Result = ReadSerial()


Dim rs as new ReadSerial.Main()
Result = rs.ReadHASP()
JVarcoAuthor Commented:
In the end I found that this code can only be run from within the application it is designed to work with, I was trying to get it to work separately.

Thanks to all of you for your interest and efforts to help, and I am sorry it took me so long to get back to this.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
JVarcoAuthor Commented:
In the end I found that this code can only be run from within the application it is designed to work with, I was trying to get it to work separately.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming Languages-Other

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.