Results 1 to 9 of 9

Thread: Canvas.Handle := SmartGetDebugDC;

  1. #1
    Join Date
    Jul 2012
    Posts
    251
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default Canvas.Handle := SmartGetDebugDC;

    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
    Activity
    Going asian on University College Ghent.
    No time for anything atm.

  2. #2
    Join Date
    Jul 2012
    Posts
    251
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Guess it's due to an unupdated script.
    Msi console scripts work just fine.
    Activity
    Going asian on University College Ghent.
    No time for anything atm.

  3. #3
    Join Date
    Jul 2011
    Location
    /home/litoris
    Posts
    2,226
    Mentioned
    0 Post(s)
    Quoted
    159 Post(s)

    Default

    If your script happens to have this piece of code,
    Simba Code:
    Canvas := TCANVAS.Create;
    Canvas.Handle := SmartGetDebugDC;
    DrawBitmap(Pic, Canvas, Placement.x, Placement.y);
    FreeBitmap(Pic);
    then do this:
    Simba Code:
    {    Canvas := TCANVAS.Create;
        Canvas.Handle := SmartGetDebugDC;
        DrawBitmap(Pic, Canvas, Placement.x, Placement.y);
        FreeBitmap(Pic);  }
    Basically, you are adding {} parentheses around that code.
    Miner & Urn Crafter & 07 Chicken Killer
    SPS BlindWalk Tutorial

    Working on: Nothing

    teacher in every art, brought the fire that hath proved to mortals a means to mighty ends

  4. #4
    Join Date
    May 2012
    Location
    Pittsburgh
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    " [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. "
    Last edited by blowsmoke1; 07-27-2012 at 11:27 PM. Reason: to explain further

  5. #5
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    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.
    I am Ggzz..
    Hackintosher

  6. #6
    Join Date
    Dec 2011
    Posts
    94
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Unknown identifier 'Smart_server' at line 318

  7. #7
    Join Date
    May 2012
    Location
    Somewhere in, PA
    Posts
    1,810
    Mentioned
    9 Post(s)
    Quoted
    226 Post(s)

    Default

    Quote Originally Posted by AusKingdom View Post
    Unknown identifier 'Smart_server' at line 318
    Dude.. Brandon's link above you has the solution in it
    My First Build!, Selling Downloadable Games
    -------------------------------------

  8. #8
    Join Date
    Dec 2011
    Location
    With Waldo
    Posts
    70
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

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

  9. #9
    Join Date
    Dec 2006
    Location
    Sweden
    Posts
    10,812
    Mentioned
    3 Post(s)
    Quoted
    16 Post(s)

    Default

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


    Send SMS messages using Simba
    Please do not send me a PM asking for help; I will not be able to help you! Post in a relevant thread or make your own! And always remember to search first!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •