flat assembler
Message board for the users of flat assembler.
  
       
      Index
      > Macroinstructions > Help me with macros!! | 
  
| Author | 
  | 
              
| 
                  
                   LocoDelAssembly 22 Sep 2006, 03:06 
                  I don't know how to tokenize a string but I now the inverse so here it is  
                  
                Code: include '%fasminc%\win32ax.inc' main: macro loadapi api,lib { invoke LoadLibrary,lib invoke GetProcAddress,eax,`api ;the problem begins here mov [_#api],eax jmp @f _#api dd 0 @@: } loadapi URLDownloadToFileA,'urlmon.dll' invoke _URLDownloadToFileA,0,htmlfile,localfile,0,0 ret htmlfile db 'http://flatassembler.net/download.php',0 localfile db 'html.txt',0 .end main Check if it helps (I hope so) Regards  | 
              |||
                  
  | 
              
| 
                  
                   OzzY 22 Sep 2006, 03:11 
                  Yes, Thanks!!
 
                  
                That was what I was looking for!!  | 
              |||
                  
  | 
              
< Last Thread | Next Thread >  | 
    
Forum Rules: 
  | 
    
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.