Results 1 to 5 of 5

Thread: dll

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2002
    Location
    London
    Posts
    678

    dll

    Hi,
    I would like to call a com component (i.e a dll which is created in .net) from another program i.e. an excel VBA.

    How is it possible to create a dll in .net?
    Thanks

  2. #2
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985
    File> New Project

    Select Visual Basic, then The DLL....

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2002
    Location
    London
    Posts
    678

    dll

    Hi,
    But my question is how to create the dll in vb.net so that I can reference this created .dll in excel?
    Thanks

  4. #4
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985
    You can create a DLL like I said. To reference 1, well I'm not sure exactly how, but I think you may have to declare everything in each function like this is references a DLL to use the INI write capability
    VB Code:
    1. <DllImport("kernel32.dll")> _
    2.         Private Overloads Shared Function WritePrivateProfileString( _
    3.         ByVal lpApplicationName As String, _
    4.         ByVal lpKeyName As String, _
    5.         ByVal lpString As String, _
    6.         ByVal lpFileName As String) As Integer
    7.     End Function

    Maybe you can work your way off that? Can't really help much more, maybe someone else will come along..

  5. #5

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