SRL Archive - Help

Canvas.Handle := SmartGetDebugDC;


satkan

2012-07-27 05:44:31

So yeah, i thought this was a problem involving simba not being updated…
Appears i still can't run very popular scrips after the update.

I wonder how that is even possible as i have the same set-up as many others,
and updated it fully.


Anyways, i changed paintsmart to smartgraphics, that helped with the "Unknown identifier 'SmartSetDebug' at line 40" error.


Now i'm getting "Canvas.Handle := SmartGetDebugDC;" as an error!

Anyone knows how i solve this problem?

Thanks in advance

satkan

2012-07-27 06:32:17

Guess it's due to an unupdated script.
Msi console scripts work just fine.

litoris

2012-07-27 06:38:05

If your script happens to have this piece of code,

Canvas := TCANVAS.Create;
Canvas.Handle := SmartGetDebugDC;
DrawBitmap(Pic, Canvas, Placement.x, Placement.y);
FreeBitmap(Pic);
then do this:
{    Canvas := TCANVAS.Create;
Canvas.Handle := SmartGetDebugDC;
DrawBitmap(Pic, Canvas, Placement.x, Placement.y);
FreeBitmap(Pic); }
Basically, you are adding {} parentheses around that code.

blowsmoke1

2012-07-27 19:24:40

" [Hint] (338:3): Variable 'CANVAS' never used at line 337
[Error] (900:16): Unknown identifier 'CANVAS' at line 899
Compiling failed. "
What would i pursue now? i checked and saw the declaration

" Canvas: tCanvas; on line 337 "
What would i do to fix this? any help would be appericiated.



" This was After i Bracketed out that section of code you mentioned. "

Brandon

2012-07-27 19:29:24

http://villavu.com/forum/showthread.php?t=84334

Check out the examples script section.. It shows you how to draw/what to replace TCanvas and SmartDebugDC with.

AusKingdom

2012-07-27 22:04:42

Unknown identifier 'Smart_server' at line 318

Austin

2012-07-28 07:57:18

From: AusKingdom
Unknown identifier 'Smart_server' at line 318

Dude.. Brandon's link above you has the solution in it

Xyssor

2012-07-28 23:34:19

Okay i tried Brandon's solutions and still nothing.. D: any ideas?

Harry

2012-07-29 00:01:48

Stop including smart.simba. Use {$DEFINE SMART} instead.