PW7962
Squire
USA
33 Posts |
Posted - May 22 2006 : 3:51:36 PM
|
Ok for a game of mine I am making a map editor, which is really just a paint program and the game will check for the colors. I am using SetPixel for just putting dots, but I would like to know how to make a line (squares and circles would not be nescesary, but helpful). I tried to use MovetoEX and LineTO but I keep getting errors and I was wondering if there was an easier way. Thanks in advance, pw |
Star Fantasy Unlimited Programmer
http://starfantasy.forumer.com |
|
Eric Coleman
Gladiator
USA
811 Posts |
|
PW7962
Squire
USA
33 Posts |
Posted - May 23 2006 : 5:41:54 PM
|
Ok, so I use the code like this "Call DrawLine(picMap.hdc, X1, Y1, X, Y)" and I get a ByRef Argument Type Mismatch error, and I do not see anything wrong. Any sugestions? |
Star Fantasy Unlimited Programmer
http://starfantasy.forumer.com |
|
|
Eric Coleman
Gladiator
USA
811 Posts |
Posted - May 23 2006 : 6:28:33 PM
|
Are you sure X1, Y1, X, and Y are of data type LONG? |
|
|
PW7962
Squire
USA
33 Posts |
Posted - May 24 2006 : 2:48:44 PM
|
I am possitive that they are all Longs, I just double checked and saw that the Click sub has X and Y as Singles, but I just made X2 and Y2 variables as longs and get the same error at the X1. |
Star Fantasy Unlimited Programmer
http://starfantasy.forumer.com |
|
|
Walrus
Squire
Slovenia
34 Posts |
|
Dizzee
Squire
USA
13 Posts |
Posted - May 24 2006 : 11:06:32 PM
|
in class we made a green globs programs
the line function works great and so does the pset pset (x,y) (i think) and line (x,y) (something like this) and for a box: line (x,y), bf (the line should be the diagnol of the box
|
www.ClanTemplates.com Free Clan Templates for the masses! |
|
|