|
Thread: dll
-
Aug 20th, 2003, 03:11 PM
#1
Thread Starter
Fanatic Member
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
-
Aug 20th, 2003, 03:20 PM
#2
File> New Project
Select Visual Basic, then The DLL....
-
Aug 20th, 2003, 03:21 PM
#3
Thread Starter
Fanatic Member
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
-
Aug 20th, 2003, 03:36 PM
#4
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:
<DllImport("kernel32.dll")> _
Private Overloads Shared Function WritePrivateProfileString( _
ByVal lpApplicationName As String, _
ByVal lpKeyName As String, _
ByVal lpString As String, _
ByVal lpFileName As String) As Integer
End Function
Maybe you can work your way off that? Can't really help much more, maybe someone else will come along..
-
Aug 21st, 2003, 02:42 PM
#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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|