How Can I give the clBuffer in cFname ??

cFname db MAX_PATH dup (0)
cFnameCommand dd 0
open db "open",0
clBuffer db 0
CommandLine dd 0
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
Posted on 2003-03-02 02:12:48 by Fred
I don't undertand what you mean. Do you want to copy clBuffer to cFname?
Posted on 2003-03-02 05:36:01 by Odyssey

Yes I want copy clBuffer to cFname
Posted on 2003-03-02 06:00:34 by Fred
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.
Posted on 2003-03-02 06:11:26 by Odyssey