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 7661487
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T13:36:18+00:00 2026-05-31T13:36:18+00:00

I don’t have any previous experience creating ActiveX-Controls. Information about the topic thats not

  • 0

I don’t have any previous experience creating ActiveX-Controls. Information about the topic thats not older than 2008 is very scarce, is outdated and often doesn’t help at all.

What I have to do:
Create a website that displays detailed client system information (stuff like available HDD space and exactly what CPU and so on). All this must be possible without downloading/installing anything (must run on a fresh install of XP SP2). They consider ActiveX as not downloading something so that seems to be the only way to solve this problem. I am well aware of how stupid this is to cross the border between browser/client and how unsecure ActiveX is, but I don’t have a say in this.

What I came up with:
Write an invisible ActiveX control that provides functions that are to be called by javascript and return a string. All the control does is when a function is called look up the requested information via WMI and return it as a string back to javascript that then writes the result on the page (so theres no need for the control to influence the web page).

My actual question:
Whats the easiest way to accomplish this? I know C#, Java, C++. C# and Java wouldn’t work because they require stuff to be downloaded/installed (.NET/JVM). C++ it seems to be very confusing writing an ActiveX control via MFC. I found this but it seems overly complex with all the GUI and gif stuff. It doesn’t show how to just expose functions to be used via javascript. Anyone know a tutorial for that?
Another option would be to use VB but it seems VS2010 doesn’t offer a template for creating ActiveX controls.

So..whats the simplest way of exposing functions to be used by javascript in C++ or maybe VB?

  • 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-31T13:36:18+00:00Added an answer on May 31, 2026 at 1:36 pm

    The codeproject link that you point out is a very good example for creating an activex control. Remeber even in c++, the browser will try to download and install the ActiveX control for the first time.

    You can create an MFC ActiveX control and comment the code in OnPaint. Then you can create function in your idl file like

    dispinterface _DCSDC_Sample
        {
            properties:
            methods:
    
                [id(DISPID_ABOUTBOX)] void AboutBox();
                [id(1)] bool SendData([in]BSTR portName,[in] VARIANT* Buffer, LONG dwSize);
        };
    

    and in the class file that derives the COleControl. Then you can implement your function in your cpp file.

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

Sidebar

Related Questions

I don't have any experience in updating a Rails app and when I google
(Don't know if this is strictly on-topic, but I don't see any better Stack
I don't have much PHP experience and I want to know how to best
(Don't care about the version. IE or not IE.)
Don't you hate it when you have class Foobar { public: Something& getSomething(int index)
Don't dismiss this as a newbie question! It's not, I'm not, I've tried everything,
I don't understand where the extra bits are coming from in this article about
Don't be afraid to use any technical jargon or low-level explanations for things, please.
Don't know why people do not practice AJAX implementation for authentication systems. Is it
Don't they both have to convert to machine code at some point to execute

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.