Click here to Skip to main content
15,909,953 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRFC822 / rfc1123 date / time parser? Pin
Member 9614-Feb-03 10:52
Member 9614-Feb-03 10:52 
AnswerRe: RFC822 / rfc1123 date / time parser? Pin
palbano14-Feb-03 11:21
palbano14-Feb-03 11:21 
GeneralRe: RFC822 / rfc1123 date / time parser? Pin
Member 9614-Feb-03 12:47
Member 9614-Feb-03 12:47 
GeneralRe: RFC822 / rfc1123 date / time parser? Pin
palbano14-Feb-03 13:06
palbano14-Feb-03 13:06 
AnswerRe: RFC822 / rfc1123 date / time parser? Pin
Gisle Vanem14-Feb-03 13:43
Gisle Vanem14-Feb-03 13:43 
GeneralEasy XML Pin
DJWALSH14-Feb-03 10:14
DJWALSH14-Feb-03 10:14 
GeneralRe: Easy XML Pin
Neville Franks14-Feb-03 11:01
Neville Franks14-Feb-03 11:01 
GeneralMakes NO sense :-\ Pin
will138314-Feb-03 9:54
will138314-Feb-03 9:54 
Ok here's the code

hdrop = (HDROP) ::GlobalLock ( hg );

if ( NULL == hdrop )
{
::GlobalUnlock ( hg );
return;
}
uNumFiles = ::DragQueryFile ( hdrop, -1, NULL, 0 );

for ( UINT uFile = 0; uFile < uNumFiles; uFile++ )
{
// Get the next filename from the HDROP info.
if ( DragQueryFile ( hdrop, uFile, szNextFile, MAX_PATH ) > 0 )
{
// get the orginal filename and determine if the the extension is upper case or
// lowercase.
origfile = szNextFile;
origfile.Delete(0,(origfile.GetLength() - 4));
BOOL isUpper = ::isupper(origfile[1]);
// Now do the rest.
if ( file.Open( szNextFile, CFile::modeRead) ){
CFileFind fileFind;
if ( fileFind.FindFile ( (path + _T("\\") + file.GetFileTitle() ),0) ){
CString temp = file.GetFileTitle();


makes sense right? get access to the clip board, get the file list from the clip board and loop through the file list, getting the file. My problem is that the file.Open function returns a file name that is all Capital letters when getting the information from a media drive (read CDROM). So if a file is lowercase it the file.Open will automatically convert the filename to uppercase. Confused | :confused:
This is unacceptable becuase now the file that I copy over is no longer the same file Mad | :mad:

Any ideas

Dan Willis
GeneralRe: Makes NO sense :-\ Pin
Michael Dunn14-Feb-03 10:04
sitebuilderMichael Dunn14-Feb-03 10:04 
GeneralRe: Makes NO sense :-\ Pin
will138314-Feb-03 10:13
will138314-Feb-03 10:13 
GeneralRe: Makes NO sense :-\ Pin
Tim Smith14-Feb-03 10:17
Tim Smith14-Feb-03 10:17 
GeneralRe: Makes NO sense :-\ Pin
will138314-Feb-03 10:22
will138314-Feb-03 10:22 
GeneralRe: Makes NO sense :-\ Pin
palbano14-Feb-03 11:18
palbano14-Feb-03 11:18 
Generalowner-drawn scroll bar Pin
Chris Losinger14-Feb-03 9:52
professionalChris Losinger14-Feb-03 9:52 
GeneralRe: owner-drawn scroll bar Pin
Neville Franks14-Feb-03 12:41
Neville Franks14-Feb-03 12:41 
GeneralRe: owner-drawn scroll bar Pin
PJ Arends14-Feb-03 14:56
professionalPJ Arends14-Feb-03 14:56 
GeneralRe: owner-drawn scroll bar Pin
Gary R. Wheeler16-Feb-03 5:37
Gary R. Wheeler16-Feb-03 5:37 
Generalsimple GetBuffer ques Pin
ns14-Feb-03 9:39
ns14-Feb-03 9:39 
GeneralRe: simple GetBuffer ques Pin
Joaquín M López Muñoz14-Feb-03 9:46
Joaquín M López Muñoz14-Feb-03 9:46 
GeneralRe: simple GetBuffer ques Pin
Tim Smith14-Feb-03 9:54
Tim Smith14-Feb-03 9:54 
Generalokay! Pin
nss14-Feb-03 10:35
nss14-Feb-03 10:35 
GeneralRe: simple GetBuffer ques Pin
Gary R. Wheeler16-Feb-03 5:54
Gary R. Wheeler16-Feb-03 5:54 
QuestionHow can I print a bitmap cleary? Pin
DanYELL14-Feb-03 9:01
DanYELL14-Feb-03 9:01 
AnswerRe: How can I print a bitmap cleary? Pin
Chris Losinger14-Feb-03 9:13
professionalChris Losinger14-Feb-03 9:13 
GeneralSocket ::accept() call Pin
Swinefeaster14-Feb-03 8:29
Swinefeaster14-Feb-03 8:29 

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.