Click here to Skip to main content
16,016,076 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Bitmap behind documents Pin
Joaquín M López Muñoz24-May-02 5:07
Joaquín M López Muñoz24-May-02 5:07 
GeneralRe: Bitmap behind documents Pin
Joao Vaz24-May-02 5:41
Joao Vaz24-May-02 5:41 
GeneralRe: Bitmap behind documents Pin
Joaquín M López Muñoz24-May-02 6:52
Joaquín M López Muñoz24-May-02 6:52 
GeneralRe: Bitmap behind documents Pin
Joao Vaz24-May-02 6:52
Joao Vaz24-May-02 6:52 
GeneralRe: Bitmap behind documents Pin
Dean Michaud24-May-02 7:08
Dean Michaud24-May-02 7:08 
QuestionHow can I get the path of the executed program in this program? Pin
24-May-02 3:24
suss24-May-02 3:24 
AnswerRe: How can I get the path of the executed program in this program? Pin
Joao Vaz24-May-02 3:38
Joao Vaz24-May-02 3:38 
GeneralRe: How can I get the path of the executed program in this program? Pin
Eugene Pustovoyt24-May-02 3:56
Eugene Pustovoyt24-May-02 3:56 
I'm use the follow code:

CString CMyApp::GetHomeDirectory() const
{
	TCHAR sFilename[_MAX_PATH];
	TCHAR sDrive[_MAX_DRIVE];
	TCHAR sDir[_MAX_DIR];
	TCHAR sFname[_MAX_FNAME];
	TCHAR sExt[_MAX_EXT];
	
	GetModuleFileName(AfxGetInstanceHandle(), sFilename, _MAX_PATH);
	_tsplitpath(sFilename, sDrive, sDir, sFname, sExt);
	CString rVal(CString(sDrive) + CString(sDir));
	int nLen = rVal.GetLength();
	if (rVal.GetAt(nLen-1) != _T('\\'))
		rVal += _T("\\");
	return rVal;
}



Best regards,
Eugene Pustovoyt
GeneralRe: How can I get the path of the executed program in this program? Pin
Nish Nishant24-May-02 4:35
sitebuilderNish Nishant24-May-02 4:35 
GeneralRe: How can I get the path of the executed program in this program? Pin
Chris Losinger24-May-02 4:47
professionalChris Losinger24-May-02 4:47 
GeneralRe: How can I get the path of the executed program in this program? Pin
Nish Nishant24-May-02 15:01
sitebuilderNish Nishant24-May-02 15:01 
GeneralRe: How can I get the path of the executed program in this program? Pin
Joao Vaz24-May-02 5:30
Joao Vaz24-May-02 5:30 
GeneralRe: How can I get the path of the executed program in this program? Pin
Nish Nishant24-May-02 15:14
sitebuilderNish Nishant24-May-02 15:14 
GeneralRe: How can I get the path of the executed program in this program? Pin
Joao Vaz24-May-02 20:15
Joao Vaz24-May-02 20:15 
GeneralRe: How can I get the path of the executed program in this program? Pin
27-May-02 10:49
suss27-May-02 10:49 
AnswerRe: How can I get the path of the executed program in this program? Pin
Alexandru Savescu24-May-02 12:43
Alexandru Savescu24-May-02 12:43 
GeneralWatch Window Formatting Pin
Mark Donkers24-May-02 3:16
Mark Donkers24-May-02 3:16 
GeneralRe: Watch Window Formatting Pin
Martin Ziacek24-May-02 4:16
Martin Ziacek24-May-02 4:16 
GeneralRe: Watch Window Formatting Pin
Mark Donkers24-May-02 4:23
Mark Donkers24-May-02 4:23 
GeneralAccess violation in clistctrl Pin
SnapRick24-May-02 2:51
SnapRick24-May-02 2:51 
GeneralRe: Access violation in clistctrl Pin
Joaquín M López Muñoz24-May-02 4:04
Joaquín M López Muñoz24-May-02 4:04 
GeneralRe: Access violation in clistctrl Pin
SnapRick24-May-02 4:27
SnapRick24-May-02 4:27 
GeneralUsing external Members Pin
laphijia24-May-02 2:43
laphijia24-May-02 2:43 
GeneralRe: Using external Members Pin
Alexandru Savescu24-May-02 3:35
Alexandru Savescu24-May-02 3:35 
GeneralRe: Using external Members Pin
laphijia24-May-02 3:59
laphijia24-May-02 3:59 

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.