I am trying to create the obj in VB in the same manner, ie Set Obj = CreateObject("sample.lib") Strangely, the non exe version of the COM server works fine and I am able to access the public functions in VB application.
Problem comes with the EXE version of the COM server, VB application jus hangs while executing, Set obj = CreateObject("sample.lib") On 1/8/08, Pramod P G <[EMAIL PROTECTED]> wrote: > > Hi, > > Try out this statement > > > > This might help U J > > > > Set obj = CreateObject("sample.lib") > > > > Thanks and regards, > > Pramod P G > > > ------------------------------ > > *From:* [EMAIL PROTECTED] [mailto: > [EMAIL PROTECTED] *On Behalf Of *Tejovathi P > *Sent:* Tuesday, January 08, 2008 3:57 PM > *To:* python-win32@python.org > *Subject:* [python-win32] Regarding COM server and exe > > > > Hi All, > > > > I have a Python COM server. I need to deploy it on various sytems. When I > run the COM server from > > python its showing an output " Registered : sample.lib" > > > > If I try to use the COM obj from a VB client like: > > > > obj = CreateObject("sample.lib") > > > > Its working fine without any errors > > > > Now I am trying to convert this COM server to an exe through py2exe and > after I run the exe, I am > > getting the same output " Registered : sample.lib" > > > > But If I try to use the COM obj from a VB client like > > > > obj = CreateObject("sample.lib") > > > > A console pops up saying " Registered : sample.lib" and VB application > hangs there. > > Its throwing a VB error that "ActiveX object cannot be created......etc > etc" > > > > Any suggestions please....... > > > > Regards, > > Tejovathi > > The information contained in, or attached to, this e-mail, contains > confidential information and is intended solely for the use of the > individual or entity to whom they are addressed and is subject to legal > privilege. If you have received this e-mail in error you should notify the > sender immediately by reply e-mail, delete the message from your system and > notify your system manager. Please do not copy it for any purpose, or > disclose its contents to any other person. The views or opinions presented > in this e-mail are solely those of the author and do not necessarily > represent those of the company. The recipient should check this e-mail and > any attachments for the presence of viruses. The company accepts no > liability for any damage caused, directly or indirectly, by any virus > transmitted in this email. > > www.aztecsoft.com >
_______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32