|
-
April 16th, 1999, 09:15 AM
#1
Errror handling
Hi,
I'm trying to capture my errors and I'm finding it hard to use the resource Id in order to be able to translate my application quick and easy.
How would I do this?
if(sf.Open( O_RDONLY) == FALSE){
int errorCode = sf.LastError();
SysErrString errStr(errorCode);
int iResponse = AfxMessageBox(errStr, MB_YESNO|MB_ICONERROR);
}
This will give me an error "The system cannot find the file specified"
I need to specify which file I'm talking about. I found this function AfxFormatString1 or AfxFormatString2. How can I use this to implement:
"Could not open the file 1%" would this be what I write in IDS_ERROR.
How do I get 1% to be the sf? And how do I pass the system error "errStr"
Thanks, If i'm confusing you please asked me again. I'm a little confused on how this is done
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|