Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 816621
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T01:51:46+00:00 2026-05-15T01:51:46+00:00

I have an MFC ActiveX control embedded in a web page. Some of the

  • 0

I have an MFC ActiveX control embedded in a web page. Some of the parameters for this control are very large. I don’t know what these values will be at compile time, but I do know that once retrieved, they will almost certainly never change.

Currently, I embed the parameters like so:

<object name="MyActiveX">
  <param name="param" value="<%= GetData() %>" />
</object>

I want to do something like this:

<object name="MyActiveX">
  <param name="param" value="content/data" valuetype="ref" />
</object>

The idea is that the browser would retrieve the resource from the web server and pass it on to the control. The browser’s own caching would then take care of the unneccesary downloads. Unfortunately, ref parameters don’t work like this. The browser just passes the url along to the control (which strikes me as utterly useless, but I digress).

So, is there some way I can make this work? Alternatively, is there an easy way in MFC to instruct the control’s host container to retrieve a URI identified resource? Any better ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T01:51:47+00:00Added an answer on May 15, 2026 at 1:51 am

    Implement the IPersistStream or IPersistStreamInit interface then you can specify content with the object’s data attribute as in: <object clsid="XXXX" data="mydata.bin"></object>. Internet Explorer will download the file referenced by the data attribute hand it to you via its IPersistStream::Load interface. ATL has default implementations for these interfaces which will populate your control’s properties, almost certainly so does MFC.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Short version : How can an MFC ActiveX control loaded into a web page
I have created an activex control using mfc and added the control to a
I have developed an MFC ActiveX control and created necessary cab files and inf
I have an MFC application that uses an ancient (circa 1999) third-party ActiveX control.
So i have the misfortune of embedding this proprietary ActiveX control we created into
I have embedded an Adobe Reader ActiveX control as a child window in an
In my C++ MFC application I have an ActiveX control on a form. At
I have a Windows native C++/Win32/MFC dialog app. I'm using the IE ActiveX control
I have an MFC application, which i don't want to be closed during the
I have an application (written in C++ with MFC, but I don't think that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.