Board index » cppbuilder » How create Activex Control for Internet with C++Builder 5.0 Enterprice?

How create Activex Control for Internet with C++Builder 5.0 Enterprice?

I heve a Application in BCB5, an I need covert to Web enviroment. How create
Activex Control for Web enviroment?
 

Re:How create Activex Control for Internet with C++Builder 5.0 Enterprice?


Carlos Rivera <rivera...@hotmail.com> ???Y ?????
???Y??:3a7ab42a$1_1@dnews...

Quote
> I heve a Application in BCB5, an I need covert to Web enviroment. How
create
> Activex Control for Web enviroment?

1) File -> New -> ActiveX ->ActiveX Library
2) File -> New -> ActixeX ->Active Form

3) Place any components on ActiveForm,
    Make Event for them an so on ...
4) Compile Projects
5) Project -> Web Deploy Options
    (Use help if will be unsure in your options)
6) Project -> WebDeploy
    Builder Create html,inf and cab files.
7) Open html in browser

Re:How create Activex Control for Internet with C++Builder 5.0 Enterprice?


Thank you very much. After proving its recommendation, I ask to him. That
one is due to register in the Client, so that runs from any Browser? It is
necessary to register the OCX? I already did it but it did not work to me,
please can help me?

"Anatolix" <Anato...@narod.ru> escribi en el mensaje
news:95eum2$r2a$1@linux.mers.com...

Quote

> Carlos Rivera <rivera...@hotmail.com> ???Y ?????
> ???Y??:3a7ab42a$1_1@dnews...
> > I heve a Application in BCB5, an I need covert to Web enviroment. How
> create
> > Activex Control for Web enviroment?

> 1) File -> New -> ActiveX ->ActiveX Library
> 2) File -> New -> ActixeX ->Active Form

> 3) Place any components on ActiveForm,
>     Make Event for them an so on ...
> 4) Compile Projects
> 5) Project -> Web Deploy Options
>     (Use help if will be unsure in your options)
> 6) Project -> WebDeploy
>     Builder Create html,inf and cab files.
> 7) Open html in browser

Re:How create Activex Control for Internet with C++Builder 5.0 Enterprice?


Hi Carlos
When you compile the form it will be registered.

When you create the Active form there is a wizard that prompts you for some
info. Do NOT select "Make Control Licensed". If you do, the control will NOT
work in a browser!!! Only in the IDE.

Ciao
Tim

Quote
"Carlos Rivera" <rivera...@hotmail.com> wrote in message

news:3a7b042b_1@dnews...
Quote
> Thank you very much. After proving its recommendation, I ask to him. That
> one is due to register in the Client, so that runs from any Browser? It is
> necessary to register the OCX? I already did it but it did not work to me,
> please can help me?

> "Anatolix" <Anato...@narod.ru> escribi en el mensaje
> news:95eum2$r2a$1@linux.mers.com...

> > Carlos Rivera <rivera...@hotmail.com> ???Y ?????
> > ???Y??:3a7ab42a$1_1@dnews...
> > > I heve a Application in BCB5, an I need covert to Web enviroment. How
> > create
> > > Activex Control for Web enviroment?

> > 1) File -> New -> ActiveX ->ActiveX Library
> > 2) File -> New -> ActixeX ->Active Form

> > 3) Place any components on ActiveForm,
> >     Make Event for them an so on ...
> > 4) Compile Projects
> > 5) Project -> Web Deploy Options
> >     (Use help if will be unsure in your options)
> > 6) Project -> WebDeploy
> >     Builder Create html,inf and cab files.
> > 7) Open html in browser

Re:How create Activex Control for Internet with C++Builder 5.0 Enterprice?


Carlos Rivera <rivera...@hotmail.com> ???Y ?????
???Y??:3a7b042b_1@dnews...

Quote
> Thank you very much. After proving its recommendation, I ask to him. That
> one is due to register in the Client, so that runs from any Browser? It is
> necessary to register the OCX? I already did it but it did not work to me,
> please can help me?

Internet Explorer AutoRegister it .

You can Register it manually by executing command
RegSvr32 <ocx>
RegSvr32 placed in windows\system directory

Re:How create Activex Control for Internet with C++Builder 5.0 Enterprice?


 Hi All again!!. Perfect already it works in my Browser IE5.0 , also I
registered it in other PC (that had installed BCB5 and worked), but whenever
attempt to register the OCX in a PC that it does not have installed BCB5 is
not registered and shows the following error to me:

Load Library("C:\WINDOWS\SYSTEM\ACTIVE~1.OCX") failed.
GetLastError returns 0x00000485

Exists Some form of which any PC can use the Web Page that produced the
Wizard of BCB5, to work with " Activates Form ", with no need to have
installed BCB5? It is necessary to register some other DLL?
Please somebody can help me?

