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