| View previous topic :: View next topic |
| Author |
Message |
Mark Harrington Guest
|
Posted: Sat Jun 04, 2005 10:59 pm Post subject: Help with CppWebbrowser into personell edition |
|
|
Hi i dont really know to much about this so please forgive me I am trying to
learn how to import the web browser contol into C++ builder and have
follwoed instructions as per learning C++ Builder version 3 however I land
up with two Icons on the active x pallette which indicate
CppWebbrowser_V1 and CppWebbrowser which one is right how do i begin to use
this and how do i remove it At the moment i cant get this to work at all
code examples + instructions would help me no end
Thanks Mark
|
|
| Back to top |
|
 |
Hans Galema Guest
|
Posted: Mon Jun 06, 2005 11:20 am Post subject: Re: Help with CppWebbrowser into personell edition |
|
|
Mark Harrington wrote:
| Quote: | Hi i dont really know to much about this so please forgive me I am trying to
learn how to import the web browser contol into C++ builder and have
follwoed instructions as per learning C++ Builder version 3 however I land
up with two Icons on the active x pallette which indicate
CppWebbrowser_V1 and CppWebbrowser which one is right how do i begin to use
this and how do i remove it At the moment i cant get this to work at all
code examples + instructions would help me no end
|
Do you mean by "learning C++ Builder version 3":
"Internet Explorer as an ActiveX Control" page 786 of
Sams Tach Yourself Borland C++Builder in 21 days ?
So you find them on a palette but you cannot place them on a TForm ?
Does a program compile if you could place a component on a TForm ?
Hans.
|
|
| Back to top |
|
 |
Hans Galema Guest
|
Posted: Mon Jun 06, 2005 8:46 pm Post subject: Re: Hi Yes Builder3 But I have version 6 |
|
|
Mark Harrington wrote:
| Quote: | .... You can resize the object at design time
but it wont compile. What I get is unresolved external errors which
indicates that it cant see the methods IE Navigate Navigate2 etc
|
So it does compile. But it does not link as what you get is a linker error.
You have to add something to your project. As the book states that the
headerfile SHDocVw_TLB.h is generated tehn the bodies for
those function should be somewher in a cpp file or a lib or a package
for it. Add that.
Please never change the subject of a thread. Google will not
see thje posts as one thread then.
Hans.
|
|
| Back to top |
|
 |
Hans Galema Guest
|
Posted: Mon Jun 06, 2005 8:49 pm Post subject: Re: Hi Yes Builder3 But I have version 6 |
|
|
Mark Harrington wrote:
Well you have some info in the subject that is not in the body. So I
overlooked it. Please never refer to the subject. Place all info in
the messagebody.
If you have builder6 then there is already a TCppWebBrowser component
on the Internet palette. Oh.. or isn't there one in the Personal edition ?
Hans.
|
|
| Back to top |
|
 |
Hans Galema Guest
|
Posted: Tue Jun 07, 2005 6:07 am Post subject: Re: Hi Yes Builder3 But I have version 6 |
|
|
Mark Harrington wrote:
| Quote: | [Linker Error] Unresolved external '
__fastcall Shdocvw_tlb::TCppSearchAssistantOC::BeforeDestruction()'
|
Well see: Shdocvw_tlb. That is exactly where I warned you for.
During compiling only Shdocvw_tlb.h is needed. But at linktime
the linker needs a lib or cpp file.
| Quote: | Unit 1 which comprises the form + Webbrouser control with no additional code
after droping the active x object onto the form looks like this which is
what i would expect
|
Yes. that is all ok.
| Quote: | #pragma link "SHDocVw_OCX"
|
Look for files SHDocVw_OCX on your harddrive. One of them has
to be added to your project.
| Quote: | #include "SHDocVw_OCX.h"
|
Apparently the h file is there.
The rest op that looks ok. So now add the lib or so.
Hans.
|
|
| Back to top |
|
 |
Mark Harrington Guest
|
Posted: Tue Jun 07, 2005 10:27 am Post subject: Re: Hi Yes Builder3 But I have version 6 |
|
|
Hi Hans
Thank you very much for your help I obviously need to go away and learn a
bit about Library files
By the way for interest I don't really know if I'm allowed to do this but I
have found an excellent website which is absolutely free and has all manor
of tutorials on it for beginners to c++ pearl java and many other languages
and topics may I place this link up for people to view in the discussion
group I'm not sure about the ruling on this
Cheers
Mark
"Hans Galema" <notused (AT) notused (DOT) nl> wrote
| Quote: | Mark Harrington wrote:
[Linker Error] Unresolved external '
__fastcall Shdocvw_tlb::TCppSearchAssistantOC::BeforeDestruction()'
Well see: Shdocvw_tlb. That is exactly where I warned you for.
During compiling only Shdocvw_tlb.h is needed. But at linktime
the linker needs a lib or cpp file.
Unit 1 which comprises the form + Webbrouser control with no additional
code after droping the active x object onto the form looks like this
which is what i would expect
Yes. that is all ok.
#pragma link "SHDocVw_OCX"
Look for files SHDocVw_OCX on your harddrive. One of them has
to be added to your project.
#include "SHDocVw_OCX.h"
Apparently the h file is there.
The rest op that looks ok. So now add the lib or so.
Hans.
|
|
|
| Back to top |
|
 |
Hans Galema Guest
|
Posted: Tue Jun 07, 2005 1:29 pm Post subject: Re: Hi Yes Builder3 But I have version 6 |
|
|
Mark Harrington wrote:
| Quote: | By the way for interest I don't really know if I'm allowed to do this but I
have found an excellent website which is absolutely free and has all manor
of tutorials on it for beginners to c++ pearl java and many other languages
and topics may I place this link up for people to view in the discussion
group I'm not sure about the ruling on this
|
You can refer to this link here if you want. If you want to start a
discussion then better in borland.public.cppbuilder.non-technical.
Be sure to add a bold statement to get nice reactions. <g>.
Please trim quotes. For all the rules see the Newsgroup Guidelines
and Newsgroups Etiquette at http://info.borland.com/newsgroups
Hans.
|
|
| Back to top |
|
 |
|