Re: [Lazarus] Graphics unit and DLLs

2009-05-27 Thread Marco van de Voort
On Tue, May 26, 2009 at 11:28:57PM -0400, matt shaffer wrote:
 Ah ok, thanks for clearing that up

For more background info, try to read http://wiki.freepascal.org/packages

most notably the part about state and VMTs

___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Graphics unit and DLLs

2009-05-26 Thread matt shaffer
So I've been tinkering with DLLs and Lazarus.. and I came across a problem.
It won't let me import graphics. If I do uses graphics it says it can't
find it. If I include the LCL in the compiler options, it gets an error with
other pascal files. If I add graphics as the only compiler option, it'll
white 'cause it's not a directory. All I want is my friend, tcanvas :(
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Graphics unit and DLLs

2009-05-26 Thread Mattias Gaertner
On Tue, 26 May 2009 12:14:06 -0400
matt shaffer dazappa.m...@gmail.com wrote:

 So I've been tinkering with DLLs and Lazarus.. and I came across a
 problem. It won't let me import graphics. If I do uses graphics it
 says it can't find it. If I include the LCL in the compiler options,
 it gets an error with other pascal files. If I add graphics as the
 only compiler option, it'll white 'cause it's not a directory. All I
 want is my friend, tcanvas :(

I don't know what you mean with 'include the LCL in the compiler
options'. Normally you add the LCL via the project inspector to your
dependencies.

Mattias

___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Graphics unit and DLLs

2009-05-26 Thread matt shaffer
Compiler options as in:Project - Compiler options . But on second glance,
it doesn't appear that that would help anything.

Well what you suggested (Project inspector dependencies) seemed to work. It
recognized the graphics unit and let me have a tcanvas variable, and the
quick compile worked fine, but the build failed with:

project1.lpr(201,1) Error: Undefined symbol: WSRegisterCustomImageList
project1.lpr(201,1) Error: Undefined symbol: WSRegisterMenuItem
project1.lpr(201,1) Error: Undefined symbol: WSRegisterMenu
project1.lpr(201,1) Error: Undefined symbol: WSRegisterMainMenu
project1.lpr(201,1) Error: Undefined symbol: WSRegisterPopupMenu
project1.lpr(201,1) Error: Undefined symbol: WSRegisterDragImageList
project1.lpr(201,1) Error: Undefined symbol: WSRegisterControl
project1.lpr(201,1) Error: Undefined symbol: WSRegisterWinControl
project1.lpr(201,1) Error: Undefined symbol: WSRegisterGraphicControl
project1.lpr(201,1) Error: Undefined symbol: WSRegisterCustomControl
project1.lpr(201,1) Error: Undefined symbol: WSRegisterScrollingWinControl
project1.lpr(201,1) Error: Undefined symbol: WSRegisterScrollBox
project1.lpr(201,1) Error: Undefined symbol: WSRegisterCustomFrame
project1.lpr(201,1) Error: Undefined symbol: WSRegisterCustomForm
project1.lpr(201,1) Error: Undefined symbol: WSRegisterHintWindow
project1.lpr(201,1) Fatal: There were 15 errors compiling module, stopping

Line 201 is the end of the file end.

My memory just caught up with me actually: Haven't others discussed how the
LCL doesn't work in DLLs? I'm sure they have, and that's what I seem to be
trying to do (even if it's just one lowly tcanvas), so I guess it's doomed
for failure.


On Tue, May 26, 2009 at 12:40 PM, Mattias Gaertner 
nc-gaert...@netcologne.de wrote:

 On Tue, 26 May 2009 12:14:06 -0400
 matt shaffer dazappa.m...@gmail.com wrote:

  So I've been tinkering with DLLs and Lazarus.. and I came across a
  problem. It won't let me import graphics. If I do uses graphics it
  says it can't find it. If I include the LCL in the compiler options,
  it gets an error with other pascal files. If I add graphics as the
  only compiler option, it'll white 'cause it's not a directory. All I
  want is my friend, tcanvas :(

 I don't know what you mean with 'include the LCL in the compiler
 options'. Normally you add the LCL via the project inspector to your
 dependencies.

 Mattias

 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus