Solved

Using an ActiveX Control in a windowless DLL

Posted on 2002-06-23
5
250 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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Decoding 32 bit binary streams 6 42
Windows Drag & Drop Location 2 100
format the code in java 6 93
SQUD PROXY SERVER, UNIX, SLL/HTTPS 5 94
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
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.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

773 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