ActiveX + Html + Borland C++ Builder 4

Posted on 2001-08-30
Last Modified: 2013-11-18
I have a Html document witch call a activeX Form created with Borland C++ Builder 4.
I want to give some parameters to the activeX in the Html document and I want the activex get the information of these parameters.
Can someone help me to solve my problems?

Thanks a lot for your help!
Question by:ryuken
  • 3
  • 3
LVL 14

Expert Comment

ID: 6439962
As long as the Parameter you are interested in is also an ActiveX Property
of the ActiveForm you should be able to add the Parameter to the OBJECT tag, like you would WIDTH and HEIGHT.

Normally COM requires you to implement an IPesistPropertyBag interface to make this work.
How? See Alex Bakaev's replies to same Q in If next link dasn't work, make
search for IPersistPropertyBag.


Author Comment

ID: 6444232
Hello Alex!

Thanks for your help!
I have implemented the IPesistPropertyBag interface in my ActiveX.
But when I give a parameter from the html document to the AxtiveX, the value I get is blank.
I search on how I can get the value of the parameter, but I find nothing interisting!

Could you have any clue to help me, please?

Thanks very much!
LVL 14

Expert Comment

ID: 6447369
Next is a bit other code , as in Alex Bakaev(but very close). Check out names in your  PARAM statement in Html
This evening I had to research another issue that required that I put
together an ActiveForm sample. I took the opportunity to put together
something illustrating PARAM NAME VALUE support at the same time. Here are
some notes:

(a) Add IPersistPropertyBagImpl to the list base classes:

class ATL_NO_VTABLE TActiveFormXImpl:
VCLCONTROL_IMPL(TActiveFormXImpl, ActiveFormX, TActiveFormX, IActiveFormX,
public IPersistPropertyBagImpl<TActiveFormXImpl>

(b) Add IPersistPropertyBag to your COM_MAP:


(c) Add a PROP_ENTRY macro to the PROPERTY_MAP for each property your want
accessible via the PARAM/NAME/VALUE tag, specifying the property name, its
DISPID and the CLSID of your CoClass. For example:

// PROP_PAGE(CLSID_ActiveFormXPage)

To test the above, I used the following tag in an .HTML file:


<PARAM NAME="Caption" VALUE="Caption set via PARAM NAME tags">

I also put a button on my form that displays the Caption property when
clicked - to confirm that indeed the "Caption set via PARAM NAME tags" did
work. (NOTE: You'll get additional warnings from IE because the control is
also being initialized).

I hope the above helps. I'll be happy to .zip up the sample and forward you
a copy if you're interested.

Jean-Marie Babet
By your description seems me problem in next place
<PARAM NAME="Caption" VALUE="Caption set via PARAM NAME tags"> --> all right, and may be you simple forget

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

LVL 14

Accepted Solution

AlexVirochovsky earned 100 total points
ID: 6500370
I hope, you solved problem with help of my comments.

Author Comment

ID: 6500406
Hello Alex!

Thank you very much for your help!
I am sorry to answer after a few days.
But I have a lot of work to do.
I will try your solution and tell you if it works!

If I am too long to answer, I will give you the points for your help!

Bye bye!

Author Comment

ID: 6511845
Hello Alex!

I am sorry.I don't have the time to test your solution.
But I think you give me the good path to resolve it.

Thanks a lot!
See you later!

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Redirecting GET as POST 8 41
Visual c++ and text files 7 55
C Language combined operators 28 102
White board coding practice 3 61
Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
Before we dive into the marketing strategies involved with creating an effective homepage, it’s crucial that EE members know what a homepage is. In essence, a homepage is the introductory, or default page, of a website that typically highlights the …
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now