;Fill ofn structure
...
.IF PassFlag==FALSE
invoke GetSaveFileName,addr ofn
.ELSE
invoke SHGetSpecialFolderPath,hWnd,ADDR FileName,NULL,NULL
invoke wsprintf,ADDR FileName,SADD("%s\AAA.BBB"),ADDR FileName
.endif
...
...
.IF PassFlag==FALSE
invoke GetSaveFileName,addr ofn
.ELSE
invoke SHGetSpecialFolderPath,hWnd,ADDR FileName,NULL,NULL
invoke wsprintf,ADDR FileName,SADD("%s\AAA.BBB"),ADDR FileName
.endif
...
PassFlag=FALSE, it is ok; PassFlag=TRUE, it can't work.
that's why?
regards
Hrm... Usually True should be ok and False should be no...
but hrm....
but hrm....
but What?
but what about saying what's wrong with the code?
:lol:
:lol:
PassFlag=TRUE, the content of AAA.BBB file is nothing.
passFlag=FALSE,the content of AAA.BBB file is ok.
passFlag=FALSE,the content of AAA.BBB file is ok.
You're trying to both read and write from/in the same string with
invoke wsprintf,ADDR FileName,SADD("%s\AAA.BBB"),ADDR FileName
It's better to use
invoke wsprintf,ADDR FileName,SADD("%s\AAA.BBB"),ADDR FileName
It's better to use
invoke lstrcat, addr FileName,SADD("%s\AAA.BBB")
Hello,Ultrano
Thanks you for response.
i did as you suggested. but the trouble is being still there.
look at your email.
regards
Thanks you for response.
i did as you suggested. but the trouble is being still there.
look at your email.
regards
hello,Ultrano
i received your email.
because you gave a rectification, it runs very well.
you alway find the accurate way to figure out.
Thanks you very much.
i received your email.
because you gave a rectification, it runs very well.
you alway find the accurate way to figure out.
Thanks you very much.
No prob ;)