SRL Archive - OSR Help

Problem making plugin


marpis

2010-12-11 14:59:24


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:

library Project1;

{$mode objfpc}{$H+}

uses
Classes, sysutils, Windows, Crt, Graphics;


But when I try to compile, I run into this:
[php]
WorldWalker(1,1) Fatal: Can't find unit Graphics used by Project1
[/php]

All I need is to get LoadBitmap working inside the plugin :-\

Shuttleu

2010-12-11 15:09:09

no idea if it is case-sensitive
but have you tried 'graphics' instead of 'Graphics'?

~shut

Frement

2010-12-11 15:19:56

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."

marpis

2010-12-12 03:49:12

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

mastaraymond

2010-12-12 05:23:45

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

marpis

2010-12-12 15:57:19

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