Click here to Skip to main content
15,896,154 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: about MFC Pin
Rajesh R Subramanian11-Dec-06 22:07
professionalRajesh R Subramanian11-Dec-06 22:07 
GeneralRe: about MFC Pin
Sam Hobbs12-Dec-06 15:53
Sam Hobbs12-Dec-06 15:53 
GeneralRe: about MFC Pin
Sam Hobbs12-Dec-06 15:51
Sam Hobbs12-Dec-06 15:51 
GeneralRe: about MFC Pin
Rajesh R Subramanian12-Dec-06 20:16
professionalRajesh R Subramanian12-Dec-06 20:16 
GeneralRe: about MFC Pin
Sam Hobbs12-Dec-06 20:23
Sam Hobbs12-Dec-06 20:23 
GeneralRe: about MFC Pin
Sam Hobbs12-Dec-06 16:03
Sam Hobbs12-Dec-06 16:03 
AnswerRe: about MFC Pin
vijay_aroli12-Dec-06 1:48
vijay_aroli12-Dec-06 1:48 
QuestionHow to access Application class member function Pin
rp_suman11-Dec-06 19:03
rp_suman11-Dec-06 19:03 
I am getting the runtime error: "Debug Assertion Failed" from mfc71d.dll when try to create application class object in another file.

MyApp.h<br />
//Application class<br />
class CMyApp : public CWinApp<br />
{<br />
public:<br />
---<br />
HRESULT GetCommonDevice(LPDIRECT3DDEVICE9& m_pd3dDevice_REF);<br />
---<br />
}<br />
<br />
<br />
MyWnd.h<br />
//Header file of the class where I need to access App class's function<br />
#include "MyApp.h"<br />
class CMyWnd : public CWnd<br />
{<br />
DECLARE_DYNAMIC(CMyWnd)<br />
public:<br />
	CMyWnd();<br />
	void init();<br />
---<br />
}<br />
<br />
MyWnd.cpp<br />
//Implementation file of CMyWnd<br />
---<br />
void CMyWnd::init()<br />
{<br />
CMyApp c;<br />
HRESULT hr = c.GetCommonDevice(m_pD3dDevice);	<-- Here the debug assertion at run time<br />
---<br />
}<br />
}


Any help would be greatly appreciated!
Thanks & Regards,
Suman
AnswerRe: How to access Application class member function Pin
aaaan11-Dec-06 19:17
aaaan11-Dec-06 19:17 
AnswerRe: How to access Application class member function Pin
sunit511-Dec-06 19:20
sunit511-Dec-06 19:20 
AnswerRe: How to access Application class member function Pin
prasad_som11-Dec-06 19:43
prasad_som11-Dec-06 19:43 
GeneralRe: How to access Application class member function Pin
rp_suman11-Dec-06 20:08
rp_suman11-Dec-06 20:08 
AnswerRe: How to access Application class member function Pin
prasad_som11-Dec-06 20:16
prasad_som11-Dec-06 20:16 
GeneralThanks Pin
rp_suman11-Dec-06 20:25
rp_suman11-Dec-06 20:25 
QuestionHow to stop Internet Explorer when we restart the Machine? Pin
Arul Joseph11-Dec-06 18:52
Arul Joseph11-Dec-06 18:52 
AnswerRe: How to stop Internet Explorer when we restart the Machine? Pin
kakan11-Dec-06 19:12
professionalkakan11-Dec-06 19:12 
GeneralRe: How to stop Internet Explorer when we restart the Machine? Pin
Arul Joseph11-Dec-06 19:40
Arul Joseph11-Dec-06 19:40 
JokeRe: How to stop Internet Explorer when we restart the Machine? Pin
Rajesh R Subramanian11-Dec-06 19:57
professionalRajesh R Subramanian11-Dec-06 19:57 
GeneralRe: How to stop Internet Explorer when we restart the Machine? Pin
kakan11-Dec-06 20:14
professionalkakan11-Dec-06 20:14 
GeneralRe: How to stop Internet Explorer when we restart the Machine? Pin
Rajesh R Subramanian11-Dec-06 20:16
professionalRajesh R Subramanian11-Dec-06 20:16 
GeneralRe: How to stop Internet Explorer when we restart the Machine? Pin
Sam Hobbs12-Dec-06 16:09
Sam Hobbs12-Dec-06 16:09 
QuestionGet Selected Text Pin
Mahesh Kulkarni11-Dec-06 18:33
Mahesh Kulkarni11-Dec-06 18:33 
AnswerRe: Get Selected Text Pin
Rajesh R Subramanian11-Dec-06 19:51
professionalRajesh R Subramanian11-Dec-06 19:51 
GeneralRe: Get Selected Text Pin
Mahesh Kulkarni11-Dec-06 19:57
Mahesh Kulkarni11-Dec-06 19:57 
GeneralRe: Get Selected Text Pin
Rajesh R Subramanian11-Dec-06 20:13
professionalRajesh R Subramanian11-Dec-06 20:13 

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.