M
Morten Overgaard
Situation is as follows
1) Create Active Document Container WITHOUT support for CLR
2) Create Active Document Server WITH support for CLR (/clr)
3) Add Button to Active Document Server Dialog resource
4) Add OnClick event handler to button
5) In the event Handler add the following
void CMFCServerView::OnBnClickedButton1()
{
AfxMessageBox("Test Message", MB_OK,0);
}
6) Insert the Active Documenet Server in the Container ( Through Edit|
Insert Object ) and Press the button
7) This produces an System.NullReference Exception??????? Why??
My company are developing an MFC 7.1 Active Document Server which needs to
be hosted in an Container App ( Developed by another company ). Our app uses
/CLR and the container does not - can this be fixed????
Regards Morten.
1) Create Active Document Container WITHOUT support for CLR
2) Create Active Document Server WITH support for CLR (/clr)
3) Add Button to Active Document Server Dialog resource
4) Add OnClick event handler to button
5) In the event Handler add the following
void CMFCServerView::OnBnClickedButton1()
{
AfxMessageBox("Test Message", MB_OK,0);
}
6) Insert the Active Documenet Server in the Container ( Through Edit|
Insert Object ) and Press the button
7) This produces an System.NullReference Exception??????? Why??
My company are developing an MFC 7.1 Active Document Server which needs to
be hosted in an Container App ( Developed by another company ). Our app uses
/CLR and the container does not - can this be fixed????
Regards Morten.