Click here to Skip to main content
15,894,343 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionMultiple instance of com object Pin
ayol1212215-Oct-06 8:24
ayol1212215-Oct-06 8:24 
AnswerRe: Multiple instance of com object Pin
tanvon malik15-Oct-06 14:39
tanvon malik15-Oct-06 14:39 
GeneralRe: Multiple instance of com object Pin
ayol1212216-Oct-06 6:56
ayol1212216-Oct-06 6:56 
QuestionPolymorphic classes Pin
Waldermort15-Oct-06 6:31
Waldermort15-Oct-06 6:31 
AnswerRe: Polymorphic classes Pin
Gary R. Wheeler15-Oct-06 6:44
Gary R. Wheeler15-Oct-06 6:44 
GeneralRe: Polymorphic classes Pin
Waldermort15-Oct-06 14:21
Waldermort15-Oct-06 14:21 
AnswerRe: Polymorphic classes Pin
Jörgen Sigvardsson15-Oct-06 8:45
Jörgen Sigvardsson15-Oct-06 8:45 
QuestionMFC ActiveX built with /CLR fails to load Pin
DnKostya15-Oct-06 5:50
DnKostya15-Oct-06 5:50 
Hello.
We need to use UserControl components written in C# in our existing MFC application. The components need to be inserted into existing ActiveX controls (written using MFC and ATL as separate OCX files). The recommended way is to turn on the /CLR switch and use CWinFormsControl class. Using this approach I was able to insert a simple test component into one of our ActiveX controls and successfully build the OCX in Debug mode, however when running the application I noticed that when the app tries to create an instance of the modified ActiveX control it fails with the following error: ClassFactory cannot supply requested class. The same load failure occurs even when I completely removed the test component from the ActiveX control so it seems that the failure is caused by building with the /CLR switch. I also tried to build the ActiveX's StdAfx.cpp and the cpp file containing code for the ActiveX DLL (such as InitInstance and DLLRegisterServer) without the /CLR switch but it didn't help. The control is registered properly and w/o errors (at least that's what regsvr32 shows).

We use Visual Studio 2005, any help will be greatly appreciated. Thank you.
AnswerRe: MFC ActiveX built with /CLR fails to load Pin
sps-itsec4615-Dec-06 2:05
sps-itsec4615-Dec-06 2:05 
QuestionHow to Separate Interface and concrete class to 2 DLLs in C++ Pin
Julia115-Oct-06 4:02
Julia115-Oct-06 4:02 
AnswerRe: How to Separate Interface and concrete class to 2 DLLs in C++ Pin
Gary R. Wheeler15-Oct-06 6:38
Gary R. Wheeler15-Oct-06 6:38 
QuestionRe: How to Separate Interface and concrete class to 2 DLLs in C++ Pin
Julia116-Oct-06 3:19
Julia116-Oct-06 3:19 
AnswerRe: How to Separate Interface and concrete class to 2 DLLs in C++ Pin
Gary R. Wheeler16-Oct-06 13:02
Gary R. Wheeler16-Oct-06 13:02 
QuestionHow do you use combo boxes with a Doc View SDI Application Pin
D_code_writer15-Oct-06 3:10
D_code_writer15-Oct-06 3:10 
AnswerRe: How do you use combo boxes with a Doc View SDI Application Pin
cje16-Oct-06 4:37
cje16-Oct-06 4:37 
AnswerRe: How do you use combo boxes with a Doc View SDI Application Pin
Mark Salsbery16-Oct-06 7:32
Mark Salsbery16-Oct-06 7:32 
AnswerRe: How do you use combo boxes with a Doc View SDI Application Pin
D_code_writer16-Oct-06 21:54
D_code_writer16-Oct-06 21:54 
GeneralRe: How do you use combo boxes with a Doc View SDI Application Pin
Mark Salsbery17-Oct-06 6:13
Mark Salsbery17-Oct-06 6:13 
QuestionHow to use "Connection: Keep-Alive" header Pin
zzattack15-Oct-06 2:12
zzattack15-Oct-06 2:12 
AnswerRe: How to use "Connection: Keep-Alive" header Pin
Michael Dunn15-Oct-06 9:03
sitebuilderMichael Dunn15-Oct-06 9:03 
GeneralRe: How to use "Connection: Keep-Alive" header Pin
zzattack15-Oct-06 9:59
zzattack15-Oct-06 9:59 
QuestionHow to set the cursor on an EditBox? Pin
sir_moreno15-Oct-06 1:16
sir_moreno15-Oct-06 1:16 
AnswerRe: How to set the cursor on an EditBox? Pin
Mark Salsbery15-Oct-06 8:10
Mark Salsbery15-Oct-06 8:10 
Questionan existing efficient matrix multiplication algorithm? Pin
George_George15-Oct-06 1:10
George_George15-Oct-06 1:10 
QuestionLinking with Visual Studio 2003 ??? Pin
thedp15-Oct-06 0:31
thedp15-Oct-06 0:31 

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.