Click here to Skip to main content
15,917,481 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Question with Directshow Video Compression Pin
godspeed12310-Jan-07 11:01
godspeed12310-Jan-07 11:01 
GeneralRe: Question with Directshow Video Compression Pin
godspeed12310-Jan-07 11:13
godspeed12310-Jan-07 11:13 
GeneralRe: Question with Directshow Video Compression Pin
Mark Salsbery10-Jan-07 13:58
Mark Salsbery10-Jan-07 13:58 
Questionsubclassing/superclassing a button Pin
Niamorh10-Jan-07 8:13
Niamorh10-Jan-07 8:13 
AnswerRe: subclassing/superclassing a button Pin
Mark Salsbery10-Jan-07 8:36
Mark Salsbery10-Jan-07 8:36 
GeneralRe: subclassing/superclassing a button Pin
Niamorh11-Jan-07 4:20
Niamorh11-Jan-07 4:20 
GeneralRe: subclassing/superclassing a button Pin
Mark Salsbery11-Jan-07 4:37
Mark Salsbery11-Jan-07 4:37 
QuestionOpen File Dialog PocketPC Pin
Like2Byte10-Jan-07 8:08
Like2Byte10-Jan-07 8:08 
Hi,

I'm trying to open a file open dialog box; but, using the wince PPC 2003 SDK isn't allowing me to navigate to an arbitrary directory that the user will need. It only allows me to choose the 'All Folders', "Business", "My Music", "My Pictures", "Personal", "SysInfo" and "Templates" directories.
I used:
<pre>
<code>
void InitOFN(OPENFILENAME *ofn)
{
memset(ofn, 0, sizeof(ofn));
ofn->lStructSize = sizeof( OPENFILENAME );
ofn->hwndOwner = NULL;
ofn->lpstrFilter = _T("txt Files\0*.txt\0\0");
ofn->lpstrCustomFilter = NULL;
ofn->nMaxCustFilter = 0;
ofn->nFilterIndex = 0;
ofn->lpstrFile = _T("\\parent\\subdir1\\subdir2\\default.dir\\"); /*WATCH OUT!*/
ofn->nMaxFile = 1024;
ofn->lpstrFileTitle = NULL;
ofn->nMaxFileTitle = 0;
ofn->lpstrInitialDir = _T("\\parent\\subdir1\\subdir2\\default.dir\\");
ofn->lpstrTitle = _T("Select files for viewing:");
ofn->nFileOffset = 0;
ofn->nFileExtension = 0;
ofn->lpstrDefExt = NULL;
ofn->lCustData = 0;
ofn->lpfnHook = NULL;
ofn->lpTemplateName = NULL;
ofn->Flags = OFN_EXPLORER;
}
void CClassDlg::OnOK()
{
OPENFILENAME ofn;
InitOFN(&ofn);
CFileDialog dlg(TRUE);
dlg.DoModal();
//do more stuff

CDialog::OnOK();
}
</code>
</pre>

Ideally, I'd like to open a dialog that lets the user select the directory that contains their files. I'll settle to let the user select their file, then sneakily do a GetPathName (because that is what is truely important to me here).

Any thoughts? I reviewed Juan Paulo's CP writeup; but, I'd like to refrain from introducing third party STL implementations.

Thanks
{{so much for formatting! OMG | :OMG: }}
QuestionImageList_DrawIndirect Problem! Pin
r3dqu33n10-Jan-07 6:15
r3dqu33n10-Jan-07 6:15 
QuestionRe: ImageList_DrawIndirect Problem! Pin
Mark Salsbery10-Jan-07 7:33
Mark Salsbery10-Jan-07 7:33 
AnswerRe: ImageList_DrawIndirect Problem! Pin
r3dqu33n10-Jan-07 8:36
r3dqu33n10-Jan-07 8:36 
GeneralRe: ImageList_DrawIndirect Problem! Pin
Mark Salsbery10-Jan-07 8:42
Mark Salsbery10-Jan-07 8:42 
QuestionProblem with CMap GetStartPosition() Pin
vipin_nvk10-Jan-07 5:22
vipin_nvk10-Jan-07 5:22 
AnswerRe: Problem with CMap GetStartPosition() Pin
PJ Arends10-Jan-07 5:56
professionalPJ Arends10-Jan-07 5:56 
QuestionRe: Problem with CMap GetStartPosition() Pin
David Crow10-Jan-07 5:59
David Crow10-Jan-07 5:59 
QuestionWhat's the problem of my program? Pin
Ming Luo10-Jan-07 5:15
Ming Luo10-Jan-07 5:15 
AnswerRe: What's the problem of my program? Pin
Roger Stoltz10-Jan-07 5:36
Roger Stoltz10-Jan-07 5:36 
GeneralRe: What's the problem of my program? Pin
PJ Arends10-Jan-07 6:02
professionalPJ Arends10-Jan-07 6:02 
GeneralRe: What's the problem of my program? Pin
Roger Stoltz10-Jan-07 6:11
Roger Stoltz10-Jan-07 6:11 
QuestionSending File Through UDP Pin
Girish60110-Jan-07 4:14
Girish60110-Jan-07 4:14 
AnswerRe: Sending File Through UDP Pin
Roger Stoltz10-Jan-07 4:36
Roger Stoltz10-Jan-07 4:36 
AnswerRe: Sending File Through UDP Pin
James R. Twine10-Jan-07 4:50
James R. Twine10-Jan-07 4:50 
GeneralRe: Sending File Through UDP Pin
Tim Paaschen10-Jan-07 19:42
Tim Paaschen10-Jan-07 19:42 
GeneralRe: Sending File Through UDP Pin
James R. Twine11-Jan-07 13:38
James R. Twine11-Jan-07 13:38 
AnswerRe: Sending File Through UDP Pin
Eytukan10-Jan-07 4:56
Eytukan10-Jan-07 4:56 

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.