Results 1 to 6 of 6

Thread: Problem making plugin

  1. #1
    Join Date
    Aug 2008
    Location
    Finland
    Posts
    2,851
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default Problem making plugin


    The faster I get help, the faster we have a color based world walker!
    It already works like a charm (with a few exceptions, of course) and I need this plugin to speed it up!




    Trying to compile my plugin with Lazarus, here are the first lines:
    Simba Code:
    library Project1;

    {$mode objfpc}{$H+}

    uses
      Classes, sysutils, Windows, Crt, Graphics;

    But when I try to compile, I run into this:
    PHP Code:
    WorldWalker(1,1FatalCan't find unit Graphics used by Project1 
    All I need is to get LoadBitmap working inside the plugin :-\
    Last edited by marpis; 12-11-2010 at 08:26 PM.

  2. #2
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

  3. #3
    Join Date
    Nov 2007
    Location
    46696E6C616E64
    Posts
    3,069
    Mentioned
    44 Post(s)
    Quoted
    302 Post(s)

    Default

    It should be capitalized. "When the compiler reports no valid line/column the error is not in the sources, but in one of the .ppu files."
    There used to be something meaningful here.

  4. #4
    Join Date
    Aug 2008
    Location
    Finland
    Posts
    2,851
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Bump! I really need to know how to use LoadBitmap in Lazarus! Please help me!

  5. #5
    Join Date
    May 2006
    Location
    Amsterdam
    Posts
    3,620
    Mentioned
    5 Post(s)
    Quoted
    0 Post(s)

    Default

    You have to include the LCL in your dll..

    To do so: Project -> Project inspector -> Add -> Add new requirement -> Select LCL -> Ok

    Then you have to add the unit "interfaces" to the unit clause
    Verrekte Koekwous

  6. #6
    Join Date
    Aug 2008
    Location
    Finland
    Posts
    2,851
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Ok I solved the LoadBitmap thing (I suppose) and now the .dll is compiled, but Simba doesn't accept it, see here:
    http://villavu.com/forum/showthread.php?t=60732

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
  •