Hello,
How Can I give the clBuffer in cFname ??
Thanks..
.data
cFname db MAX_PATH dup (0)
cFnameCommand dd 0
open db "open",0
clBuffer db 0
CommandLine dd 0
.code
invoke GetCommandLine
mov CommandLine, eax
invoke GetCL,1,ADDR clBuffer
.if eax == 1
; Here I must convert addr clBuffer in addr cFname
invoke MessageBox, NULL,addr clBuffer, addr CommandHelpCaption, MB_OK
invoke ExitProcess,0
.endif
How Can I give the clBuffer in cFname ??
Thanks..
.data
cFname db MAX_PATH dup (0)
cFnameCommand dd 0
open db "open",0
clBuffer db 0
CommandLine dd 0
.code
invoke GetCommandLine
mov CommandLine, eax
invoke GetCL,1,ADDR clBuffer
.if eax == 1
; Here I must convert addr clBuffer in addr cFname
invoke MessageBox, NULL,addr clBuffer, addr CommandHelpCaption, MB_OK
invoke ExitProcess,0
.endif
I don't undertand what you mean. Do you want to copy clBuffer to cFname?
Hello,
Yes I want copy clBuffer to cFname
Yes I want copy clBuffer to cFname
You could try:
invoke lstrcpy cFname, clBuffer
The first parameter to the function is the destination buffer and the other is the source.
Hope that helps.
invoke lstrcpy cFname, clBuffer
The first parameter to the function is the destination buffer and the other is the source.
Hope that helps.