error registrated COM object as MULTI-THREADED COM SERVER DLL

Hi!
on Visual FoxPro 6.0 I created COM object (my_com.dll) as MULTI-THREADED COM SERVER DLL.
but when I try registrated COM object I got the error
regsvr32 my_com.dll

"DllRegisterServer in my_com.dll failed. Return Code was: 0x80004005"

Why


Answer this question

error registrated COM object as MULTI-THREADED COM SERVER DLL

  • Manurein

    Hi.  First of all, you should be on VFP6SP5.  I'm assuming it works on the machine you compiled on(it gets registered when you compile it) and you're now distributing to another machine.
    You need to include yourdll.dll, yourdll.tlb,yourdll.vbr and the vfpt6.dll, vfp6eng(whatever the language runtime is) and I think that's it.  I have all of these pre-loaded in an Installshield setup so it doesn't have to be a big deal each time I distribute one.  Also, make sure all runtimes are at the same level and SP.  Once these things are done, it should register fine on the target machine.

  • CharlottesvilleDeveloper

    ok, thank it's work (-:
    (I remove VFP6R.dll)

    thanks

  • Jignesh Joshi

    That tells me it registers successfully using vfp6R.dll(which single-threaded uses) but not the MT version, vfp6t.dll.  So, the problem apparently is with vfp6t.dll.  Check it's version and make sure there are no other copies on the target machine.  BTW, you don't need to include the VFP6R.dll if you want to use the MT version.

  • tgilkison

    on machine#1 I have Visual foxPro 6.0 SP5.0
    I create COM object s MULTI-THREADED COM SERVER DLL on this machine

    But I need registrated com object on machine#2
    on folder my_folder I have the the next files:

    my_com.dll
    my_com.tlb
    my_com.VBR
    VFP6R.DLL
    VFP6RENU.DLL
    VFP6T.DLL

    and when I try to registrate my_com on machine#2 I got the error:
    "Visual FoxPro cannot start. Could not load resources."

    But when I created COM object as s SINGLE-THREADED COM SERVER DLL I successed registrated COM object on machine#2

  • error registrated COM object as MULTI-THREADED COM SERVER DLL