Welcome, Guest
Username: Password: Remember me
General discussions, feature requests for CodeTyphon Project and discussions that don't fit in any of the other specific CodeTyphon forum categories.
  • Page:
  • 1

TOPIC:

Fatal: not found: Controls (library build) 4 years 3 months ago #14950

  • PizzaProgram (László Szakmári)
  • PizzaProgram (László Szakmári)'s Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Delphi7 programmer since 25 years
  • Posts: 10
  • Thank you received: 0
I've wrote my first nice little program (EXE), that convert a GPS coordinate into a WMF vector-bitmap file.
Now I'm trying to redo it, so it works as a DLL.
But it does not compile! :-(
library gpsqrgen;
{$mode objfpc}{$H+}
uses
  Classes, SysUtils, Controls, // Graphics,    Interfaces,
  ubarcodes, fpvectorial, wmfvectorialwriter,
  zint, lbc_render;

If I put the unit 'Interfaces' as first >> the compiler stops there.

Is it possible the only Lazarus can handle Forms and Controls in a DLL and Typhoon can not?
wiki.freepascal.org/Form_in_DLL

Please Log in or Create an account to join the conversation.

Fatal: not found: Controls (library build) 4 years 3 months ago #14951

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
Sir
give us more info:
-Your CT ver ?
-Your OS ?
-What do you want to do ?
-to put your app in to a library ?

...
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Fatal: not found: Controls (library build) 4 years 3 months ago #14952

  • PizzaProgram (László Szakmári)
  • PizzaProgram (László Szakmári)'s Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Delphi7 programmer since 25 years
  • Posts: 10
  • Thank you received: 0
Latest version, downloaded 4 days ago:
CT: 7.1 2020-08-04
FPC 3.1.1
Platform: i386-win32-win32/win64 running on Win7-64bit PRO (Hungarian)

I'd like to do the same what the EXE file can do (qride.pas), just as a DLL (gpsqrgen.ppr).
Thank You !

File Attachment:

File Name: QRgen.zip
File Size:110 KB
Attachments:

Please Log in or Create an account to join the conversation.

Last edit: by PizzaProgram (László Szakmári).

Fatal: not found: Controls (library build) 4 years 3 months ago #14953

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
You did add to your gpsqrgen.ctpr library
- adFCL
- adLCL
packages as project "Required Packages"

PilotLogic Architect and Core Programmer
Attachments:

Please Log in or Create an account to join the conversation.

Fatal: not found: Controls (library build) 4 years 3 months ago #14954

  • PizzaProgram (László Szakmári)
  • PizzaProgram (László Szakmári)'s Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Delphi7 programmer since 25 years
  • Posts: 10
  • Thank you received: 0
Thanks for the hint! :) It gave me an idea...

1.) I did not add any of those manually.
2.) I just created a "new library prorject" >> and copied PAS code there.
3.) And it did not even show at my Multi-Project-inspector window.
4.) If I tried to open from menu : Package >> Open Package from List >>> it dropped an Access Violation error.
... so my conclusion was: those packag installations were somehow broken.
(I've tried to run CT Center >> Compiler >> "FreePascal Remove and Rebuild ALL". But it did not help.)

So, the solution was >>
- I've opened adFCL and adLCL from menu "Open loaded package" >> rebuilt them >> clicked Install >> CT closed >> reopened it >> all errors gone !

My guess is, that all these bad things happened, because I've installed latest Lazarus (upgraded from 1.6 > to latest)
It seems for me, TP and Lazarus can not coexist on 1 system...

Please Log in or Create an account to join the conversation.

Last edit: by PizzaProgram (László Szakmári).
  • Page:
  • 1