Click here to Skip to main content
15,891,431 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How can I append LPTSTR to CStirng [modified] Pin
Christian Graus8-Jun-06 22:24
protectorChristian Graus8-Jun-06 22:24 
AnswerRe: How can I append LPTSTR to CStirng Pin
Laxman Auti8-Jun-06 22:45
Laxman Auti8-Jun-06 22:45 
AnswerRe: How can I append LPTSTR to CStirng Pin
Hamid_RT9-Jun-06 0:48
Hamid_RT9-Jun-06 0:48 
AnswerRe: How can I append LPTSTR to CStirng Pin
toxcct9-Jun-06 1:39
toxcct9-Jun-06 1:39 
AnswerRe: How can I append LPTSTR to CStirng Pin
ThatsAlok11-Jun-06 22:18
ThatsAlok11-Jun-06 22:18 
QuestionStreaming Video in MFC or any language [modified] Pin
UCFSeniorBen8-Jun-06 21:26
UCFSeniorBen8-Jun-06 21:26 
AnswerRe: Streaming Video in MFC or any language [modified] Pin
Sarath C8-Jun-06 22:37
Sarath C8-Jun-06 22:37 
QuestionFiledialog and DLL Pin
Nicolai M8-Jun-06 20:52
Nicolai M8-Jun-06 20:52 
I'm making a WTL style DLL with an opening dialog, but i also need to be able to browse files from that DLL. I've triedto use both CFileDialog and OPENFILENAME structure, but neither is working, even though they are working fine in the executeable Confused | :confused:

OPENFILENAME:
/*OPENFILENAME ofn;       // common dialog box structure<br />
	char szFile[260];       // buffer for file name<br />
	HWND hwnd;              // owner window<br />
	//HANDLE hf;              // file handle<br />
<br />
	// Initialize OPENFILENAME<br />
	ZeroMemory(&ofn, sizeof(ofn));<br />
	ofn.lStructSize = sizeof(ofn);<br />
	ofn.hwndOwner = hwnd;<br />
	ofn.lpstrFile = szFile;<br />
	//<br />
	// Set lpstrFile[0] to '\0' so that GetOpenFileName does not <br />
	// use the contents of szFile to initialize itself.<br />
	//<br />
	ofn.lpstrFile[0] = '\0';<br />
	ofn.nMaxFile = sizeof(szFile);<br />
	ofn.lpstrFilter = "All\0*.*\0Text\0*.TXT\0";<br />
	ofn.nFilterIndex = 1;<br />
	ofn.lpstrFileTitle = NULL;<br />
	ofn.nMaxFileTitle = 0;<br />
	ofn.lpstrInitialDir = NULL;<br />
	ofn.Flags = OFN_PATHMUSTEXIST | OFN_FILEMUSTEXIST;<br />
<br />
	if(GetOpenFileName(&ofn) == IDOK)<br />
		SetDlgItemText(IDC_EDIT1, ofn.lpstrFile);


CFileDialog:
CFileDialog dlg(TRUE);<br />
	if(dlg.DoModal() == IDOK)<br />
		SetDlgItemText(IDC_EDIT1, dlg.m_szFileName);

AnswerRe: Filedialog and DLL Pin
Cedric Moonen8-Jun-06 20:57
Cedric Moonen8-Jun-06 20:57 
GeneralRe: Filedialog and DLL Pin
Nicolai M8-Jun-06 22:56
Nicolai M8-Jun-06 22:56 
GeneralRe: Filedialog and DLL Pin
Viorel.9-Jun-06 0:03
Viorel.9-Jun-06 0:03 
GeneralRe: Filedialog and DLL Pin
Nicolai M9-Jun-06 2:02
Nicolai M9-Jun-06 2:02 
AnswerRe: Filedialog and DLL Pin
Hamid_RT8-Jun-06 21:06
Hamid_RT8-Jun-06 21:06 
AnswerRe: Filedialog and DLL Pin
Viorel.8-Jun-06 21:17
Viorel.8-Jun-06 21:17 
AnswerRe: Filedialog and DLL Pin
Sarath C8-Jun-06 22:01
Sarath C8-Jun-06 22:01 
GeneralRe: Filedialog and DLL Pin
Viorel.8-Jun-06 22:25
Viorel.8-Jun-06 22:25 
QuestionDateTimePicker Pin
ensger8-Jun-06 20:32
ensger8-Jun-06 20:32 
AnswerRe: DateTimePicker Pin
Monty28-Jun-06 21:16
Monty28-Jun-06 21:16 
GeneralRe: DateTimePicker Pin
ensger8-Jun-06 21:56
ensger8-Jun-06 21:56 
GeneralRe: DateTimePicker Pin
Nishad S8-Jun-06 22:10
Nishad S8-Jun-06 22:10 
AnswerRe: DateTimePicker [modified] Pin
_AnsHUMAN_ 8-Jun-06 22:46
_AnsHUMAN_ 8-Jun-06 22:46 
GeneralRe: DateTimePicker [modified] Pin
ensger9-Jun-06 3:27
ensger9-Jun-06 3:27 
GeneralRe: DateTimePicker [modified] Pin
_AnsHUMAN_ 9-Jun-06 3:40
_AnsHUMAN_ 9-Jun-06 3:40 
GeneralRe: DateTimePicker Pin
ensger9-Jun-06 9:18
ensger9-Jun-06 9:18 
AnswerRe: DateTimePicker Pin
Michael Dunn9-Jun-06 1:14
sitebuilderMichael Dunn9-Jun-06 1:14 

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.