Results 1 to 2 of 2

Thread: Component (DLL) Question

Threaded View

  1. #1

    Thread Starter
    Frenzied Member Tec-Nico's Avatar
    Join Date
    Jun 2002
    Location
    México
    Posts
    1,192

    Component (DLL) Question

    Hello, I was asked for a class to develop a component.

    What this component has to have is an interfase and its contract.

    So I began with an ActiveX DLL project... How would I develop the interface? Or am I doing the wrong thing? In our classes we were told Components didn't behave like Objects but I have this:


    VB Code:
    1. Option Explicit
    2.  
    3. Private Sub Form_Load()
    4.  Dim myComponent As VBToExcel
    5.  Set myComponent = New VBToExcel
    6.  
    7.  myComponent.DoSomething
    8.  
    9.  Set myComponent = Nothing
    10. End Sub

    What am I missing? Did I mess it up? I mean, the code is working but it shouldn't be done like that, should it?
    Last edited by Tec-Nico; Nov 28th, 2004 at 04:07 PM.
    We miss you, friend... Rest in Peace, we will take care of the rest of it.

    [vbcode]
    On Error Me.Fault = False
    [/vbcode]
    - Silence is the human way to share ignorance
    Tec-Nico

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width