News:

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

Problems

Started by Open Source Pong, April 15, 2008, 04:13:31 PM

Previous topic - Next topic

Open Source Pong

I'm trying to compile this little bit of code:

cGameObject: class

                           var
                               x:int32
                               y:int32
                              vx:int32
                              vy:int32
end class;


However the compiler generates an error. Could someone please lok into this.

Sincerely,

Open Source Pong

Sevag.K

What's the error?

Is that just a part of what you're compiling or the whole?  If that's it, there is nothing to compile, those are just declarations.

Evenbit

Try this...
type
cGameObject: class

                           var
                               x:int32
                               y:int32
                              vx:int32
                              vy:int32
endclass;
endtype;

Nathan.

Randall Hyde

Quote from: Open Source Pong on April 15, 2008, 04:13:31 PM
I'm trying to compile this little bit of code:

cGameObject: class

                           var
                               x:int32
                               y:int32
                              vx:int32
                              vy:int32
end class;


However the compiler generates an error. Could someone please lok into this.

Sincerely,

Open Source Pong

You need semicolons at the end of each declaration, e.g., "vy:int32;"
hLater,
Randy Hyde