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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T00:20:29+00:00 2026-05-17T00:20:29+00:00

I have imported an ActiveX library into my project in Visual Studio 2008 using:

  • 0

I have imported an ActiveX library into my project in Visual Studio 2008 using:

#import "TeeChart8.ocx" named_guids

Now I would like to create objects exposed by the ActiveX library. However, I am having trouble understanding the API.

There are two files that were created after I built the project with the #import, a .tli file and a .tlh file.

In the .tlh file there is the following line:

_COM_SMARTPTR_TYPEDEF(ITChart, __uuidof(ITChart));

I can see ITChart when I open the ActiveX library TeeChart8.ocx in the ITypeLib Viewer (Oleview). Also, if I type ITChartPtr->Invoke into my code, intellisense shows me that there are a whole bunch of parameters that need to be filled.

Essentially, I would like to know how to instantiate an ActiveX object and where I have to look to get the information I need?

  • 1 1 Answer
  • 3 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-17T00:20:30+00:00Added an answer on May 17, 2026 at 12:20 am

    When it’s a simple COM object, you can use the following (assuming a coclass named TChart to go with the interface named ITChart):

    ITChartPtr chart(__uuidof(TChart));
    

    For more information on using the ITChartPtr type defined by the _COM_SMARTPTR_TYPEDEF macro in the .tlh file generated by the #import statement, see com_ptr_t.

    If it’s a full ActiveX control, there is more to it as Victor said in his answer.

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

Sidebar

Related Questions

I have imported an existing project built using Maven into my Eclipse workspace. Should
I have imported a JSF/Facelets project from SVN into Netbeans. Any change which I
I have imported the data into an database. Patient(pt_id,pt_name,pt_type,pt_loc) Now , I want to
I have imported our SVN repository into Mercurial and now we have entries for
So I have imported a project to netbeans. I am using jsf and xhtml
I have imported the ShockWave flash Activex Control in my Delphi project. I can
I have several WCF services that I have imported into a .Net4 Class Library.
I have imported Boost library in to a .dll that I am using. I
I have imported some PNG pictures into my project, and into InterfaceBuilder, I add
I have imported a file using the below command code='IN' exec import %s_tmp_file %

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.