Click here to Skip to main content
15,891,567 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: calling mspaint in MFC Pin
Madhu Nair7-May-09 4:07
Madhu Nair7-May-09 4:07 
QuestionAccess violation writing location Pin
fresh8888886-May-09 23:29
fresh8888886-May-09 23:29 
AnswerRe: Access violation writing location Pin
_AnsHUMAN_ 6-May-09 23:34
_AnsHUMAN_ 6-May-09 23:34 
AnswerRe: Access violation writing location Pin
fresh8888886-May-09 23:40
fresh8888886-May-09 23:40 
GeneralRe: Access violation writing location Pin
Madhu Nair7-May-09 0:58
Madhu Nair7-May-09 0:58 
AnswerRe: Access violation writing location Pin
Stephen Hewitt7-May-09 0:49
Stephen Hewitt7-May-09 0:49 
GeneralRe: Access violation writing location Pin
David Crow7-May-09 3:09
David Crow7-May-09 3:09 
AnswerRe: Access violation writing location Pin
fresh8888887-May-09 21:23
fresh8888887-May-09 21:23 
hi anshuman_,I have found result with the exception and known differently for between char* path="" to char path[255]="" ,thanks
<prex>
char * path="";
sprintf(path,"%s\\*",GetCurrentDirectory(MAXPATH,str));
it have error 0xC0000005: Access violation writing location
but it's right
char path[255]="";
sprintf(path,"%s\\*",GetCurrentDirectory

perfect...

char path[MAXPATH];
GetCurrentDirectory(MAXPATH,path)
WIN32_FIND_DATA findFileData;
char strFilename[255]="";
SYSTEMTIME stime;
GetLocalTime(&stime);
CString strTime="";
strTime.Format("%4d%02d%02d",stime.wYear,stime.wMonth,stime.wDay);
sprintf(strFilename,"%s\\report_invoice_%s%s.xls",path,dp->lineText,strTime);
HANDLE fHandle=FindFirstFile(strFilename,&findFileData);

if(fHandle!=INVALID_HANDLE_VALUE){
if(DeleteFile(strFilename)){
MessageBox(NULL,"删除文件成功","UDatabase",MB_OK);
}
FindClose(fHandle);
}
Wink | ;) Wink | ;) Wink | ;)
QuestionI teach what did wrongly Pin
yunpil6-May-09 23:10
yunpil6-May-09 23:10 
AnswerRe: I teach what did wrongly Pin
_AnsHUMAN_ 6-May-09 23:26
_AnsHUMAN_ 6-May-09 23:26 
JokeRe: I teach what did wrongly Pin
Divyang Mithaiwala6-May-09 23:37
Divyang Mithaiwala6-May-09 23:37 
JokeRe: I teach what did wrongly Pin
_AnsHUMAN_ 6-May-09 23:43
_AnsHUMAN_ 6-May-09 23:43 
Questionstring concatenation using pointer Pin
hrishiS6-May-09 23:09
hrishiS6-May-09 23:09 
AnswerRe: string concatenation using pointer Pin
_AnsHUMAN_ 6-May-09 23:15
_AnsHUMAN_ 6-May-09 23:15 
GeneralRe: string concatenation using pointer Pin
hrishiS6-May-09 23:17
hrishiS6-May-09 23:17 
GeneralRe: string concatenation using pointer Pin
_AnsHUMAN_ 6-May-09 23:24
_AnsHUMAN_ 6-May-09 23:24 
GeneralRe: string concatenation using pointer Pin
hrishiS6-May-09 23:39
hrishiS6-May-09 23:39 
AnswerRe: string concatenation using pointer Pin
rrrado6-May-09 23:18
rrrado6-May-09 23:18 
GeneralRe: string concatenation using pointer Pin
hrishiS6-May-09 23:19
hrishiS6-May-09 23:19 
AnswerRe: string concatenation using pointer Pin
CPallini6-May-09 23:23
mveCPallini6-May-09 23:23 
GeneralRe: string concatenation using pointer Pin
hrishiS6-May-09 23:34
hrishiS6-May-09 23:34 
GeneralRe: string concatenation using pointer Pin
CPallini6-May-09 23:45
mveCPallini6-May-09 23:45 
GeneralRe: string concatenation using pointer Pin
hrishiS6-May-09 23:49
hrishiS6-May-09 23:49 
GeneralRe: string concatenation using pointer Pin
hrishiS6-May-09 23:50
hrishiS6-May-09 23:50 
GeneralRe: string concatenation using pointer Pin
CPallini6-May-09 23:56
mveCPallini6-May-09 23:56 

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.