flat assembler
Message board for the users of flat assembler.

Index > Windows > windows wants to send a bug report

Author
Thread Post new topic Reply to topic
HarryTuttle



Joined: 26 Sep 2003
Posts: 211
Location: Poland
HarryTuttle
Code:
include "%fasminc%/win32ax.inc"

.code
start:
      invoke GetUserName,user_log,1024
      invoke MessageBox,0,user_log,"user name is:",0
      invoke ExitProcess,0
.end start
.data
      user_log rb 1024 
    

what is wrong.
I see nothing buggy.

big THX
h

_________________
Microsoft: brings power of yesterday to computers of today.
Post 23 Apr 2004, 20:52
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 7782
Location: Kraków, Poland
Tomasz Grysztar
The second parameter to GetUserName should be a pointer to size, not size itself, try this:
Code:
include "%fasminc%/win32ax.inc"

SIZE = 1024

.code
start:
      invoke GetUserName,user_log,size
      invoke MessageBox,0,user_log,"user name is:",0
      invoke ExitProcess,0
.end start
.data
      size dd SIZE
      user_log rb SIZE    
Post 23 Apr 2004, 21:20
View user's profile Send private message Visit poster's website Reply with quote
HarryTuttle



Joined: 26 Sep 2003
Posts: 211
Location: Poland
HarryTuttle
exactly, You are right Privalov. THX

_________________
Microsoft: brings power of yesterday to computers of today.
Post 26 Apr 2004, 06:59
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.