;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
...

PassFlag=FALSE, it is ok; PassFlag=TRUE, it can't work.

that's why?

regards
Posted on 2005-11-18 21:38:14 by dcskm4200
Hrm... Usually True should be ok and False should be no...

but hrm....
Posted on 2005-11-18 22:33:21 by JimmyClif
but What?
Posted on 2005-11-20 09:19:19 by dcskm4200
but what about saying what's wrong with the code?

:lol:
Posted on 2005-11-20 09:37:02 by JimmyClif
PassFlag=TRUE, the content of AAA.BBB file is nothing.
passFlag=FALSE,the content of AAA.BBB file is ok.
Posted on 2005-11-20 09:57:31 by dcskm4200
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 lstrcat, addr FileName,SADD("%s\AAA.BBB")
Posted on 2005-11-21 00:07:35 by Ultrano
Hello,Ultrano
Thanks you for response.
i did as you suggested. but the trouble is being still there.

look at your email.


regards
Posted on 2005-11-21 03:02:26 by dcskm4200
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.

Posted on 2005-11-22 21:32:00 by dcskm4200
No prob ;)
Posted on 2005-11-23 03:37:30 by Ultrano