Re: masm include-problem



steve <blunt.axe.basic@xxxxxxxxx> schrieb:


On May 15, 7:57 pm, dl <d...@xxxxxx> wrote:
And then i geht this errors, when i start assembling:

\masm32\include\windows.inc(156) : error A2004: symbol type conflict : bool
\masm32\include\windows.inc(7835) : error A2179: structure improperly
initialized

Try placing this at the very top of your code:
; code =================
.486
.model flat,stdcall
option casemap:none

include \masm32\include\windows.inc
;....etc
;================= end code

that should fix it.



Thank you for answer. But i did this already. This is my "header":


.386
.model flat, stdcall
option casemap :none

include \masm32\include\windows.inc
include \masm32\include\user32.inc
include \masm32\include\kernel32.inc

includelib \masm32\lib\user32.lib
includelib \masm32\lib\kernel32.lib

I tried from .386 and 4.86: Same result

BTW: Now i work with RadAsm and no longer with VisualStudio and with
qeditor.exe from the masm-package. But same Problems.

What i want is this: I will learn to modify programs (not for criminal
puposes. It's just technical fascination)

My method is this: I program small simple Programs in C (ANSI; because
at the beginning the resulted exe-file has to be very small and simple).

Then i disassemble the exe and try to re-assemble it. I try this
disassemblers: objconv and IDAProFree50.


Of course, although you can save with objconv a masm-compatible
asm-file, you have to change many things in this file, before the
assembler will accept it.

And here are the problems. The sourcecode i am talking about is the
result of a disassembler.

The success depends from the exe-file. A very small program i was able
to re-assemble without any problem.

I am a beginner in asm. And so this problems are normal ;-)


--
Greetings



.



Relevant Pages

  • Re: Behringer Eurodexk MX3282 fader problem
    ... distributor) simply to disassemble and re-assemble before evm being able to do ... There's no reason why someone with patience and experience with electronic servicing can't at least do some exploratory surgery but you don't want to have to tell them which screws to remove, how to use a volt meter, how to check continuity, and how to remove a ribbon connector without further damaging it. ...
    (rec.audio.pro)
  • Re: "We Never Use Assembly Language"
    ... I have _TONS_ of PEs that RosAsm fails to ... Disassemble and to Re-Assemble in two click, ...
    (alt.lang.asm)
  • Re: ReactOS takes another big hit
    ... Maybe be i should Disassemble and Re-Assemble KERNEL32.dll with RosAsm, ... and pass the result down to one another "Alex", ...
    (alt.lang.asm)
  • Re: hp49g+ and ROM codes like SWAP
    ... If I disassemble the swap sys-rpl command, ... written in the first post. ... But if I re-assemble the code with the command ASM in the Emacs menu ...
    (comp.sys.hp48)