Click here to Skip to main content
15,920,602 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How can I read the attributes of files? Pin
ritz123418-Apr-08 3:42
ritz123418-Apr-08 3:42 
GeneralRe: How can I read the attributes of files? Pin
David Crow18-Apr-08 3:57
David Crow18-Apr-08 3:57 
GeneralRe: How can I read the attributes of files? Pin
ritz123418-Apr-08 4:01
ritz123418-Apr-08 4:01 
GeneralRe: How can I read the attributes of files? Pin
David Crow18-Apr-08 4:06
David Crow18-Apr-08 4:06 
GeneralRe: How can I read the attributes of files? Pin
ritz123418-Apr-08 4:11
ritz123418-Apr-08 4:11 
QuestionRe: How can I read the attributes of files? Pin
David Crow18-Apr-08 4:12
David Crow18-Apr-08 4:12 
GeneralRe: How can I read the attributes of files? Pin
ritz123418-Apr-08 4:19
ritz123418-Apr-08 4:19 
GeneralRe: How can I read the attributes of files? Pin
David Crow18-Apr-08 4:39
David Crow18-Apr-08 4:39 
ritz1234 wrote:
The program to open the file depends on its extension that is registered

with OS. OS uses that extension to open an application for that file.


I'm well aware of this. Wink | ;)

ritz1234 wrote:
Right now I am not going anywhere, and waiting for your reply.


I tried your code snippet and it worked as expected. The only change I made was to the messages, like:

if (! res)
{
    TCHAR szError[1024];
    ex.GetErrorMessage(szError, 1024);
    AfxMessageBox(szError);
}
else
    AfxMessageBox("The file was opened successfully.");
Are you opening SerialNumbers.txt with Notepad?

"Love people and use things, not love things and use people." - Unknown

"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne


AnswerRe: How can I read the attributes of files? Pin
Hamid_RT18-Apr-08 20:29
Hamid_RT18-Apr-08 20:29 
GeneralDynamic c++ union or memory map Pin
Member 336349818-Apr-08 2:20
Member 336349818-Apr-08 2:20 
QuestionRe: Dynamic c++ union or memory map Pin
David Crow18-Apr-08 2:56
David Crow18-Apr-08 2:56 
GeneralRe: Dynamic c++ union or memory map Pin
Member 336349818-Apr-08 3:09
Member 336349818-Apr-08 3:09 
GeneralRe: Dynamic c++ union or memory map Pin
CPallini18-Apr-08 3:15
mveCPallini18-Apr-08 3:15 
GeneralDifference between XP and XPe Pin
FPeeters18-Apr-08 1:12
FPeeters18-Apr-08 1:12 
GeneralRe: Difference between XP and XPe Pin
Cedric Moonen18-Apr-08 2:40
Cedric Moonen18-Apr-08 2:40 
GeneralRe: Difference between XP and XPe Pin
FPeeters18-Apr-08 2:56
FPeeters18-Apr-08 2:56 
GeneralRe: Difference between XP and XPe Pin
Cedric Moonen18-Apr-08 3:06
Cedric Moonen18-Apr-08 3:06 
GeneralRe: Difference between XP and XPe Pin
FPeeters18-Apr-08 3:53
FPeeters18-Apr-08 3:53 
GeneralRe: Difference between XP and XPe Pin
David Crow18-Apr-08 4:51
David Crow18-Apr-08 4:51 
GeneralVisual C++ MFC program not on Windows Pin
Kwanalouie18-Apr-08 1:09
Kwanalouie18-Apr-08 1:09 
GeneralRe: Visual C++ MFC program not on Windows Pin
Iain Clarke, Warrior Programmer18-Apr-08 1:15
Iain Clarke, Warrior Programmer18-Apr-08 1:15 
GeneralRe: Visual C++ MFC program not on Windows Pin
Rajesh R Subramanian18-Apr-08 1:18
professionalRajesh R Subramanian18-Apr-08 1:18 
GeneralRe: Visual C++ MFC program not on Windows Pin
Cedric Moonen18-Apr-08 1:21
Cedric Moonen18-Apr-08 1:21 
QuestionRe: Visual C++ MFC program not on Windows Pin
CPallini18-Apr-08 1:30
mveCPallini18-Apr-08 1:30 
GeneralRe: Visual C++ MFC program not on Windows Pin
ThatsAlok18-Apr-08 3:46
ThatsAlok18-Apr-08 3:46 

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.