News:

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

Main Menu

Point Problem

Started by shankle, July 10, 2018, 09:50:34 PM

Previous topic - Next topic

shankle

                   7-10-2018
Thanks for any help.
Stats: GoAsm 64-bit, Windows 7 pro 64-bit

Having a problem with the "POINT" structure.
Am I missing a header file?????

.const
POINT       STRUCT
Px        dd 0
Py        dd 0
POINT       ENDS

DATA SECTION
hdc    dq  0

WndProc:
    LOCAL  pt:POINT

invoke GetCursorPos [pt]
invoke BitBlt,[hdc],[pt:Px],[pt:Py],16,16,[hdc],10,60,SRCCOPY

Error!
Could not open an input file (PT.DLL)
Needed for forced Dll or import by ordinal
Output file not made

jj2007


Yuri

Yes, it should be [pt.Px]. A point problem indeed.

shankle

Thanks guys.
I don't work with structures very much and have a memory problem.
Yes it should be pt.Px
All you young guys don't have this problem YET:)

wjr

Also a comma missing after GetCursorPos. That one is still on my fix to-do list...

shankle

Thanks. problem fixed now.