Welcome, Guest
Username: Password: Remember me
CodeTyphon MS Windows (Win7, Win8.x, Win10 and Win11) OS Development, discussions and problems
  • Page:
  • 1

TOPIC:

Problem porting neobook plugin from delphi to CT 11 years 6 months ago #3736

  • Hans-Peter Wickern
  • Hans-Peter Wickern's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 2
  • Thank you received: 0
Hello,

I am new to CT and Freepascal/Lazarus and a longtime delphi 7 user.

I am trying to get a sample from the neobook plugin SDK compiled undet CT.

I get various errors like DLLProc is unknown.

DLLProc := @DLLHandler;

I used the converter funtions in CT.
I added what I have so far incuding the converter backup delphi files.
Maybe a experienced CT-user can get it to run?


File Attachment:

File Name: SpinEditExample.zip
File Size:202 KB


I outcomment the DLLProc line but get hard crashes when called from neobook host-app.


Regards

Hans-Peter

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

Last edit: by Hans-Peter Wickern.

Problem porting neobook plugin from delphi to CT 11 years 6 months ago #3737

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
Sir
to register a DLL main function Delphi has
DLLProc and DLLProcEx

Now in CT and FreePascal
look at system.pp line 112
const
  Dll_Process_Detach_Hook : TDLL_Entry_Hook = nil;
  Dll_Thread_Attach_Hook : TDLL_Entry_Hook = nil;
  Dll_Thread_Detach_Hook : TDLL_Entry_Hook = nil;

Use these in your library, to register the main function.
PilotLogic Architect and Core Programmer

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

Last edit: by Sternas Stefanos.

Problem porting neobook plugin from delphi to CT 11 years 6 months ago #3738

  • Hans-Peter Wickern
  • Hans-Peter Wickern's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 2
  • Thank you received: 0
Hello,

Thanks for the answer.
Since I have no access to the calling host (neobook authoring system)
I am out of luck then to use CT as a plugin toolkit.
Sad but here is freepascal not compatibel with delphi.

Regards

Hans-Peter

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

  • Page:
  • 1