Click here to Skip to main content
15,905,508 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionabout MFC Pin
rajaasif11-Dec-06 19:15
rajaasif11-Dec-06 19:15 
AnswerRe: about MFC Pin
kakan11-Dec-06 19:25
professionalkakan11-Dec-06 19:25 
GeneralRe: about MFC Pin
rajaasif11-Dec-06 20:00
rajaasif11-Dec-06 20:00 
GeneralRe: about MFC Pin
Rajesh R Subramanian11-Dec-06 20:25
professionalRajesh R Subramanian11-Dec-06 20:25 
GeneralRe: about MFC Pin
kakan11-Dec-06 20:31
professionalkakan11-Dec-06 20:31 
GeneralRe: about MFC Pin
Rajesh R Subramanian11-Dec-06 20:33
professionalRajesh R Subramanian11-Dec-06 20:33 
GeneralRe: about MFC Pin
Rajesh R Subramanian11-Dec-06 20:36
professionalRajesh R Subramanian11-Dec-06 20:36 
GeneralRe: about MFC Pin
rajaasif11-Dec-06 20:58
rajaasif11-Dec-06 20:58 
GeneralRe: about MFC Pin
Rajesh R Subramanian11-Dec-06 21:21
professionalRajesh R Subramanian11-Dec-06 21:21 
GeneralRe: about MFC Pin
rajaasif11-Dec-06 22:02
rajaasif11-Dec-06 22:02 
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 

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.