Board index » delphi » Error using Internet component ftpct.ocx : Variant does not reference an OLE object

Error using Internet component ftpct.ocx : Variant does not reference an OLE object

Hi,

i am building an application using the FTP component in the Internet
Pack and try to distribute it. My ftoct.ocx is well registered with
regsrv32.exe and I think that i have included all libraries that I
need. I got this error : Variant does not reference an OLE object
 when transfering a file to a distant machine with the function
FTP1.PutFile.  This error only appears on a PC that don't have a
version of Delphi 2.0 installed. Here is the list of the dlls that i
include in my installation script:

compobj.dll
ftpct.ocx
indicdll.dll
licenses.reg
msvcrt20.dll
msvcrt40.dll
nmftpsn.dll
nmocod.dll
nmorenu.dll
nmsckn.dll
nmw3vwn.dll
ole2.dll
ole2.reg
ole2conv.dll
ole2disp.dll
ole2nls.dll
ole2prox.dll
olepro32.dll
olecli.dll
olesvr.dll
storage.dll
wsock32.dll

Any clues why i get this error message

Thanks in advance !!

 

Re:Error using Internet component ftpct.ocx : Variant does not reference an OLE object


Quote
On Tue, 19 Nov 1996 22:14:32 GMT, merci...@sit.qc.ca wrote:
>Hi,

>i am building an application using the FTP component in the Internet
>Pack and try to distribute it. My ftoct.ocx is well registered with
>regsrv32.exe and I think that i have included all libraries that I
>need. I got this error : Variant does not reference an OLE object
> when transfering a file to a distant machine with the function
>FTP1.PutFile.  This error only appears on a PC that don't have a
>version of Delphi 2.0 installed. Here is the list of the dlls that i
>include in my installation script:

>compobj.dll
>ftpct.ocx
>indicdll.dll
>licenses.reg
>msvcrt20.dll
>msvcrt40.dll
>nmftpsn.dll
>nmocod.dll
>nmorenu.dll
>nmsckn.dll
>nmw3vwn.dll
>ole2.dll
>ole2.reg
>ole2conv.dll
>ole2disp.dll
>ole2nls.dll
>ole2prox.dll
>olepro32.dll
>olecli.dll
>olesvr.dll
>storage.dll
>wsock32.dll

The only files you need to include are the following:

msvcrt40.dll
olepro32.dll
regsvr32.exe
ctl3d32.dll
vb40032.dll
licenses.reg
nmftpsn.dll
nmsckn.dll
nmorenu.dll
nmocod.dll
msvcrt.dll        (this only needed in certain cases)
ftpct.ocx

once you have all of those copied to the windows/system directory you
need to run the following things

regedit /s licenses.reg
regsvr32 /s nmocod.dll
regsvr32 /s ftpct.ocx

They have to be done in this order or it wont work.  The demo of
installshield express professional from www.installshield.com works
great for doing all of this for you.

Hope this helps, if not, let me know.

Chris Randall
gt62...@prism.gatech.edu

Re:Error using Internet component ftpct.ocx : Variant does not reference an OLE object


Isn't InstallShield Express Delphi Edition supposed to autoregister this?
The first machine I installed an FTP app on -- a fairly clean one without
the Netmanage ISP-Microsoft ICP controls -- worked fine. A second machine
worked as well. But others haven't, raising a "Variant does not reference
an OLE object" exception in the DocOutput event.

--
Jonathan M. Bell
Senior Web Designer
The Knoxville News-Sentinel

Chris Randall <gt62...@prism.gatech.edu> wrote in article
<32924949.5571...@207.126.101.77>...

Quote
> once you have all of those copied to the windows/system directory you
> need to run the following things

> regedit /s licenses.reg
> regsvr32 /s nmocod.dll
> regsvr32 /s ftpct.ocx

Re:Error using Internet component ftpct.ocx : Variant does not reference an OLE object


Quote
On Tue, 19 Nov 1996 22:14:32 GMT, merci...@sit.qc.ca wrote:
>need. I got this error : Variant does not reference an OLE object
> when transfering a file to a distant machine with the function
>FTP1.PutFile.  This error only appears on a PC that don't have a
>version of Delphi 2.0 installed. Here is the list of the dlls that i
>include in my installation script:

Did you merge the Licenses.reg with the Registry?

If so, try moving all your OCX files to the END of the group, so that all
the Support DLLs are registered BEFORE the OCX. That's why it doesn't work.

Read Question 3 of the Delphi & InstallShield FAQ at
http://www.ellipse-data.com/ISX.FAQ.html

Happy coding

Stefan Paetow
CEO - ellipse data systems

-
=========================================================================
=  Any opinions here are my personal opinions, not those of my company  =
=          Home on the web: http://www.ellipse-data.com/                =
=     Maintainers of the South African Delphi Super Page Mirror at      =
=                    http://www.icon.co.za/~thelink/                    =
=========================================================================

Other Threads