Home > Software engineering >  VC6 ActiveX control can not display in the procedure of MFC single document
VC6 ActiveX control can not display in the procedure of MFC single document

Time:11-02

took over a previous stay program, written in VC6, based on the MFC single document application, the View class USES a CFormVIew base class, is the dialog, then the different functions of interface is through the MainFrame menu command to switch the new different formview dialog box,
so the question I'm here, I want to add iocomp formview ActiveX controls, and shows good in resource view, compilation is no problem, but don't run, according to the is really touched not pure,
Iocomp controls also no problem, I write my own program can display properly,

CodePudding user response:

Whether something uninitialized? The code to see

CodePudding user response:

reference 1st floor jason_wentzel response:
something uninitialized? The code to see

Need to see what code? Activex controls need to be initialized? Is a control, set the properties, associated with a control variable,

CodePudding user response:

Such as the need to initialize the com interface or something?

CodePudding user response:

MSDN98_1. ISO http://pan.baidu.com/s/1dDF41ix, MSDN98_2. ISO http://pan.baidu.com/s/1bnGo0Vl

To download and install MSDN98
Again when MSDN98 search COM Tutorial "Samples"

CodePudding user response:

When the application is initialized coinit.. Under a try?
  • Related