Author Topic: Patch my code  (Read 16304 times)

Dubby

  • Member
  • **
  • Posts: 60
Re: Patch my code
« Reply #30 on: December 04, 2012, 01:04:09 AM »
I can re-assemble qword's pe without any problem. MASM SDK 11 here.

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 7037
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: Patch my code
« Reply #31 on: December 04, 2012, 01:58:21 AM »
qWord's PE example build fine here with masm32 version 11.



Microsoft (R) Macro Assembler Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.

 Assembling: K:\qword_pe\PE.asm

***********
ASCII build
***********

Microsoft (R) Incremental Linker Version 5.12.8078
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.

 Volume in drive K is 2tb_k
 Volume Serial Number is 88B3-84DA

 Directory of K:\qword_pe

12/02/2012  06:33 PM             4,960 PE.asm
12/04/2012  01:58 AM             4,608 PE.exe
12/04/2012  01:58 AM             4,514 PE.obj
               3 File(s)         14,082 bytes
               0 Dir(s)  972,622,176,256 bytes free
Press any key to continue . . .


Hmmmm, slightly later, it builds fine but the file open dialog does not display and it always returns with,


no file selected
Press any key to continue ...


Its after 2am so I might have a look at it tomorrow.  :P
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

qWord

  • Member
  • *****
  • Posts: 1473
  • The base type of a type is the type itself
    • SmplMath macros
Re: Patch my code
« Reply #32 on: December 04, 2012, 03:09:25 AM »
Hmmmm, slightly later, it builds fine but the file open dialog does not display and it always returns with,


no file selected
Press any key to continue ...

Strange, I've also test it with WinXP and it does work.
Anyone has the same problem?
MREAL macros - when you need floating point arithmetic while assembling!

dedndave

  • Member
  • *****
  • Posts: 8825
  • Still using Abacus 2.0
    • DednDave
Re: Patch my code
« Reply #33 on: December 04, 2012, 03:48:24 AM »
if i build it with masm32 v10, i get the exact same errors as Heather...
Code: [Select]
pe.asm(131) : error A2008: syntax error : &
 fn(5): Macro Called From
  pe.asm(131): Main Line Code
pe.asm(144) : error A2008: syntax error : &
 rv(5): Macro Called From
  pe.asm(144): Main Line Code
pe.asm(145) : error A2008: syntax error
pe.asm(146) : error A2008: syntax error : cbSize
pe.asm(147) : error A2008: syntax error
pe.asm(158) : fatal error A1011: directive must be in control block

if i build with masm32 v11, no problem

something tells me that Heather is not using the latest version of the masm32 sdk  :biggrin:

hfheatherfox07

  • Member
  • ***
  • Posts: 464
Re: Patch my code
« Reply #34 on: December 04, 2012, 06:29:24 AM »
My Sincere apologies qWord  :(
dedndave is right !.... I was using MASM10 I forgot I switched folders .... I was working on something that I needed Kernel32.inc and Kernel32.lib from version 10

Sorry ....
Your example works
Your code and your skills will be assimilated. Your programming language is irrelevant.
We are the ASM Borg and you will become part of us. Compile and be assembled.

dedndave

  • Member
  • *****
  • Posts: 8825
  • Still using Abacus 2.0
    • DednDave
Re: Patch my code
« Reply #35 on: December 04, 2012, 06:32:31 AM »
dedndave is right !....

that's the first time, this week   :lol:

hfheatherfox07

  • Member
  • ***
  • Posts: 464
Re: Patch my code
« Reply #36 on: December 04, 2012, 07:00:13 AM »
Hmmmm, slightly later, it builds fine but the file open dialog does not display and it always returns with,


no file selected
Press any key to continue ...

Strange, I've also test it with WinXP and it does work.
Anyone has the same problem?

It does the same thing here ....you have to click on it a few times ...and sometimes it just works
I have service pack 2 on my xp ...if that makes a difference
Your code and your skills will be assimilated. Your programming language is irrelevant.
We are the ASM Borg and you will become part of us. Compile and be assembled.

hfheatherfox07

  • Member
  • ***
  • Posts: 464
Re: Patch my code
« Reply #37 on: December 04, 2012, 07:18:48 AM »
I am assuming it has something to do with the way it handles the file name ....
You get this in the file name box before you select ... always different characters too
Code: [Select]
p¼§
Your code and your skills will be assimilated. Your programming language is irrelevant.
We are the ASM Borg and you will become part of us. Compile and be assembled.

qWord

  • Member
  • *****
  • Posts: 1473
  • The base type of a type is the type itself
    • SmplMath macros
Re: Patch my code
« Reply #38 on: December 04, 2012, 07:33:10 AM »
I am assuming it has something to do with the way it handles the file name ....
You get this in the file name box before you select ... always different characters too
Code: [Select]
p¼§
yep, I simply forget to write a termination zero in the buffer pointed by OPENFILENAME.lpstrFile.
MREAL macros - when you need floating point arithmetic while assembling!

hfheatherfox07

  • Member
  • ***
  • Posts: 464
Re: Patch my code
« Reply #39 on: December 04, 2012, 07:46:46 AM »
I am assuming it has something to do with the way it handles the file name ....
You get this in the file name box before you select ... always different characters too
Code: [Select]
p¼§
yep, I simply forget to write a termination zero in the buffer pointed by OPENFILENAME.lpstrFile.

Works %100 here  :t
Your code and your skills will be assimilated. Your programming language is irrelevant.
We are the ASM Borg and you will become part of us. Compile and be assembled.

Magnum

  • Member
  • *****
  • Posts: 2309
Re: Patch my code
« Reply #40 on: December 04, 2012, 07:54:45 AM »
Works fine on XP SP3.

Take care,
                   Andy

Ubuntu-mate-18.04-desktop-amd64

http://www.goodnewsnetwork.org

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 7037
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: Patch my code
« Reply #41 on: December 04, 2012, 09:46:58 AM »
Yep, works fine here. I don't claim to be coherant at 2am.  :biggrin:
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy: