Click here to Skip to main content
15,888,984 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Vb.net + SQL Server : Speed difference using float vs Decimal Pin
Dave Kreskowiak19-Sep-14 8:19
mveDave Kreskowiak19-Sep-14 8:19 
QuestionCreate desktop shortcut on installation of my app. vb2010 Pin
Member 1108371515-Sep-14 9:26
Member 1108371515-Sep-14 9:26 
AnswerRe: Create desktop shortcut on installation of my app. vb2010 Pin
Richard MacCutchan15-Sep-14 21:31
mveRichard MacCutchan15-Sep-14 21:31 
QuestionAsync Help Pin
byka15-Sep-14 6:13
byka15-Sep-14 6:13 
AnswerRe: Async Help Pin
Eddy Vluggen15-Sep-14 8:19
professionalEddy Vluggen15-Sep-14 8:19 
GeneralRe: Async Help Pin
byka16-Sep-14 2:14
byka16-Sep-14 2:14 
GeneralRe: Async Help Pin
Eddy Vluggen16-Sep-14 2:58
professionalEddy Vluggen16-Sep-14 2:58 
QuestionClass does not support Automation... Error calling a com Object from Vb6 Pin
Member 1034939115-Sep-14 2:06
Member 1034939115-Sep-14 2:06 
Hi all,

I'm having a problem on my code that's throwing me the following error:
'Class does not support Automation or does not support expected interface'

What I'm doing is, we have lot of ActiveX exe and we want to migrate them to .net, but as visual studio doesn't support ActiveX exe migration, I'm following this article ActiveX EXE Wrappers[^] I did one test project and after this worked I tried to migrate a working project.

So I was migrating my ActiveX exe to a Windows forms Application and I adde the following com class to my projec:
clsCom.vb
VB
<ComClass(clsCom.ClassId, clsCom.InterfaceId, clsCom.EventsId)> _
Public Class clsCom

#Region "COM GUIDs"
     Public Const ClassId As String = "5f6daa91-519d-4db0-a71a-83a2cc5980cc"
    Public Const InterfaceId As String = "dfc3f83c-38a8-43e5-98d1-6914983a9df1"
    Public Const EventsId As String = "5ed06d44-d6b6-431b-8804-2ef2a0fb1b70"
#End Region

    Public Sub New()
        'MyBase.New()
    End Sub

    Public Shared Sub Main()
        
    End Sub

    Public Sub Amend(ByRef lPOSID As Integer)
        Dim clsentry As New clsEntry
        clsentry.Amend(lPOSID)

    End Sub

    Public Sub View(ByRef lPOSID As Integer)
        Dim clsentry As New clsEntry
        clsentry.View(lPOSID)

    End Sub

    Public Sub Add(ByRef lPOSID As Integer)
        Dim clsentry As New clsEntry
        clsentry.Add(lPOSID)
    End Sub

    Public Sub Delete(ByRef lPOSID As Integer)
        Dim clsentry As New clsEntry
        clsentry.Delete(lPOSID)
    End Sub

End Class


After this I created my VB6 to call my Com Object:
VB
Option Explicit

Public placeOfSet As gdcPlaceOfSettlement.clsCom

Public Sub Main()
           
    Set placeOfSet = New gdcPlaceOfSettlement.clsCom
    placeOfSet.Amend (5654)
            
End Sub


The error is ocurring at: Set placeOfSet = New gdcPlaceOfSettlement.clsCom

I don't know what's going on, I've checked few websites and none of them matches with my thread.
Does anyone had the same problem or knows how to fix it?

Thanks in advance.
QuestionRe: Class does not support Automation... Error calling a com Object from Vb6 Pin
Eddy Vluggen15-Sep-14 8:13
professionalEddy Vluggen15-Sep-14 8:13 
AnswerRe: Class does not support Automation... Error calling a com Object from Vb6 Pin
Member 1034939116-Sep-14 0:20
Member 1034939116-Sep-14 0:20 
GeneralRe: Class does not support Automation... Error calling a com Object from Vb6 Pin
Eddy Vluggen16-Sep-14 3:00
professionalEddy Vluggen16-Sep-14 3:00 
QuestionHow to sum, two columns from the true dbgrid vb.net Pin
Member 1107913912-Sep-14 17:57
Member 1107913912-Sep-14 17:57 
AnswerRe: How to sum, two columns from the true dbgrid vb.net Pin
Eddy Vluggen15-Sep-14 8:20
professionalEddy Vluggen15-Sep-14 8:20 
QuestionGet security code of mobile phones Pin
Otekpo Emmanuel12-Sep-14 12:24
Otekpo Emmanuel12-Sep-14 12:24 
SuggestionRe: Get security code of mobile phones Pin
Richard MacCutchan12-Sep-14 22:08
mveRichard MacCutchan12-Sep-14 22:08 
QuestionVB.NET filling in a Word 2010 label Pin
louis_james10-Sep-14 7:18
louis_james10-Sep-14 7:18 
QuestionMicrosoft OLE DB Provider Pin
byka10-Sep-14 5:26
byka10-Sep-14 5:26 
AnswerRe: Microsoft OLE DB Provider Pin
hypermellow10-Sep-14 5:44
professionalhypermellow10-Sep-14 5:44 
AnswerRe: Microsoft OLE DB Provider Pin
Eddy Vluggen10-Sep-14 5:45
professionalEddy Vluggen10-Sep-14 5:45 
AnswerRe: Microsoft OLE DB Provider Pin
Richard Deeming10-Sep-14 5:46
mveRichard Deeming10-Sep-14 5:46 
QuestionHow to implement jquery function in vb.net 2010? Pin
QuickBooksDev9-Sep-14 10:29
QuickBooksDev9-Sep-14 10:29 
AnswerRe: How to implement jquery function in vb.net 2010? Pin
Dave Kreskowiak9-Sep-14 18:08
mveDave Kreskowiak9-Sep-14 18:08 
GeneralRe: How to implement jquery function in vb.net 2010? Pin
QuickBooksDev10-Sep-14 0:29
QuickBooksDev10-Sep-14 0:29 
GeneralRe: How to implement jquery function in vb.net 2010? Pin
Dave Kreskowiak10-Sep-14 1:23
mveDave Kreskowiak10-Sep-14 1:23 
GeneralRe: How to implement jquery function in vb.net 2010? Pin
QuickBooksDev10-Sep-14 1:46
QuickBooksDev10-Sep-14 1:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.