alex
2007-02-22 02:22:15 UTC
Hi,
Good Day to all!
I have been tasked by my team leader to convert our existing MMC snap-
in project to support Windows Vista. Our snap-in is very much working
in Windows XP but when I tried to run it in Windows Vista, this error
occurs.
First-chance exception at 0x772bfc53 in mmc.exe: 0xC015000F: The
activation context being deactivated is not the most recently
activated one.
Unhandled exception at 0x772bfc53 in mmc.exe: 0xC015000F: The
activation context being deactivated is not the most recently
activated one.
I took this error message in my Visual Studio 2005 or VS8.0.
BTW, this is the current setup:
- Visual Studio 2005 version 8.0.50727.762 w/ SP (Visual Studio 8.0
SP1 for Vista)
- Microsoft Management Console 3.0 version 6.0
- Windows Vista (TM) RC2 Evaluation copy. Build 5744
- Windows XP Professional with SP2
I had both Windows XP and Windows Vista installed in my PC but on
different HDD.
I can run my project using VS2005 under WinXP and worked fine but
fails when I'm using VS2005 under Windows Vista.
My MMC snapin project is taken from the samples in Platform SDK for
WinXP SP2.
The problem seems to come when you use
"AFX_MANAGE_STATE(AfxGetStaticModuleState());"
Below is my code:
HRESULT CStaticNode::OnMenuCommand(IConsole *pConsole,
IConsoleNameSpace *pConsoleNameSpace,
IPropertySheetProvider
*pPropertySheetProvider,
long lCommandID,
IDataObject *pDataObject,
IComponentData *pComponentData,
CComponentData *pCComponentData,
LONG cookie)
{
/////////////////////////////////////////////////
// Set to MFC state
/////////////////////////////////////////////////
AFX_MANAGE_STATE(AfxGetStaticModuleState());
switch (lCommandID)
{
case IDM_ADD_SERVER:
{
CPropertyPage* pBasePage[3];
CPropertySheet dlg; <<------ Activation context
errors occurs here!!! T_T
...
...
...
...
}
}
return S_OK;
Did someone encountered this problem before? Need help pls.
Thanks.
Jay
Good Day to all!
I have been tasked by my team leader to convert our existing MMC snap-
in project to support Windows Vista. Our snap-in is very much working
in Windows XP but when I tried to run it in Windows Vista, this error
occurs.
First-chance exception at 0x772bfc53 in mmc.exe: 0xC015000F: The
activation context being deactivated is not the most recently
activated one.
Unhandled exception at 0x772bfc53 in mmc.exe: 0xC015000F: The
activation context being deactivated is not the most recently
activated one.
I took this error message in my Visual Studio 2005 or VS8.0.
BTW, this is the current setup:
- Visual Studio 2005 version 8.0.50727.762 w/ SP (Visual Studio 8.0
SP1 for Vista)
- Microsoft Management Console 3.0 version 6.0
- Windows Vista (TM) RC2 Evaluation copy. Build 5744
- Windows XP Professional with SP2
I had both Windows XP and Windows Vista installed in my PC but on
different HDD.
I can run my project using VS2005 under WinXP and worked fine but
fails when I'm using VS2005 under Windows Vista.
My MMC snapin project is taken from the samples in Platform SDK for
WinXP SP2.
The problem seems to come when you use
"AFX_MANAGE_STATE(AfxGetStaticModuleState());"
Below is my code:
HRESULT CStaticNode::OnMenuCommand(IConsole *pConsole,
IConsoleNameSpace *pConsoleNameSpace,
IPropertySheetProvider
*pPropertySheetProvider,
long lCommandID,
IDataObject *pDataObject,
IComponentData *pComponentData,
CComponentData *pCComponentData,
LONG cookie)
{
/////////////////////////////////////////////////
// Set to MFC state
/////////////////////////////////////////////////
AFX_MANAGE_STATE(AfxGetStaticModuleState());
switch (lCommandID)
{
case IDM_ADD_SERVER:
{
CPropertyPage* pBasePage[3];
CPropertySheet dlg; <<------ Activation context
errors occurs here!!! T_T
...
...
...
...
}
}
return S_OK;
Did someone encountered this problem before? Need help pls.
Thanks.
Jay