Solved

Using an ActiveX Control in a windowless DLL

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Hibernate methods 2 68
twoTwo  challenge 35 92
MaxSpan challenge 9 79
JQuery serialize and unserialize 8 48
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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.
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…

914 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

14 Experts available now in Live!

Get 1:1 Help Now