|
-
Jun 20th, 2006, 08:32 AM
#1
Thread Starter
New Member
Problem with DLL in Windows 2003
Hi,
I have a component(dll) that calls another component(dll), but i am getting the error "429 - cannot create object" when i call a method. For Example:
In the DLL that calls another DLL
VB Code:
Implements ObjectControl
Private objContext As ObjectContext
Public Const objNotaFiscal As String = "SynchroBusiness.cNotaFiscal"
Dim oINotaFiscal As INotaFiscal
Set oINotaFiscal = objContext.CreateInstance(objNotaFiscal) [COLOR=Red]'the error occurs here[/COLOR]
Call oINotaFiscal.CalculateTaxes(SendMsg, replyMsg, ErrorMsg)
SynchroBusiness.dll is installed in COM+
This error just occurs in Windows 2003.
In Windows 2000 the components are working fine.
Can anyone help?
Thanks
Roberto
-
Jun 20th, 2006, 09:02 AM
#2
Re: Problem with DLL in Windows 2003
objContext hasn't been instanciated....
-tg
-
Jun 20th, 2006, 09:13 AM
#3
Thread Starter
New Member
Re: Problem with DLL in Windows 2003
ok... but... why is it working in Windows 2000?
if I put
VB Code:
Set objContext = New ObjectContext
occurs the Compile Error "Invalid use of New keyword"
Last edited by rcaetano; Jun 20th, 2006 at 09:30 AM.
-
Jul 18th, 2006, 10:43 AM
#4
New Member
Re: Problem with DLL in Windows 2003
I have encountered a similar issue. I have created a COM dll in VB6. It works fine in XP, however on Windows Server 2003 I receive "ActiveX component can't create object" when trying to instantiate it.
In a VB6 .exe to test the .dll, I have tried using:
VB Code:
Dim myDLL As Object
Set myDLL = New My_COM_Security.Dim_Sec
and
VB Code:
Dim myDLL As New My_COM_Security.Dim_Sec
Both methods to instantiate the .dll return the same error. The VB6 .dll is a simple 19 line function that calls a VB.NET .dll exposed to COM. I can instantiate the .NET .dll just fine from the VB6 .exe and know that it is simply an issue of not being able to instantiate the VB6 .dll.
Last edited by kmarshba; Jul 19th, 2006 at 02:02 PM.
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
|