Solved

Retrieving the COM class factory for component with CLSID , class not registered

Posted on 2012-04-02
7
560 Views
Last Modified: 2012-04-08
Getting error :

Retrieving the COM class factory for component with CLSID , class not registered at RichTechSTK1.SIMToolkit,

modem initialise error
having put MSCOMM32.OCX in windows/system32, and added relevant .dlls.
0
Comment
Question by:doramail05
  • 4
  • 3
7 Comments
 
LVL 19

Expert Comment

by:Rimvis
Comment Utility
Hi doramail05,
putting components to System32 is not enough. You have to register them with regsvr32 command. And I don't think RichTechSTK1.SIMToolkit comes from MSCOMM32.OCX. Do you have something like RichTechSTK.dll?
0
 
LVL 1

Author Comment

by:doramail05
Comment Utility
when trying to run command

C:\>REGSVR32 C:\RichTechSTK1.dll

it having the error :
The Module "C:\RichTechSTK1.dll' was loaded but the entry-point DllRegisterServer was not found.

Makesure that "C:\RichTechSTK1.dll' is a valid DLL or OCX file and then try again
0
 
LVL 19

Expert Comment

by:Rimvis
Comment Utility
So, this is not a COm library.  What object is invoked at like 6? Can you show your code?
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 1

Author Comment

by:doramail05
Comment Utility
here they are

Imports RichTechSTK1
Imports SIMToolKit

Module Module1

    Private oSMSMOMT As New RichTechSTK1.SIMToolKit
    Private simtoolkit As New SIMToolKit.SIMToolKit
    Dim aTimer As New System.Timers.Timer

    Sub Main()

        aTimer.AutoReset = True
        aTimer.Interval = 1000 '2 seconds 
        AddHandler aTimer.Elapsed, AddressOf tick
        aTimer.Start()
        'Console.ReadKey()

    End Sub

    Private Sub tick(ByVal sender As Object, ByVal e As System.Timers.ElapsedEventArgs)

        Dim sResponse As String = ""

        Dim sModemStatus As String = oSMSMOMT.ModemInit(3, "", sResponse)

        Dim sModemStatus1 As String = simtoolkit.ModemInit(3, "", sResponse)

Open in new window

0
 
LVL 19

Expert Comment

by:Rimvis
Comment Utility
I'm confused by these lines:
    Private oSMSMOMT As New RichTechSTK1.SIMToolKit
    Private simtoolkit As New SIMToolKit.SIMToolKit

Why there is same class in separate namespaces? Ar you sure you need them? Where does "RichTechSTK1.SIMToolKit" come from?
0
 
LVL 1

Accepted Solution

by:
doramail05 earned 0 total points
Comment Utility
solved with running

REGSVR32 with the OCX file
0
 
LVL 1

Author Closing Comment

by:doramail05
Comment Utility
assisted from other forum
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now