Click here to Skip to main content
15,912,329 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRE: Having some HWND trouble Pin
chrisd24-Jan-00 16:28
chrisd24-Jan-00 16:28 
GeneralLayered Window Impl on 98 Pin
Eric Crahen21-Jan-00 16:01
Eric Crahen21-Jan-00 16:01 
GeneralLayered Window Impl on 98 Pin
Eric Crahen21-Jan-00 16:01
Eric Crahen21-Jan-00 16:01 
GeneralCWnd & CDC Pin
Ivan A. Fotan21-Jan-00 1:20
Ivan A. Fotan21-Jan-00 1:20 
GeneralRE: CWnd & CDC Pin
Jesse Ezell5-Feb-00 19:17
Jesse Ezell5-Feb-00 19:17 
GeneralDialogs with ActiveX controls in MFC regular dlls Pin
Anonymous20-Jan-00 16:41
Anonymous20-Jan-00 16:41 
GeneralRE: Dialogs with ActiveX controls in MFC regular dlls Pin
DomDo24-Jan-00 22:48
DomDo24-Jan-00 22:48 
GeneralRegular dll & Active X control in a dialog Pin
Anonymous25-Jan-00 1:08
suss Anonymous25-Jan-00 1:08 
Actually the client part of the code creates an MFC worker thread which calls my exportred function.
I found a KB article in MSDN which said that I need to call OleInitialize(0) from my client. I did that also, but the dialog is still not displayed. Any ideas ?

Here is the pseudo-code,

UINT Thread Proc(LPVOID )
{
//exported function from regular dll which
//has a dialog with a Registered Active-X control
ShowDlg();


return 0;
}


void CMainFrame::OnViewTest()
{

AfxBeginThread(x,y);

}


The thing works fine if there is no thread involved.




==================
The original message was:

Did you call AfxOleInit() and AfxEnableControlContainer() ?
==================
The original message was:

I've been developing an MFC regular dll which exports a function which creates and displays a dialog. Everytthing works fine. However I get a problem when I
insert an Active -X control (eg: MS-Chart control) at design time and then display the dialog. In this case when I call my exported function the dialog is not displayed at all, and I noticed one thing DoModal returns IDCANCEL.
What do I do to solve this problem.
Thanks, Anyhelp would be highly appreciated.
GeneralFile-Open button in Word2000 Pin
Jeremy Davis19-Jan-00 3:59
Jeremy Davis19-Jan-00 3:59 
GeneralC/C++ guru's -- is this possible Pin
Brian Anderson18-Jan-00 9:32
Brian Anderson18-Jan-00 9:32 
GeneralRE: C/C++ guru's -- is this possible Pin
Tim Deveaux19-Jan-00 5:09
Tim Deveaux19-Jan-00 5:09 
GeneralRE: C/C++ guru's -- is this possible Pin
Peter A. Tolan29-Jan-00 21:15
suss Peter A. Tolan29-Jan-00 21:15 
QuestionHow to prevent resource renumbering? Pin
wwu18-Jan-00 4:58
wwu18-Jan-00 4:58 
GeneralMAPI Question - getting desperate! Pin
Jason Hattingh17-Jan-00 1:39
sussJason Hattingh17-Jan-00 1:39 
GeneralAdding a Tab Control to a toolbar Pin
Frank Deo16-Jan-00 11:52
Frank Deo16-Jan-00 11:52 
GeneralCOM & EventSink and IDispatch Pin
Member 351715-Jan-00 13:00
Member 351715-Jan-00 13:00 
GeneralRE: COM & EventSink and IDispatch Pin
Alex Gorev17-Jan-00 4:42
Alex Gorev17-Jan-00 4:42 
GeneralRE: RE: COM & EventSink and IDispatch Pin
Anonymous18-Jan-00 9:24
suss Anonymous18-Jan-00 9:24 
GeneralRE: COM & EventSink and IDispatch Pin
Alex Gorev17-Jan-00 4:54
Alex Gorev17-Jan-00 4:54 
GeneralClosing down a child window in OnInitialUpdate() Pin
Anonymous15-Jan-00 7:40
suss Anonymous15-Jan-00 7:40 
GeneralRE: Closing down a child window in OnInitialUpdate() Pin
Martin Speiser17-Jan-00 23:46
Martin Speiser17-Jan-00 23:46 
GeneralOnDraw how to get the invalidated area... Pin
braulio14-Jan-00 3:30
braulio14-Jan-00 3:30 
GeneralRE: OnDraw how to get the invalidated area... Pin
ChrisD14-Jan-00 17:35
suss ChrisD14-Jan-00 17:35 
GeneralGUI Toolkit Pin
frank13-Jan-00 8:29
frank13-Jan-00 8:29 
GeneralRE: GUI Toolkit Pin
Andrei Zenkovitch13-Jan-00 9:52
Andrei Zenkovitch13-Jan-00 9:52 

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.