flat assembler
Message board for the users of flat assembler.

Index > Windows > A little help, if you may

Author
Thread Post new topic Reply to topic
Rookie



Joined: 21 Aug 2003
Posts: 44
Location: Planet Romania
Rookie 08 Jun 2004, 04:43
I have the following code:
Code:
section '.data' data readable writeable

  _timefmt db 'mm/dd/yyyy hh:mm:ss tt:',13,10,' ',0
  lpSystemTime SYSTEMTIME
  lpTimeTagStr rb 27

section '.code' code readable executable

 invoke  GetLocalTime,lpSystemTime
   invoke  GetDateFormat,0,lpSystemTime,_timefmt,lpTimeTagStr,27
       invoke  GetTimeFormat,0,lpSystemTime,_timefmt,lpTimeTagStr,27
    


It compiles, but at runtime it crashes. How come? (I'm notorious for mixing up pointers with their values. Did I do it again?)


Description: Full source code, if it helps
Download
Filename: tlm.zip
Filesize: 5.17 KB
Downloaded: 344 Time(s)


_________________
This is who I choose to be.
Post 08 Jun 2004, 04:43
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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.