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

  • Home
  • SEARCH
  • 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 282599
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T05:18:09+00:00 2026-05-12T05:18:09+00:00

OK, getting this to work properly was a nightmare, so I decided to put

  • 0

OK, getting this to work properly was a nightmare, so I decided to put this up for others.

Hosting the flash activex requires that you call OleCreate with an IStorage that implements SetClass (can be no-op), and a IOleClientSite that implements:

IOleInPlaceSiteEx:
    OnInPlaceActivateEx() (no-op)
    GetWindow()
    GetWindowContext()
IOleClientSite:
    ShowObject() (no-op)

However, any external resources the loaded swf accesses must be fully qualified, or it will fail with errors like:

Error #2032: Stream Error. URL: file://<relative path>

I’m posting what I figured out as an answer, tell me if this is not propper Stackettique.

  • 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-12T05:18:09+00:00Added an answer on May 12, 2026 at 5:18 am

    To fix this, your IOleClientSite must also implement IServiceProvider::QueryService() to return an IBindHost that implements CreateMoniker():

    return CreateURLMonikerEx(pmkBase, szName, ppmk, URL_MK_UNIFORM);
    

    Where pmkBase is a URL Moniker that has your base path, eg:

    OLECHAR szPath[MAX_PATH];
    int cch = ::GetCurrentDirectory(ARRAYSIZE(szPath), szPath);
    // GetCurrentDirectory does not finish with \, which causes the top directory to be removed :(
    // Also, error checking is for pansies.
    szPath[cch++] = L'\\';
    szPath[cch++] = 0;
    CreateURLMonikerEx(0, szPath, &pmkBase, URL_MK_UNIFORM);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having great problems with getting subactivities to work properly. I've read several tutorials
I've tried looking up other help for this problem but I'm just not getting
I will start by saying this is the first time I have done anything
I'm getting Flex error #2007, right when the app starts up. TypeError: Error #2007:
i have ComboBox controls with multiple columns as a Row Source in an Access
Is there a way to use the rails match method with a simple string,
We began a project using WebForms, and developed a somewhat complex portal system to
I'm trying to enable functionality in my web app to allow users to click
I need to create a custom look for the Google Maps info windows (straight-edge
I am doing an win form application. I am using a tree view and

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.