Registering DLL



Hello,

I am facing a problem while registering DLL(Dspace.dll).. I am getting
an error saying: "DLLRegisterServer inDspace.dll Failed. Return Code:
0x80040201"

I am using following piece of code to generate DLL:

########################################################

# This setup script builds a single-file Python inprocess COM server.
from distutils.core import setup
import py2exe
import sys

# If run without args, build executables, in quiet mode.
if len(sys.argv) == 1:
sys.argv.append("py2exe")
sys.argv.append("-q")

class Target:
def __init__(self, **kw):
self.__dict__.update(kw)
# for the versioninfo resources
self.version = "1.0"
self.company_name = "None"
self.copyright = "None"
self.name = "API"

interp = Target(
description = "COM server module",
# what to build. For COM servers, the module name (not the
# filename) must be specified!
modules = ["Dspace"],
#script = ["Dspace"],
# we only want the inproc server.
create_exe = True,
)

excludes = ["pywin", "pywin.debugger", "pywin.debugger.dbgcon",
"pywin.dialogs", "pywin.dialogs.list", 'email.Generator',
'email.Iterators', 'email.Utils']

options = {
"bundle_files": 1,
"ascii": 1, # to make a smaller executable, don't include the
encodings
"compressed": 1, # compress the library archive
"excludes": excludes, # COM stuff we don't want
}

setup(
options = {"py2exe": options},
zipfile = None, # append zip-archive to the executable.
com_server = [interp],
)
################################################################

I am trying to generate a DLL from Python COM server module. I am able
to register the module by running the python code, but when I generate
a DLL and then try to register it using Regsvr32 command, I am getting
above mentioned error

Please help me resolve this issue.

-Girish
.



Relevant Pages

  • Faxcomex
    ... Dim JobID ... And it gave error saying "ActiveX Xomponent cannot ... I registered fxcom.dll but when I tried to register fxcomex.dll it gave an ...
    (microsoft.public.win2000.general)
  • Setup projects and /RegServer options
    ... I am going to use a setup project to do ... One of the executables that I need to deploy is built with a custom ... This should register the app as a server from what I can tell. ...
    (microsoft.public.dotnet.general)
  • How to register CGI executables under IIS 6.0
    ... under IIS 6.0 I am supposed to register the executables, ... The server is running Windows 2003 Server. ... Unfortunately I do not see such a section anywhere in IIS Manager. ... Maybe I have to register the executables there? ...
    (microsoft.public.inetserver.iis)
  • Re: computer browser service wont start
    ... I've noticed that dnsApi is sometimes one of the things that starts early before everything it needs is actually working, e.g. the TCP/IP and network stack. ... In the situations I've seen the Event Log entry from dnsApi that you report, the computer did successfully register itself later. ... This assumes that the targetted DNS server can accept Dynamic registrations and the computer doing the dynamic registration is permitted to do so. ...
    (microsoft.public.windows.server.general)
  • ASP: Get user login ID
    ... But when we register the dll on our web ... server, and call it from our ASP code, it generates an error. ... Dim lngCharsReturned As Long ...
    (microsoft.public.inetserver.iis.security)