flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
LocoDelAssembly 22 Aug 2010, 13:36
How are you storing that structure in the resource section? If you start showing the password first the problem also happens? (Just checking the program is not crashing for some reason when accessing the username)
|
|||
![]() |
|
Nameless 22 Aug 2010, 17:40
i store them from a delphi application, and no, no matter what i did, only username shows, if i tried to display password then username, password is empty and username shows.
im porting the code from my delphi code, and in delphi it works fine, i guess its something in dealing with the struct in fasm |
|||
![]() |
|
LocoDelAssembly 22 Aug 2010, 17:56
But are Delphi strings UNICODE? Are you using win32a*.inc or win32w*.inc?
For a quick test change dw to db, recompile and run. |
|||
![]() |
|
Yardman 22 Aug 2010, 17:59
[ Post removed by author. ]
Last edited by Yardman on 04 Apr 2012, 03:55; edited 1 time in total |
|||
![]() |
|
Nameless 22 Aug 2010, 20:56
yea, username was always "john" and password was "123456"
|
|||
![]() |
|
baldr 25 Aug 2010, 19:04
Nameless,
Yardman has a point: did you ensure that szUsername and szPassword members in that resource are exactly MAX_PATH words in size? It seems that you didn't define that resource as USERINFORMATION_STRUCT <"john", 0>, <"123456", 0> — that won't compile unless you change dw to du. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.