View Full Version : Canvas.Handle := SmartGetDebugDC;
satkan
07-27-2012, 09:44 AM
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
07-27-2012, 10:32 AM
Guess it's due to an unupdated script.
Msi console scripts work just fine.
litoris
07-27-2012, 10:38 AM
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
07-27-2012, 11:24 PM
" [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
07-27-2012, 11:29 PM
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
07-28-2012, 02:04 AM
Unknown identifier 'Smart_server' at line 318
Austin
07-28-2012, 11:57 AM
Unknown identifier 'Smart_server' at line 318
Dude.. Brandon's link above you has the solution in it
Xyssor
07-29-2012, 03:34 AM
Okay i tried Brandon's solutions and still nothing.. D: any ideas?
Harry
07-29-2012, 04:01 AM
Stop including smart.simba. Use {$DEFINE SMART} instead.
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.