Click here to Skip to main content
15,925,255 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to convert a html to bmp? Pin
yeahe8311-Mar-07 19:34
yeahe8311-Mar-07 19:34 
GeneralRe: How to convert a html to bmp? Pin
John R. Shaw11-Mar-07 20:23
John R. Shaw11-Mar-07 20:23 
GeneralRe: How to convert a html to bmp? Pin
yeahe8311-Mar-07 21:38
yeahe8311-Mar-07 21:38 
GeneralRe: How to convert a html to bmp? Pin
John R. Shaw11-Mar-07 23:22
John R. Shaw11-Mar-07 23:22 
AnswerRe: How to convert a html to bmp? Pin
ThatsAlok11-Mar-07 22:18
ThatsAlok11-Mar-07 22:18 
GeneralRe: How to convert a html to bmp? Pin
yeahe8312-Mar-07 23:53
yeahe8312-Mar-07 23:53 
QuestionMFC problem Pin
Ali Tavakol11-Mar-07 15:07
Ali Tavakol11-Mar-07 15:07 
AnswerRe: MFC problem Pin
Stephen Hewitt11-Mar-07 16:04
Stephen Hewitt11-Mar-07 16:04 
All the source code for MFC comes with your compiler. I quick look yields the fact that the main code behind AfxMessageBox is in the function CWinApp::ShowAppMessageBox. The following is copied from this function:
TCHAR szAppName[_MAX_PATH];
szAppName[0] = '\0';
LPCTSTR pszAppName;
if (pApp != NULL)
	pszAppName = pApp->m_pszAppName;
else
{
	pszAppName = szAppName;
	DWORD dwLen = GetModuleFileName(NULL, szAppName, _MAX_PATH);
	if (dwLen == _MAX_PATH)
		szAppName[_MAX_PATH - 1] = '\0';
}


So it uses the m_pszAppName pointer in your project's CWinApp derived class or the name of the .EXE itself.

If CWinApp is used it's set like this:
CWinApp::CWinApp(LPCTSTR lpszAppName)
{
	if (lpszAppName != NULL)
		m_pszAppName = _tcsdup(lpszAppName);
	else
		m_pszAppName = NULL; 
 .
 .
 .



Steve

GeneralRe: MFC problem Pin
John R. Shaw11-Mar-07 17:20
John R. Shaw11-Mar-07 17:20 
Questionchar* p and char *p ....Difference ? Pin
Software_Specialist11-Mar-07 14:00
Software_Specialist11-Mar-07 14:00 
AnswerRe: char* p and char *p ....Difference ? Pin
Mike_V11-Mar-07 14:10
Mike_V11-Mar-07 14:10 
GeneralRe: char* p and char *p ....Difference ? Pin
Software_Specialist11-Mar-07 14:23
Software_Specialist11-Mar-07 14:23 
GeneralRe: char* p and char *p ....Difference ? Pin
Mike_V11-Mar-07 13:44
Mike_V11-Mar-07 13:44 
GeneralRe: char* p and char *p ....Difference ? Pin
John R. Shaw11-Mar-07 15:22
John R. Shaw11-Mar-07 15:22 
GeneralRe: char* p and char *p ....Difference ? Pin
Mike_V11-Mar-07 15:26
Mike_V11-Mar-07 15:26 
GeneralRe: char* p and char *p ....Difference ? Pin
John R. Shaw11-Mar-07 16:32
John R. Shaw11-Mar-07 16:32 
GeneralRe: char* p and char *p ....Difference ? Pin
jfg211-Mar-07 15:08
jfg211-Mar-07 15:08 
GeneralRe: char* p and char *p ....Difference ? Pin
Software_Specialist12-Mar-07 3:27
Software_Specialist12-Mar-07 3:27 
GeneralRe: char* p and char *p ....Difference ? Pin
John R. Shaw11-Mar-07 16:43
John R. Shaw11-Mar-07 16:43 
GeneralRe: char* p and char *p ....Difference ? Pin
John R. Shaw12-Mar-07 4:04
John R. Shaw12-Mar-07 4:04 
AnswerRe: char* p and char *p ....Difference ? Pin
John R. Shaw11-Mar-07 16:22
John R. Shaw11-Mar-07 16:22 
GeneralRe: char* p and char *p ....Difference ? Pin
Software_Specialist12-Mar-07 3:38
Software_Specialist12-Mar-07 3:38 
Questioncannot get edit box value (QWidget ) Pin
Bilge Kaan11-Mar-07 12:34
Bilge Kaan11-Mar-07 12:34 
AnswerRe: cannot get edit box value (QWidget ) Pin
John R. Shaw11-Mar-07 17:28
John R. Shaw11-Mar-07 17:28 
QuestionBuild error LNK2001 on existing Project Pin
JAG1811-Mar-07 11:09
JAG1811-Mar-07 11:09 

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.