"Anatolix" <Anato...@narod.ru> escribi en el mensaje
news:3a7c1969_2@dnews...

Quote

> Carlos Rivera <rivera...@hotmail.com> ???Y ?????
> ???Y??:3a7b042b_1@dnews...
> > Thank you very much. After proving its recommendation, I ask to him.
That
> > one is due to register in the Client, so that runs from any Browser? It
is
> > necessary to register the OCX? I already did it but it did not work to
me,
> > please can help me?

> Internet Explorer AutoRegister it .

> You can Register it manually by executing command
> RegSvr32 <ocx>
> RegSvr32 placed in windows\system directory

Re:How create Activex Control for Internet with C++Builder 5.0 Enterprice?


Carlos Rivera <rivera...@hotmail.com> ???Y ?????
???Y??:3a7ebe83$1_1@dnews...

Quote
> Exists Some form of which any PC can use the Web Page that produced the
> Wizard of BCB5, to work with " Activates Form ", with no need to have
> installed BCB5? It is necessary to register some other DLL?
> Please somebody can help me?

Project->Options->Linker  UseDynamicRtl=false
Project->Options->Packages  BuildWithRuntimePackages=false
then your ocx will not use any external(non standart) dll/bpl

Another way is to deploy dll/bpl with ocx
use tdump.exe on your ocx and see which dll is
used in import section(dont be confused with using
of standart dll(kernel32.dll and so on), you should not deploy it
with ocx)

Re:How create Activex Control for Internet with C++Builder 5.0 Enterprice?


Thank you very much. It worked perfectly. Of course the size of file " OCX "
increased of 730K to 1.14K. There is no form to make it but small?.
 It is possible to do " Plug-in ", with this " Activates Form ", so that the
clients lower it, and she is registered automatically?

Thanks beforehand.

"Anatolix" <Anato...@narod.ru> escribi en el mensaje
news:3a7ec4f8_2@dnews...

Quote

> Carlos Rivera <rivera...@hotmail.com> ???Y ?????
> ???Y??:3a7ebe83$1_1@dnews...
> > Exists Some form of which any PC can use the Web Page that produced the
> > Wizard of BCB5, to work with " Activates Form ", with no need to have
> > installed BCB5? It is necessary to register some other DLL?
> > Please somebody can help me?

> Project->Options->Linker  UseDynamicRtl=false
> Project->Options->Packages  BuildWithRuntimePackages=false
> then your ocx will not use any external(non standart) dll/bpl

> Another way is to deploy dll/bpl with ocx
> use tdump.exe on your ocx and see which dll is
> used in import section(dont be confused with using
> of standart dll(kernel32.dll and so on), you should not deploy it
> with ocx)

Re:How create Activex Control for Internet with C++Builder 5.0 Enterprice?


Carlos Rivera <rivera...@hotmail.com> ???Y ?????
???Y??:3a7eccf1$1_1@dnews...

Quote
> Thank you very much. It worked perfectly. Of course the size of file " OCX
"
> increased of 730K to 1.14K. There is no form to make it but small?.
>  It is possible to do " Plug-in ", with this " Activates Form ", so that
the
> clients lower it, and she is registered automatically?

Plug-ins? That you mean ?
i think User can register ocx from cab file by right-clicking
on inf file(not sure). Internet Explorer AutoRegister it. Also you can
take some install-maker(InstallShield or Wise Install Master)
they can register ocx

Re:How create Activex Control for Internet with C++Builder 5.0 Enterprice?


Ok, that facilitates the registry of the OCX, but the size of the File, can
be optimized?
Thanks for its patience.

"Anatolix" <Anato...@narod.ru> escribi en el mensaje
news:3a7ed15e_1@dnews...

Quote

> Carlos Rivera <rivera...@hotmail.com> ???Y ?????
> ???Y??:3a7eccf1$1_1@dnews...
> > Thank you very much. It worked perfectly. Of course the size of file "
OCX
> "
> > increased of 730K to 1.14K. There is no form to make it but small?.
> >  It is possible to do " Plug-in ", with this " Activates Form ", so that
> the
> > clients lower it, and she is registered automatically?

> Plug-ins? That you mean ?
> i think User can register ocx from cab file by right-clicking
> on inf file(not sure). Internet Explorer AutoRegister it. Also you can
> take some install-maker(InstallShield or Wise Install Master)
> they can register ocx

Re:How create Activex Control for Internet with C++Builder 5.0 Enterprice?


Carlos Rivera <rivera...@hotmail.com> ???Y ?????
???Y??:3a803d08$1_1@dnews...

