I add tow Com libraries to my project, I can see their content with
intellisense, but when I instantiate a class contained in the library:
PDDirectLib.PDD atabaseQuery pDbQuery = new PDDirectLib.PDD atabaseQuery();
It raises an unhandled exception "Class not registered"
any idea??? 3 8378
> It raises an unhandled exception "Class not registered"
any idea???
The underlying COM object that the generated RCW (which is what you are
programming to when you add a COM Reference) must be registered in the
Registry through regsvr32 as it always has been. COM is COM and requires the
Registry. For a thorough explanation of all this please see my MSDN article http://msdn.microsoft.com/library/de...tml/bridge.asp
--
Sam Gentile [C#/.NET MVP]
..NET Blog http://samgentile.com/blog/
MSDN Column: http://msdn.microsoft.com/library/de...tml/bridge.asp
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
"rua17" <ru***@hotmail. com> wrote in message
news:OJ******** ******@TK2MSFTN GP10.phx.gbl... I add tow Com libraries to my project, I can see their content with intellisense, but when I instantiate a class contained in the library:
PDDirectLib.PDD atabaseQuery pDbQuery = new PDDirectLib.PDD atabaseQuery();
It raises an unhandled exception "Class not registered" any idea???
thanks, now I have a diferent problem
After I registered the dll's, in the same line it tells me Unspecified Error
"Sam Gentile [MVP]" <sa*@nomail.com > wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. .. It raises an unhandled exception "Class not registered" any idea??? The underlying COM object that the generated RCW (which is what you are programming to when you add a COM Reference) must be registered in the Registry through regsvr32 as it always has been. COM is COM and requires
the Registry. For a thorough explanation of all this please see my MSDN
article
http://msdn.microsoft.com/library/de...tml/bridge.asp -- Sam Gentile [C#/.NET MVP] .NET Blog http://samgentile.com/blog/ MSDN Column: http://msdn.microsoft.com/library/de...tml/bridge.asp Please reply only to the newsgroup so that others can benefit. This posting is provided "AS IS" with no warranties, and confers no
rights.
"rua17" <ru***@hotmail. com> wrote in message news:OJ******** ******@TK2MSFTN GP10.phx.gbl... I add tow Com libraries to my project, I can see their content with intellisense, but when I instantiate a class contained in the library:
PDDirectLib.PDD atabaseQuery pDbQuery = new
PDDirectLib.PDD atabaseQuery(); It raises an unhandled exception "Class not registered" any idea???
Yikes, well that's not a very intuitive error message now is it? -) Can you
say more about what kind of COM component it is? I could steer you down the
path of using the .NET Framework Interop command line tools like tlbimp.exe
rather than using the IDE (my preferred approach) but I am not sure you want
to go down that path.
--
Sam Gentile [C#/.NET MVP]
..NET Blog http://samgentile.com/blog/
MSDN Column: http://msdn.microsoft.com/library/de...tml/bridge.asp
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
"rua17" <ru***@hotmail. com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. .. thanks, now I have a diferent problem
After I registered the dll's, in the same line it tells me Unspecified
Error "Sam Gentile [MVP]" <sa*@nomail.com > wrote in message news:%2******** ********@TK2MSF TNGP12.phx.gbl. .. It raises an unhandled exception "Class not registered" any idea???
The underlying COM object that the generated RCW (which is what you are programming to when you add a COM Reference) must be registered in the Registry through regsvr32 as it always has been. COM is COM and requires
the Registry. For a thorough explanation of all this please see my MSDN article http://msdn.microsoft.com/library/de...tml/bridge.asp -- Sam Gentile [C#/.NET MVP] .NET Blog http://samgentile.com/blog/ MSDN Column:
http://msdn.microsoft.com/library/de...tml/bridge.asp Please reply only to the newsgroup so that others can benefit. This posting is provided "AS IS" with no warranties, and confers no rights.
"rua17" <ru***@hotmail. com> wrote in message news:OJ******** ******@TK2MSFTN GP10.phx.gbl... I add tow Com libraries to my project, I can see their content with intellisense, but when I instantiate a class contained in the library:
PDDirectLib.PDD atabaseQuery pDbQuery = new PDDirectLib.PDD atabaseQuery(); It raises an unhandled exception "Class not registered" any idea???
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Alejandra Parra |
last post by:
The application used to work fine, but today, in this code:
CType(Me.AxSSTab1, System.ComponentModel.ISupportInitialize).EndInit()
..Net shows the next error:
An unhandled exception of type 'System.Runtime.InteropServices.COMException'
occurred in system.windows.forms.dll
Additional information: Class not registered
|
by: Bren |
last post by:
I'm hoping somebody can help me with the following problem. I'm
hoping it's not insurmountable.
Here's a basic structure:
class EventTarget
{
public:
EventTarget();
virtual ~EventTarget();
|
by: Scott Dillard |
last post by:
I have recently been provided with a new laptop. The old one ran Win
2000 with Access 2000 and the new one runs Win XP with Access 2000.
When I try to run some of my modules in my old databases on the new
machine, I receive a runtime error "Class Not Registered" on the first
step where I open a table:
rs.Open "", CurrentProject.Connection, _
adOpenKeyset, adLockOptimistic
Anyone have any idea what might be wrong? I checked my...
|
by: Baris |
last post by:
Given the C# code below, can anyone think of a better class design? What
really gets my goat is that the code within derived classes D1 and D2 is
identical and in my mind should be refactored into a base class, but how
can I move this particular 'shared functionality' into a base class?
If anyone can suggest a better newsgroup for this, such as one focussed
primarily on C# class design, please let me know.
|
by: Jim |
last post by:
Have fully operational software package developed on VB.NET that worked until Jan 1 2003, with early stage deployments on Oct 10, Oct 23, Nov 11, Dec 12 and Dec 30.
When attempted final deployment on Jan 2, 2004 got following messages and errors...
I reset everything and tried several times agian. Then erased the setup project and tried to rebuild a new one with the same errors. PLease note... ALL this this code ran perfectly five minutes...
| |
by: papaja |
last post by:
Hello,
I believe I didn't change anything on my machine but my web
applications, particularly pages accessing Microsoft Access DB,
suddenly refused to work.
I get this error:
----------------------------------------------------------
Server Error in '/tulumovic' Application.
|
by: Nonee |
last post by:
Anyone, anyone? : )
Hello-
I have a form with the mediaplayer referenced to play mp3's and avi's
and I believe that is what is causing the problem. I am not sure, but
I am hoping. Anyway, I "published" the vb.net app and moved it to
another computer and I get the following error msg when I load the
form with the mediaplayer on it. I upgraded this project from a
|
by: DKn |
last post by:
Hi ,
I am having a .Net Activex control. I have done coding for COMRegistering and Unregistereing in C#.Net. The code is follows..
static void ComRegister(Type t)
{
string keyName = @"CLSID\" + t.GUID.ToString("B");
using (RegistryKey key =
Registry.ClassesRoot.OpenSubKey(keyName, true))
{
|
by: DKn |
last post by:
Hi ,
I am having a .Net Activex control. I have done coding for COMRegistering and Unregistereing in C#.Net. The code is follows..
static void ComRegister(Type t)
{
string keyName = @"CLSID\" + t.GUID.ToString("B");
using (RegistryKey key =
Registry.ClassesRoot.OpenSubKey(keyName, true))
{
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |