News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Direct2d button

Started by BugCatcher, August 31, 2022, 01:04:44 AM

Previous topic - Next topic

BugCatcher

 Here is a direct2d button cut out of my game engine. Code as is. Com tables not a 100% complete. Just the ones I've used.

jj2007

includes/d2d1.inc(3) : Error A2106: Cannot open file: "c:/Dx32Includes/d2dbasetypes.inc" [ENOENT]
includes/d2d1.inc(3): Included by
  Tmp_File.asm(5): Main line code
includes/d2d1.inc(4) : Error A2106: Cannot open file: "c:/Dx32Includes/dcommon.inc" [ENOENT]
includes/d2d1.inc(4): Included by
  Tmp_File.asm(5): Main line code
includes/d2d1.inc(78) : Error A2210: Syntax error: color
includes/d2d1.inc(78): Included by
  Tmp_File.asm(5): Main line code
includes/d2d1.inc(83) : Error A2210: Syntax error: transform
includes/d2d1.inc(83): Included by
  Tmp_File.asm(5): Main line code
includes/d2d1.inc(93) : Error A2210: Syntax error: startPoint
includes/d2d1.inc(93): Included by
  Tmp_File.asm(5): Main line code
includes/d2d1.inc(94) : Error A2210: Syntax error: endPoint
includes/d2d1.inc(94): Included by
  Tmp_File.asm(5): Main line code
includes/d2d1.inc(98) : Error A2210: Syntax error: center
includes/d2d1.inc(98): Included by
  Tmp_File.asm(5): Main line code
includes/d2d1.inc(99) : Error A2210: Syntax error: gradientOriginOffset
includes/d2d1.inc(99): Included by
  Tmp_File.asm(5): Main line code
includes/d2d1.inc(163) : Error A2210: Syntax error: point1
includes/d2d1.inc(163): Included by
  Tmp_File.asm(5): Main line code
includes/d2d1.inc(164) : Error A2210: Syntax error: point2
includes/d2d1.inc(164): Included by
  Tmp_File.asm(5): Main line code
includes/d2d1.inc(165) : Error A2210: Syntax error: point3
includes/d2d1.inc(165): Included by
  Tmp_File.asm(5): Main line code
includes/d2d1.inc(169) : Error A2210: Syntax error: point1
includes/d2d1.inc(169): Included by
  Tmp_File.asm(5): Main line code
includes/d2d1.inc(170) : Error A2210: Syntax error: point2
includes/d2d1.inc(170): Included by
  Tmp_File.asm(5): Main line code
includes/d2d1.inc(171) : Error A2210: Syntax error: point3
includes/d2d1.inc(171): Included by
  Tmp_File.asm(5): Main line code
includes/d2d1.inc(193) : Error A2210: Syntax error: point
includes/d2d1.inc(193): Included by
  Tmp_File.asm(5): Main line code
includes/d2d1.inc(194) : Error A2210: Syntax error: size_
includes/d2d1.inc(194): Included by
  Tmp_File.asm(5): Main line code
includes/d2d1.inc(201) : Error A2210: Syntax error: point1
includes/d2d1.inc(201): Included by
  Tmp_File.asm(5): Main line code
includes/d2d1.inc(202) : Error A2210: Syntax error: point2
includes/d2d1.inc(202): Included by
  Tmp_File.asm(5): Main line code
includes/d2d1.inc(206) : Error A2210: Syntax error: point_
includes/d2d1.inc(206): Included by
  Tmp_File.asm(5): Main line code
includes/d2d1.inc(212) : Error A2210: Syntax error: rect_
includes/d2d1.inc(212): Included by
  Tmp_File.asm(5): Main line code
includes/d2d1.inc(233) : Error A2210: Syntax error: contentBounds
includes/d2d1.inc(233): Included by
  Tmp_File.asm(5): Main line code
includes/d2d1.inc(236) : Error A2210: Syntax error: maskTransform
includes/d2d1.inc(236): Included by
  Tmp_File.asm(5): Main line code
includes/d2d1.inc(289) : Error A2210: Syntax error: pixelSize
includes/d2d1.inc(289): Included by
  Tmp_File.asm(5): Main line code
includes/d2d1.inc(301) : Error A2210: Syntax error: tag1
includes/d2d1.inc(301): Included by
  Tmp_File.asm(5): Main line code
includes/d2d1.inc(302) : Error A2210: Syntax error: tag2
includes/d2d1.inc(302): Included by
  Tmp_File.asm(5): Main line code
includes/d2d1.inc(303) : Error A2210: Syntax error: transform
includes/d2d1.inc(303): Included by
  Tmp_File.asm(5): Main line code
includes/d2d1.inc(490) : Error A2102: Symbol not defined : D2D1_POINT_2F
STDMETHOD(2)[Dx32MacroHelpers.inc]: Macro called from
  includes/d2d1.inc(490): Included by
   Tmp_File.asm(5): Main line code
includes/d2d1.inc(491) : Error A2102: Symbol not defined : D2D1_POINT_2F
STDMETHOD(2)[Dx32MacroHelpers.inc]: Macro called from
  includes/d2d1.inc(491): Included by
   Tmp_File.asm(5): Main line code
includes/d2d1.inc(507) : Error A2102: Symbol not defined : D2D1_POINT_2F
STDMETHOD(2)[Dx32MacroHelpers.inc]: Macro called from
  includes/d2d1.inc(507): Included by
   Tmp_File.asm(5): Main line code
includes/d2d1.inc(508) : Error A2102: Symbol not defined : D2D1_POINT_2F
STDMETHOD(2)[Dx32MacroHelpers.inc]: Macro called from
  includes/d2d1.inc(508): Included by
   Tmp_File.asm(5): Main line code
includes/d2d1.inc(551) : Error A2102: Symbol not defined : D2D1_POINT_2F
STDMETHOD(2)[Dx32MacroHelpers.inc]: Macro called from
  includes/d2d1.inc(551): Included by
   Tmp_File.asm(5): Main line code
includes/d2d1.inc(552) : Error A2102: Symbol not defined : D2D1_POINT_2F
STDMETHOD(2)[Dx32MacroHelpers.inc]: Macro called from
  includes/d2d1.inc(552): Included by
   Tmp_File.asm(5): Main line code
includes/d2d1.inc(754) : Error A2102: Symbol not defined : D2D1_SIZE_U
STDMETHOD(2)[Dx32MacroHelpers.inc]: Macro called from
  includes/d2d1.inc(754): Included by
   Tmp_File.asm(5): Main line code
includes/d2d1.inc(788) : Error A2102: Symbol not defined : D2D1_TAG
STDMETHOD(2)[Dx32MacroHelpers.inc]: Macro called from
  includes/d2d1.inc(788): Included by
   Tmp_File.asm(5): Main line code
includes/wincodec.inc(823) : Error A2084: Colon is expected
STDMETHOD(3)[Dx32MacroHelpers.inc]: Macro called from
  includes/wincodec.inc(823): Included by
   Tmp_File.asm(6): Main line code
includes/wincodec.inc(823) : Error A2210: Syntax error: Commit
STDMETHOD(4)[Dx32MacroHelpers.inc]: Macro called from
  includes/wincodec.inc(823): Included by
   Tmp_File.asm(6): Main line code
includes/dxgi.inc(3) : Error A2106: Cannot open file: "c:/Dx32Includes/dxgicommon.inc" [ENOENT]
includes/dxgi.inc(3): Included by
  Tmp_File.asm(7): Main line code
includes/dxgi.inc(4) : Error A2106: Cannot open file: "c:/Dx32Includes/dxgitype.inc" [ENOENT]
includes/dxgi.inc(4): Included by
  Tmp_File.asm(7): Main line code
includes/dxgi.inc(5) : Error A2106: Cannot open file: "c:/Dx32Includes/dxgiformat.inc" [ENOENT]
includes/dxgi.inc(5): Included by
  Tmp_File.asm(7): Main line code
includes/dxgi.inc(57) : Error A2167: Missing quotation mark in string
includes/dxgi.inc(57): Included by
  Tmp_File.asm(7): Main line code
includes/dxgi.inc(133) : Error A2210: Syntax error: RefreshRate
includes/dxgi.inc(133): Included by
  Tmp_File.asm(7): Main line code
includes/dxgi.inc(134) : Error A2210: Syntax error: Format
includes/dxgi.inc(134): Included by
  Tmp_File.asm(7): Main line code
includes/dxgi.inc(141) : Error A2210: Syntax error: SampleDesc
includes/dxgi.inc(141): Included by
  Tmp_File.asm(7): Main line code
includes/dxgi.inc(219) : Error A2102: Symbol not defined : DXGI_FORMAT
STDMETHOD(2)[Dx32MacroHelpers.inc]: Macro called from
  includes/dxgi.inc(219): Included by
   Tmp_File.asm(7): Main line code
includes/dxgi.inc(266) : Error A2084: Colon is expected
STDMETHOD(3)[Dx32MacroHelpers.inc]: Macro called from
  includes/dxgi.inc(266): Included by
   Tmp_File.asm(7): Main line code
includes/dxgi.inc(266) : Error A2210: Syntax error: Unmap
STDMETHOD(4)[Dx32MacroHelpers.inc]: Macro called from
  includes/dxgi.inc(266): Included by
   Tmp_File.asm(7): Main line code
includes/dxgi.inc(320) : Error A2102: Symbol not defined : DXGI_FORMAT
STDMETHOD(2)[Dx32MacroHelpers.inc]: Macro called from
  includes/dxgi.inc(320): Included by
   Tmp_File.asm(7): Main line code
includes/dxgi.inc(322) : Error A2084: Colon is expected
STDMETHOD(3)[Dx32MacroHelpers.inc]: Macro called from
  includes/dxgi.inc(322): Included by
   Tmp_File.asm(7): Main line code
includes/dxgi.inc(322) : Error A2210: Syntax error: WaitForVBlank
STDMETHOD(4)[Dx32MacroHelpers.inc]: Macro called from
  includes/dxgi.inc(322): Included by
   Tmp_File.asm(7): Main line code
includes/dxgi.inc(324) : Error A2084: Colon is expected
STDMETHOD(3)[Dx32MacroHelpers.inc]: Macro called from
  includes/dxgi.inc(324): Included by
   Tmp_File.asm(7): Main line code
includes/dxgi.inc(324) : Error A2210: Syntax error: ReleaseOwnership
STDMETHOD(4)[Dx32MacroHelpers.inc]: Macro called from
  includes/dxgi.inc(324): Included by
   Tmp_File.asm(7): Main line code
includes/dxgi.inc(324) : Fatal error A1113: Too many errors

zedd151

#2
Hmmm.


Tried to reassemble but apparently some of the include files have hard coded paths
Running Windows 7, 32 bit btw.

BugCatcher

Ya I forgot the embeded includes. Me bad

BugCatcher


zedd151

Quote from: BugCatcher on August 31, 2022, 03:40:01 AM
Fixed (hopefully)
The executable still crashes for me. "Access Violation" reported in olly


Upon attempt reassemble using the batch file:
Direct2dButton.asm(450) : error A2085: instruction or register not accepted in c
urrent CPU mode
Direct2dButton.asm(458) : error A2085: instruction or register not accepted in c
urrent CPU mode
Direct2dButton.asm(466) : error A2085: instruction or register not accepted in c
urrent CPU mode
Direct2dButton.asm(474) : error A2085: instruction or register not accepted in c
urrent CPU mode
_

zedd151

upon adding cpu .686p




Microsoft (R) Macro Assembler Version 6.14.8444
Copyright (C) Microsoft Corp 1981-1997.  All rights reserved.


Assembling: Direct2dButton.asm


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


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


LINK : warning LNK4089: all references to "gdi32.dll" discarded by /OPT:REF
Volume in drive C has no label.
Volume Serial Number is 50D3-FB04


Directory of C:\Users\Administrator\Downloads\Direct2dButton (1)\Direct2dButton




File Not Found
Press any key to continue . . .

Yes but what file ??


Anyway, is it possible that it runs on your computer because you have something (in your set up) that is not included in the download?
What version ml.exe and  link.exe do you have BugCatcher? And what OS are you running?

jj2007

Once upon a time, everybody in this forum used paths like ...

\Masm32\  and
\Masm32\include\

... and it worked on all members' machines, even if they had installed the Masm32 SDK on Z:\Masm32 :cool:

zedd151

Quote from: Swordfish on August 31, 2022, 03:57:16 AM
Anyway, is it possible that it runs on your computer because you have something (in your set up) that is not included in the download?
The reason that I ask is that the included pre-assembled executable should run right 'out of the box'. But it doesn't.

jj2007

Latest version, using makeit.bat :sad:

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

LINK : fatal error LNK1117: syntax error in option "SUBSYSTEM:WINDOWS/DEBUG"

BugCatcher

I put .686 in the masm32rt.inc

zedd151


It assembles but still crashes...

Problem signature:
  Problem Event Name:   APPCRASH
  Application Name:   Direct2dButton.exe
  Application Version:   0.0.0.0
  Application Timestamp:   630e62b4
  Fault Module Name:   Direct2dButton.exe
  Fault Module Version:   0.0.0.0
  Fault Module Timestamp:   630e62b4
  Exception Code:   c0000005
  Exception Offset:   000014dc
  OS Version:   6.1.7601.2.1.0.256.48
  Locale ID:   1033
  Additional Information 1:   0a9e
  Additional Information 2:   0a9e372d3b4ad19135b953a78882e789
  Additional Information 3:   0a9e
  Additional Information 4:   0a9e372d3b4ad19135b953a78882e789

Hope this info is useful.

HSE

Building after path corrections and working perfectly here  :thumbsup:
Equations in Assembly: SmplMath

zedd151

Quote from: HSE on August 31, 2022, 08:28:24 AM
Building after path corrections and working perfectly here  :thumbsup:
What OS? Or more importantly what .dll versions? I have win 7 32 bit and whatever .dll versions come with it. An unmodified masm32 SDK install. Trying to find out where issue I'm having originates. I'll look at it again when I'm back at my computer
Later...


d2d1.dll          version 6.1.7601.17514
dxgi.dll          version 6.1.7601.17514
windowscodecs.dll version 6.1.7601.17514
As before it assembles, but crashes. Same error as before. :(


Later on, I'll reinstall Windows 10 from an image file and test this there.  :undecided:

HSE

Equations in Assembly: SmplMath