Solved

Using an ActiveX Control in a windowless DLL

Posted on 2002-06-23
5
241 Views
Last Modified: 2013-11-20
I try to invoke funcitons of AcitveX control in a DLL. However, I found out that the control cannot be initialized normally (m_pCtrlSite=NULL). Therefore, I got "Assertion Failure" (winocc.cpp line 345) on calling the ActiveX function. Also, I don't have any dialog to show. Can I do it if I do not any dialog? What is normal procedure to initialize the control?

Since I am new in VC++, I will be happy if you can tell a bit more on the detail.
0
Comment
Question by:nixonc
5 Comments
 
LVL 12

Accepted Solution

by:
migel earned 100 total points
ID: 7102878
Hi!
You have to provide IOleControlSite for working with ActiveX.
for you IMHO you need to create hidden nonmodal dialog box containing ActiveX.
0
 
LVL 9

Assisted Solution

by:BeyondWu
BeyondWu earned 100 total points
ID: 7109510
migel is right, and if the fnctions which you want to use also in another interface, I think you can use it with #import directive.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

758 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

20 Experts available now in Live!

Get 1:1 Help Now