Click here to Skip to main content
15,914,370 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CursorClip Drawing Region Pin
jw8121-Sep-04 16:59
jw8121-Sep-04 16:59 
GeneralRe: CursorClip Drawing Region Pin
Branislav22-Sep-04 1:51
Branislav22-Sep-04 1:51 
GeneralStatic control for text width Pin
mike :D20-Sep-04 21:51
mike :D20-Sep-04 21:51 
GeneralA question about hint on the button Pin
Rassul Yunussov20-Sep-04 21:43
Rassul Yunussov20-Sep-04 21:43 
GeneralRe: A question about hint on the button Pin
Sujan Christo20-Sep-04 22:32
Sujan Christo20-Sep-04 22:32 
GeneralRe: A question about hint on the button Pin
Rassul Yunussov22-Sep-04 19:11
Rassul Yunussov22-Sep-04 19:11 
Generalweird stream << "behavior" Pin
froyd20-Sep-04 20:47
froyd20-Sep-04 20:47 
GeneralActiveX control in VC.Net Pin
Amol Chavan20-Sep-04 20:30
Amol Chavan20-Sep-04 20:30 
I am trying to create an ActiveX control (mediaplayer9.0 to be more specific) over document/view architecture. I have created the same application on VC++6.0. Its working fine.
But as soon as I port the same application from VC++6.0 to VC.Net and tries to run the application, it gives an error in call to GetParent() function as this function checks for ASSERT(::IsWindow(m_hWnd)). m_hWnd handle is assigned inside CreateControl() call, which is happening perfectly fine with VC++6.0.

I debugged the application in more detail for CreateControl() call in both VC++6.0 and VC.Net and found that in VC.Net:
1. COleControlSite::XOleIPSite::OnInPlaceActivateEx() function is getting called and assigning the (mediaplayer) control to be windowless.

In parallel to this VC++6.0 calls:
1. COleControlSite::XOleIPSite::OnInPlaceActivate(), which is doing nothing but returning "OK".

In addition to above inside CreateControl() VC.Net calls:
1. COleControlSite::AttachWindow(), which actually assigns the handle to “m_hWnd”. This is failing in VC.Net but working perfectly ok with VC++6.0 and that’s the reason why control is working fine with VC6.0 and not with VC.Net.

So my question is can anyone let me know why the behavior (which is leading to error) is changing in VC.Net.

FYI: .Net/VC7/atlmfc/src/mfc/occsite.cpp (This is the path for OnInPlaceActivateEx() and AttachWindow() functions).

Thanks,
Ajit

Amol Chavan
Persistent System Pvt. Ltd.
Member of Technical Staff
Bhageerath,402
Senapati Bapat Road,
Pune 411 016, India.
Generallocal window hook Pin
Sung-Won20-Sep-04 20:06
Sung-Won20-Sep-04 20:06 
GeneralDoes this Code look robust Pin
Monty220-Sep-04 19:20
Monty220-Sep-04 19:20 
GeneralRe: Does this Code look robust Pin
User 58385220-Sep-04 20:43
User 58385220-Sep-04 20:43 
GeneralRe: Does this Code look robust Pin
Monty220-Sep-04 21:12
Monty220-Sep-04 21:12 
GeneralRe: Does this Code look robust Pin
User 58385221-Sep-04 11:48
User 58385221-Sep-04 11:48 
GeneralMFC: Mouse Right-Click Event to remove and set the black spots in an image from 255 to 0 Pin
pohcb_sonic20-Sep-04 18:07
pohcb_sonic20-Sep-04 18:07 
GeneralRe: MFC: Mouse Right-Click Event to remove and set the black spots in an image from 255 to 0 Pin
Christian Graus20-Sep-04 18:24
protectorChristian Graus20-Sep-04 18:24 
GeneralCListBox formatting Pin
stevieo8420-Sep-04 18:07
stevieo8420-Sep-04 18:07 
GeneralRe: CListBox formatting Pin
Branislav21-Sep-04 1:07
Branislav21-Sep-04 1:07 
Questioncan accelerator keys be intercepted by ActiveX ? Pin
somesoft20-Sep-04 17:11
somesoft20-Sep-04 17:11 
QuestionPassing variables to function called by a thread?!?!?? Pin
Zero_G20-Sep-04 14:37
Zero_G20-Sep-04 14:37 
AnswerRe: Passing variables to function called by a thread?!?!?? Pin
David Crow20-Sep-04 16:56
David Crow20-Sep-04 16:56 
AnswerRe: Passing variables to function called by a thread?!?!?? Pin
stevieo8420-Sep-04 18:20
stevieo8420-Sep-04 18:20 
AnswerRe: Passing variables to function called by a thread?!?!?? Pin
V.20-Sep-04 23:29
professionalV.20-Sep-04 23:29 
QuestionWhy public destructors? Pin
Anonymous20-Sep-04 11:16
Anonymous20-Sep-04 11:16 
AnswerRe: Why public destructors? Pin
Christian Graus20-Sep-04 11:30
protectorChristian Graus20-Sep-04 11:30 
GeneralRe: Why public destructors? Pin
Anonymous20-Sep-04 11:53
Anonymous20-Sep-04 11:53 

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.