News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

TVHITTESTINFO Q

Started by DC, December 20, 2005, 05:38:08 AM

Previous topic - Next topic

DC

this struct works if I make a Local one:
LOCAL tvhit:TVHITTESTINFO
but in data?:
tvhit           TVHITTESTINFO <?>
it gets this error:
QuoteC:\WinAsm\_Projects\DC8BF\DC8BF.inc(82) : error A2181: initializer must be a string or single item
C:\WinAsm\_Projects\DC8BF\DC8BF.inc(82) : error A2138: invalid data initializer
I figure I should just do the LOCAL thingie but why?
thanx,
DC
this isn't daja vu, I'm just learning it for the 37th time
http://www.bmath.net

Tedd

remove the "?" and it will work :wink

By putting the "?" you're saying that it contains a single value -- but it's a structure, so it has multiple. It's simpler to just leave it out.


[This doesn't mean you shouldn't still make it local :P]
No snowflake in an avalanche feels responsible.

DC

thank you Tedd, those details are gonna be the death o' me,
later,
DC
p.s. I figured .data? was better cuz I'm using it in a couple 3 proc's
this isn't daja vu, I'm just learning it for the 37th time
http://www.bmath.net