• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 294
  • Last Modified:

Using an ActiveX Control in a windowless DLL

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
nixonc
Asked:
nixonc
2 Solutions
 
migelCommented:
Hi!
You have to provide IOleControlSite for working with ActiveX.
for you IMHO you need to create hidden nonmodal dialog box containing ActiveX.
0
 
BeyondWuCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now