Click here to Skip to main content
16,010,351 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: C++ Certification question Pin
Christian Graus11-Jul-01 13:07
protectorChristian Graus11-Jul-01 13:07 
GeneralRe: C++ Certification question Pin
11-Jul-01 15:33
suss11-Jul-01 15:33 
GeneralDialog Box sizing Pin
11-Jul-01 10:18
suss11-Jul-01 10:18 
GeneralRe: Dialog Box sizing Pin
Jake Palmer11-Jul-01 11:12
Jake Palmer11-Jul-01 11:12 
GeneralRe: Dialog Box sizing Pin
Michael Dunn11-Jul-01 19:56
sitebuilderMichael Dunn11-Jul-01 19:56 
QuestionPossible to use OCX from within a DLL??? Pin
DVryce11-Jul-01 9:48
DVryce11-Jul-01 9:48 
AnswerRe: Possible to use OCX from within a DLL??? Pin
Carlos Antollini11-Jul-01 10:19
Carlos Antollini11-Jul-01 10:19 
GeneralRe: Possible to use OCX from within a DLL??? Pin
DVryce12-Jul-01 2:49
DVryce12-Jul-01 2:49 
I am making sure to call AfxOleInit() and AfxEnableControlContainer() in my App's InitInstance. Then in the constructor for my dialog I create a new object of the ActiveX control type which I then call the Create() member on in the dialog's OnInitDialog() function. For some reason after the call to create the control object's HWND is still NULL. It keeps failing on an assertion error in "Winocc.cpp" which I think is a result of trying to call a method on this object with a NULL hwnd.

The error as reported by the VC++ debug window is as follows:

Loaded 'C:\WINNT\system32\OLE32.DLL', no matching symbolic information found.
CoCreateInstance of OLE control {B2D168E0-5597-101D-843A-DA16297B4C87} failed.
>>> Result code: 0x800401f0
>>> Is the control is properly registered?

I'm pretty sure the control is registered however as I ran a successful call to regsvr32 on it.
GeneralRe: Possible to use OCX from within a DLL??? Pin
DVryce12-Jul-01 4:11
DVryce12-Jul-01 4:11 
GeneralPl help:Windows Enumeration Pin
sriram_mr11-Jul-01 9:46
sriram_mr11-Jul-01 9:46 
GeneralBooks about MFC Pin
11-Jul-01 9:40
suss11-Jul-01 9:40 
GeneralRe: Books about MFC Pin
Ben Burnett11-Jul-01 9:52
Ben Burnett11-Jul-01 9:52 
GeneralRe: Books about MFC Pin
Michael Dunn11-Jul-01 9:57
sitebuilderMichael Dunn11-Jul-01 9:57 
GeneralRe: Books about MFC Pin
Christian Graus11-Jul-01 13:11
protectorChristian Graus11-Jul-01 13:11 
GeneralHiding the caption bar's close box of a wizard. Pin
CMFC6.0VS.NETUser11-Jul-01 9:30
CMFC6.0VS.NETUser11-Jul-01 9:30 
GeneralRe: Hiding the caption bar's close box of a wizard. Pin
Bret Faller11-Jul-01 13:44
Bret Faller11-Jul-01 13:44 
GeneralRe: Hiding the caption bar's close box of a wizard. Pin
CMFC6.0VS.NETUser12-Jul-01 4:32
CMFC6.0VS.NETUser12-Jul-01 4:32 
GeneralRe: Hiding the caption bar's close box of a wizard. Pin
CMFC6.0VS.NETUser12-Jul-01 7:52
CMFC6.0VS.NETUser12-Jul-01 7:52 
Generalsimple polymorphism error Pin
Jake Palmer11-Jul-01 9:21
Jake Palmer11-Jul-01 9:21 
GeneralRe: simple polymorphism error Pin
Michael Dunn11-Jul-01 9:36
sitebuilderMichael Dunn11-Jul-01 9:36 
GeneralRe: simple polymorphism error Pin
Jake Palmer11-Jul-01 11:01
Jake Palmer11-Jul-01 11:01 
GeneralATL (BSTR) to VB Pin
Dan Madden11-Jul-01 9:19
Dan Madden11-Jul-01 9:19 
GeneralRe: ATL (BSTR) to VB Pin
Michael Dunn11-Jul-01 9:32
sitebuilderMichael Dunn11-Jul-01 9:32 
GeneralRe: ATL (BSTR) to VB Pin
Dan Madden11-Jul-01 10:17
Dan Madden11-Jul-01 10:17 
GeneralCapturing DOS output Pin
11-Jul-01 9:09
suss11-Jul-01 9:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.