Click here to Skip to main content
16,004,927 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Getting Application Path Pin
geo_m12-Aug-03 1:15
geo_m12-Aug-03 1:15 
GeneralRe: Getting Application Path Pin
s o v a n n12-Aug-03 1:47
s o v a n n12-Aug-03 1:47 
GeneralRe: Getting Application Path Pin
geo_m12-Aug-03 3:08
geo_m12-Aug-03 3:08 
GeneralRe: Getting Application Path Pin
pma13-Aug-03 20:30
pma13-Aug-03 20:30 
GeneralRe: Getting Application Path Pin
geo_m14-Aug-03 5:12
geo_m14-Aug-03 5:12 
GeneralRe: Getting Application Path Pin
pma14-Aug-03 5:41
pma14-Aug-03 5:41 
GeneralMicrosoft Powerpoint AutoShape / object structure Pin
gicio12-Aug-03 1:02
gicio12-Aug-03 1:02 
GeneralDev studio add in question Pin
YaronNir11-Aug-03 23:54
YaronNir11-Aug-03 23:54 
Hi all,

I am developing an add in for dev studio.
i have a method, which i need to check if any workspace is open
i use the following code:

IGenericProject* pProject = NULL;
HRESULT hr = m_pApplication->get_ActiveProject((IDispatch**)&pProject);
if (FAILED(hr))
{
ATLASSERT(FALSE);
return hr;
}

if (NULL == pProject)
{
::MessageBox(NULL,
_T("Please open a workspace!"),
_T("My Application"),
MB_OK | MB_ICONINFORMATION);
return S_OK;
}

the trouble is i am falling on the ATLASSERT(FALSE) with reason of HRESULT
-2147418113 which means (using error lookup) "Catastrophic failure"

can any1 help here?

thanks in advanced

Yaron Nir

Ask not what your application can do for you,
Ask what you can do for your application
GeneralRe: Dev studio add in question Pin
Steve S12-Aug-03 0:27
Steve S12-Aug-03 0:27 
GeneralRe: Dev studio add in question Pin
YaronNir12-Aug-03 1:27
YaronNir12-Aug-03 1:27 
GeneralStandalone in place CEdit Pin
Neville Franks11-Aug-03 23:06
Neville Franks11-Aug-03 23:06 
GeneralRe: Standalone in place CEdit Pin
jhwurmbach11-Aug-03 23:19
jhwurmbach11-Aug-03 23:19 
GeneralRe: Standalone in place CEdit Pin
Neville Franks12-Aug-03 0:11
Neville Franks12-Aug-03 0:11 
GeneralRe: Standalone in place CEdit Pin
Steve S12-Aug-03 0:30
Steve S12-Aug-03 0:30 
GeneralRe: Standalone in place CEdit Pin
Neville Franks12-Aug-03 0:40
Neville Franks12-Aug-03 0:40 
GeneralRe: Standalone in place CEdit Pin
Steve S12-Aug-03 0:44
Steve S12-Aug-03 0:44 
GeneralRe: Standalone in place CEdit Pin
Neville Franks12-Aug-03 0:47
Neville Franks12-Aug-03 0:47 
GeneralRe: Standalone in place CEdit Pin
Steve S12-Aug-03 0:58
Steve S12-Aug-03 0:58 
GeneralRe: Standalone in place CEdit Pin
Neville Franks12-Aug-03 1:24
Neville Franks12-Aug-03 1:24 
GeneralRe: Standalone in place CEdit Pin
Neville Franks12-Aug-03 1:44
Neville Franks12-Aug-03 1:44 
GeneralRe: Standalone in place CEdit Pin
Ryan Binns12-Aug-03 2:53
Ryan Binns12-Aug-03 2:53 
GeneralRe: Standalone in place CEdit Pin
Neville Franks12-Aug-03 3:09
Neville Franks12-Aug-03 3:09 
GeneralRe: Standalone in place CEdit Pin
Neville Franks12-Aug-03 3:35
Neville Franks12-Aug-03 3:35 
GeneralRe: Standalone in place CEdit Pin
jhwurmbach12-Aug-03 1:02
jhwurmbach12-Aug-03 1:02 
GeneralRe: Standalone in place CEdit Pin
Ravi Bhavnani12-Aug-03 2:34
professionalRavi Bhavnani12-Aug-03 2:34 

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.