Click here to Skip to main content
15,916,683 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem with AfxMessageBox Pin
Laughing Buddha2-Apr-06 1:46
Laughing Buddha2-Apr-06 1:46 
GeneralRe: Problem with AfxMessageBox Pin
Saurabh.Garg2-Apr-06 5:20
Saurabh.Garg2-Apr-06 5:20 
Questionaccess and edit picture grabber for image processing Pin
den tewe1-Apr-06 9:27
den tewe1-Apr-06 9:27 
AnswerRe: access and edit picture grabber for image processing Pin
Saurabh.Garg1-Apr-06 16:20
Saurabh.Garg1-Apr-06 16:20 
Question= operator in CObject-derived classes Pin
Dr-Kuulun1-Apr-06 5:18
Dr-Kuulun1-Apr-06 5:18 
AnswerRe: = operator in CObject-derived classes Pin
Michael Dunn1-Apr-06 6:06
sitebuilderMichael Dunn1-Apr-06 6:06 
GeneralRe: = operator in CObject-derived classes Pin
Dr-Kuulun2-Apr-06 0:24
Dr-Kuulun2-Apr-06 0:24 
Questionproblem with openfile dialog api Pin
_tasleem1-Apr-06 2:31
_tasleem1-Apr-06 2:31 
hi
i m using this code to for fileopen dialog with multiselection of files.
here is it

::OPENFILENAME ofn;
char *szFileName=new char[1024];
ZeroMemory(szFileName, sizeof(szFileName));
ZeroMemory(&ofn, sizeof(ofn));
ofn.lStructSize = sizeof(ofn); // SEE NOTE BELOW
ofn.lpstrFilter = "Bitmap Files (*.bmp)\0*.bmp\0All Files (*.*)\0*.*\0";
ofn.lpstrFile =szFileName;
ofn.nMaxFile = 1024;
ofn.Flags = OFN_EXPLORER | OFN_FILEMUSTEXIST|OFN_ALLOWMULTISELECT|OFN_READONLY;
ofn.lpstrDefExt = "bmp";
CString str;
if(GetOpenFileName(&ofn))
{
MessageBox(ofn.lpstrFile);
MessageBox(szFileName);
str=ofn.lpstrFile;//szFileName ;
CString temp;
str.Trim();
int index;
while(str.GetLength()>0)
{
index=str.Find('\0') ;
temp=str.Left(index);
MessageBox("The Extract:\t"+ temp);
str=str.Mid(index+1,str.GetLength());
MessageBox("The Remaing\t"+ str);
}
}
for single file selection it shows the full file name. for multiselection the ofn.lpstrFile contain only the directory name and nothing else i had shown that on the msgbox. it prints the directory. where in MSDN i read the after directory name then null and then file names are present. which are not.

Tasleem Arif
AnswerRe: problem with openfile dialog api Pin
krmed1-Apr-06 3:22
krmed1-Apr-06 3:22 
GeneralRe: problem with openfile dialog api Pin
_tasleem1-Apr-06 4:18
_tasleem1-Apr-06 4:18 
AnswerRe: problem with openfile dialog api Pin
alicabas1-Apr-06 4:29
alicabas1-Apr-06 4:29 
QuestionProblem with CRecordset::GetFieldValue Pin
Vikrant for VC++1-Apr-06 2:19
Vikrant for VC++1-Apr-06 2:19 
QuestionHow to read Triggers of a Database Pin
Vikrant for VC++1-Apr-06 2:14
Vikrant for VC++1-Apr-06 2:14 
AnswerRe: How to read Triggers of a Database Pin
Vikrant for VC++1-Apr-06 3:15
Vikrant for VC++1-Apr-06 3:15 
GeneralRe: How to read Triggers of a Database Pin
Milton Karimbekallil1-Apr-06 4:13
Milton Karimbekallil1-Apr-06 4:13 
GeneralRe: How to read Triggers of a Database Pin
Vikrant for VC++1-Apr-06 4:18
Vikrant for VC++1-Apr-06 4:18 
GeneralRe: How to read Triggers of a Database Pin
includeh101-Apr-06 6:44
includeh101-Apr-06 6:44 
AnswerRe: How to read Triggers of a Database Pin
crazymubashir2-Apr-06 21:15
crazymubashir2-Apr-06 21:15 
QuestionAfter open a XML File how to print the data of XML File on Active Document Pin
Amit Agarrwal1-Apr-06 1:50
Amit Agarrwal1-Apr-06 1:50 
AnswerRe: After open a XML File how to print the data of XML File on Active Document Pin
Milton Karimbekallil1-Apr-06 2:50
Milton Karimbekallil1-Apr-06 2:50 
GeneralRe: After open a XML File how to print the data of XML File on Active Document Pin
Amit Agarrwal1-Apr-06 2:57
Amit Agarrwal1-Apr-06 2:57 
GeneralRe: After open a XML File how to print the data of XML File on Active Document Pin
Milton Karimbekallil1-Apr-06 4:09
Milton Karimbekallil1-Apr-06 4:09 
GeneralRe: After open a XML File how to print the data of XML File on Active Document Pin
Amit Agarrwal2-Apr-06 20:14
Amit Agarrwal2-Apr-06 20:14 
QuestionPermutation algorithm?? Pin
lris20051-Apr-06 1:13
lris20051-Apr-06 1:13 
AnswerRe: Permutation algorithm?? Pin
Waldermort2-Apr-06 5:23
Waldermort2-Apr-06 5:23 

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.