|
-
June 11th, 2005, 12:55 AM
#1
MASM32 : how to return a string?
I am writing a dll in masm32 for use with vb. how do i return a string? I am still learning masm32, please help me. The proc works fine in masm32 but returns nothing in vb or crashes.
Thanks.
Code:
GetNewTempFile proc strPrefix :LPCSTR, strNewFileName:LPSTR
local buf[256] word
local b[256] word
invoke GetTempPath,256,addr buf
invoke GetTempFileName,addr buf,strPrefix,0,addr b
invoke lstrlen,addr strNewFileName
ret
GetNewTempFile EndP
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|