Quote
> Thanks again!! , the ASPACK reduced the OCX of 1.4K to 368K.
> Another small question (it excuses the annoyance). The application that I
am
> developing is for the IE5, and a Web server IIS, I am doing a part in the
> client with the " OCX of BCB5 ", and another one in the Server, Which
> recommends to me, to make a OCX with BCB5 for the server who communicates
> with the OCX of the client, or to do the part of the server with  CGI
using
> BCB5. If I use " OCX with BCB5 ", as a " OCX " in the client with one in
the
> server communicates?

I never use IIS so i dont know.
So next advices is only theory.

I think it depends on task.
if you have small number of  long request cgi is OK.
if you have large number of short request OCX
IMHO will be better.

Another problem: if you migrate
into another web server (and may be another OS)
 your OCX will be useless.

Also
How you want to communicate with OCX on server?
IIS provide some service for it? If not and you will use direct
socket connection you can have some problems in future
because of FireWalls. It can block communication
on most (non-standart) port.

Re:How create Activex Control for Internet with C++Builder 5.0 Enterprice?


Thanks once again!
 How I can put parameters to him the OCX that I did with BCB5?
 Can be captured of some form the answer produced in a OCX?
where it is left that answer?

"Anatolix" <Anato...@narod.ru> escribi en el mensaje
news:3a816d88_2@dnews...

Quote

> Carlos Rivera <rivera...@hotmail.com> ???Y ?????
> ???Y??:3a803d08$1_1@dnews...
> > Thanks again!! , the ASPACK reduced the OCX of 1.4K to 368K.
> > Another small question (it excuses the annoyance). The application that
I
> am
> > developing is for the IE5, and a Web server IIS, I am doing a part in
the
> > client with the " OCX of BCB5 ", and another one in the Server, Which
> > recommends to me, to make a OCX with BCB5 for the server who
communicates
> > with the OCX of the client, or to do the part of the server with  CGI
> using
> > BCB5. If I use " OCX with BCB5 ", as a " OCX " in the client with one in
> the
> > server communicates?

> I never use IIS so i dont know.
> So next advices is only theory.

> I think it depends on task.
> if you have small number of  long request cgi is OK.
> if you have large number of short request OCX
> IMHO will be better.

> Another problem: if you migrate
> into another web server (and may be another OS)
>  your OCX will be useless.

> Also
> How you want to communicate with OCX on server?
> IIS provide some service for it? If not and you will use direct
> socket connection you can have some problems in future
> because of FireWalls. It can block communication
> on most (non-standart) port.

Re:How create Activex Control for Internet with C++Builder 5.0 Enterprice?


 How I can put parameters to him the OCX that I did with BCB5?
 Can be captured of some form the answer produced in a OCX?
where it is left that answer?

Imho it can be done with JScript/VBScript, but i dont know how.
Another way to pass parameters in OBJECT tag of html
People says you need interface IPropertyBag for it.

Also you can direct connections to WebServer
Use GET method to cgi to get data, and
POST method to put. You also can make
connection on any port (not to www server).
and exchange data with any program(also with
you own program) but if you work in internet
(not intranet) FireWalls can block you connections

P.S. Also check please settings of your news
client. I have problems when answer on you
message(outlook throw bug). (You can see what
i answer below my own posts)
May be other people also have troubles when
answer you messages.

Re:How create Activex Control for Internet with C++Builder 5.0 Enterprice?


Hi, I feel It I believe that my PC has problems, I am going to restart
Windows soon! (I say it by the subject of the groups of the news)
    I already managed to make a call from the cgi --> OCX, now the question
is if the OCX produces an answer (a assembly of characters ASCII), As I can
communicate now with the cgi. It is necessary to program in the OCX " socket
" to be able to make this?
    There is form of which the OCX sends the replaced one, doing a call to a
specific cgi in the server (with its respective parameters)?
 Can be used some component (HTTP Web Dispacher, for example), to connect
itself to the server from the OCX? Thanks for everything!

"Anatolix" <Anato...@narod.ru> escribi en el mensaje
news:3a87ee24_1@dnews...

Quote
> How I can put parameters to him the OCX that I did with BCB5?
>  Can be captured of some form the answer produced in a OCX?
> where it is left that answer?

> Imho it can be done with JScript/VBScript, but i dont know how.
> Another way to pass parameters in OBJECT tag of html
> People says you need interface IPropertyBag for it.

> Also you can direct connections to WebServer
> Use GET method to cgi to get data, and
> POST method to put. You also can make
> connection on any port (not to www server).
> and exchange data with any program(also with
> you own program) but if you work in internet
> (not intranet) FireWalls can block you connections

> P.S. Also check please settings of your news
> client. I have problems when answer on you
> message(outlook throw bug). (You can see what
> i answer below my own posts)
> May be other people also have troubles when
> answer you messages.

Other Threads