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.
nixoncAsked:
Who is Participating?
 
migelConnect With a Mentor Commented:
Hi!
You have to provide IOleControlSite for working with ActiveX.
for you IMHO you need to create hidden nonmodal dialog box containing ActiveX.
0
 
BeyondWuConnect With a Mentor Commented:
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.

All Courses

From novice to tech pro — start learning today.