Hi friends,
Please someone how to create a dll in vb. net class library , how to register it and how to call it using sp_oacreate. Pls provide some sample codes.
deepukng
0
Newbie Poster
Recommended Answers
Jump to PostNot sure how detailed or "basic" help you need but let's start with this.
1) Create a VB.NET project and add a class in it.
Public Class Class1 Public Sub New() ' Initialize class End Sub ' Add properties ' Add methods End Class
I created …
Jump to PostWhat was the exact error you get when registering? Did you use regasm? If so, did you notice my comment of fully qualifying the regams path.
The second approach was to make a COM-compatible component by setting from classes properties "COM Class = True", compile and use regsvr32. But …
Jump to PostTry to re-register the DLL-file. Open first command prompt from "Start"-button at lower left corner in Windows. Select "Run..." and type cmd and press enter. You should have command prompt open. Now navigate to folder where classlibrary2.dll is OR enter the full path for the classlibrary2.dll. Then re-try C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\regasm /tlb …
Jump to PostOk. I found this MS Help and Support article: How to run a DLL-based COM object outside the SQL Server process. Read this article, it has good tips when remoting COM with SQL …
All 13 Replies
Teme64
215
Veteran Poster
deepukng
0
Newbie Poster
Teme64
215
Veteran Poster
deepukng
0
Newbie Poster
Teme64
215
Veteran Poster
deepukng
0
Newbie Poster
Teme64
215
Veteran Poster
deepukng
0
Newbie Poster
Teme64
215
Veteran Poster
deepukng
0
Newbie Poster
CornerAnalyst
0
Newbie Poster
Teme64
215
Veteran Poster
CornerAnalyst
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.