 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Kalle Johansson Guest
|
Posted: Fri Sep 08, 2006 12:43 pm Post subject: Need help with deploying ActiveX |
|
|
Hi,
I need help to deploy an ActiveX app, on "pure" machines...
To get the basics working before releasing my client app, I made a really
simple "hello-world" ActiveX with BCB6. It runs OK on my local machine,
where my IDE is installed. Running the "Project-> Web Deploy" seems ok. I
get to the point where I have an CAB-file, INF-file and a HTM file to load.
But when trying this from another "pure" PC with no Borland IDE installed,
the ActiveX fails to load. When accessing the page first time, the page
triggers IE to prompt for an installation, and this seems to go through. I
believe I have switched off all the stop-features of IE in this case.
I have tried to load the web-page on another PC which also has the BCB6 IDE
installed, without touching the OCX in anyway beforehand, and of course it
worked in that environment.
In the Web deployment options I have tried with including the following
files in the project CAB-file:
vcl60.bpl, rtl60.bpl, BORLNDMM.dll, and cc3260mt.dll
which the latter dependency walker found out to be needed.
But there seems to be more needed.
I tried another scheme that puzzled me. I dropt the OCX into an Visual Basic
app, and tried that on the same client computer. That worked!! But the
web-page with the OCX did not...
Please help me Guys, I'm supposed to deploy this soon..
Best regards Kalle J. (Powel AB, Sweden) |
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Sat Sep 09, 2006 4:07 am Post subject: Re: Need help with deploying ActiveX |
|
|
"Kalle Johansson" <kalle.johansson (AT) powel (DOT) se> wrote in message
news:45011ed1 (AT) newsgroups (DOT) borland.com...
| Quote: | But when trying this from another "pure" PC with no Borland
IDE installed, the ActiveX fails to load.
|
What exactly do you see happen?
| Quote: | In the Web deployment options I have tried with including
the following files in the project CAB-file:
vcl60.bpl, rtl60.bpl, BORLNDMM.dll, and cc3260mt.dll
which the latter dependency walker found out to be needed.
|
You compiled the OCX with external dependancies enabled. If you do not want
them, then you have to recompile the OCX with the "Use dynamic RTL" and
"Build with runtime packages" options unchecked in the Project Options.
Gambit |
|
| Back to top |
|
 |
Kalle Johansson Guest
|
Posted: Mon Sep 11, 2006 6:07 pm Post subject: Re: Need help with deploying ActiveX |
|
|
Thank you Remy for your support,
but I'm embarrased to admit I solved the mystery myself, and it was really
easy...
I had the wrong path in the "Target URL (Virtual path of the deployed
OCX)" -entry in the Web deployment options...
I had put the entire URL to the OCX-file in there, i.e:
"tuben_w101/elinmonitor/" and what I could understand, the client IE tried
to load this (from the server) after it had installed it's own copy of the
OCX.
The installation worked which was reflected in the "C:\WINDOWS\Downloaded
Program Files" directory, where the installation appeared. Thats why the OCX
was working fine if you for instance tried it from a VB app...
So, by changing the path to "./" all worked fine. But I also packed the
whole lot in a single file by taking out the "Use dynamic RTL" and "Build
with runtime packages" options. That made it really neat and clean.
Could I ask you another question?
How do I pass arguments from the HTML environment to the code inside the
OCX?
I would like to prepare the HTML-page with a simple address reference, that
the OCX should use.
Something like <param name="monitor_server_adress" value="172.17.2.50"> for
instance.
Best Regards from Kalle J. in Sweden
"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> skrev i meddelandet
news:4501f924 (AT) newsgroups (DOT) borland.com...
| Quote: |
"Kalle Johansson" <kalle.johansson (AT) powel (DOT) se> wrote in message
news:45011ed1 (AT) newsgroups (DOT) borland.com...
But when trying this from another "pure" PC with no Borland
IDE installed, the ActiveX fails to load.
What exactly do you see happen?
In the Web deployment options I have tried with including
the following files in the project CAB-file:
vcl60.bpl, rtl60.bpl, BORLNDMM.dll, and cc3260mt.dll
which the latter dependency walker found out to be needed.
You compiled the OCX with external dependancies enabled. If you do not
want
them, then you have to recompile the OCX with the "Use dynamic RTL" and
"Build with runtime packages" options unchecked in the Project Options.
Gambit
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|