Results 1 to 4 of 4

Thread: Problem with DLL in Windows 2003

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2006
    Posts
    2

    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:
    1. Implements ObjectControl
    2. Private objContext As ObjectContext
    3.  
    4. Public Const objNotaFiscal As String = "SynchroBusiness.cNotaFiscal"
    5.  
    6. Dim oINotaFiscal As INotaFiscal
    7.  
    8. Set oINotaFiscal = objContext.CreateInstance(objNotaFiscal) [COLOR=Red]'the error occurs here[/COLOR]
    9. 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

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Problem with DLL in Windows 2003

    objContext hasn't been instanciated....

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2006
    Posts
    2

    Re: Problem with DLL in Windows 2003

    ok... but... why is it working in Windows 2000?

    if I put
    VB Code:
    1. Set objContext = New ObjectContext
    occurs the Compile Error "Invalid use of New keyword"
    Last edited by rcaetano; Jun 20th, 2006 at 09:30 AM.

  4. #4
    New Member
    Join Date
    Jul 2006
    Posts
    3

    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:
    1. Dim myDLL As Object
    2. Set myDLL = New My_COM_Security.Dim_Sec
    and
    VB Code:
    1. 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
  •  



Click Here to Expand Forum to Full Width